Introduction
The main goal of this lab
is to learn how to use ArcGIS JavaScript API to embed GIS services into any
website. The major objectives include embedding GIS services to display an
interactive web map, with also customizing a web GIS application created by someone
else and then applying it to a different study area by adding my own feature
service to the application and also include additional map elements. To
conclude the lab I build a routing app that uses network services from an
external GIS server.
Methods
The first part for lab five
involved creating a basic Web GIS mapping app.
In order to accomplish this task a basic HTML and JavaScript document
need to be set up. The JavaScript will contain the ArcGIS functions where it is
eventually referenced in the HTML document. A style sheet is also referenced in
the HTML document for styling features on the web map; in this case we connect
to the Dojo Dijit themes and apply the claro theme. Within the JavaScript
document we now start to acquire ESRI’s map and give the map a function so the
service can be assigned the appropriate properties. The map properties attached
are the center coordinates of the map, zoom level, and street basemap. Once the
script is complete and referenced the application is now ready to be launched.
![]() |
| ESRI Street Map |
![]() |
| Eau Claire Schools |
Developing a simple routing
application was the final task to lab five. This application is designed to
find routes between two or more points located on the map. The final app places
stops at the desired locations and will then find the quickest route between
the two or more stops. To develop the application you need to acquire the
correct routing functions within the Dojo library so you can then set the
precise properties for the application to work efficiently.
![]() |
| Routing Application |
Conclusion
This lab builds a lot on
programing skills in HTML, CSS, and JavaScript. Having the ability to create a
web application that can have end-user interaction is an important, valuable
skill and helps with sharing useful services to people.


No comments:
Post a Comment