Tuesday, October 27, 2015

WEB GIS Lab 5

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
Part two of the lab focuses on building a Web GIS app with operational layer functionality for end-user. Part one and two follow the same process, however more requirements are embedded into the JavaScript. The functions brought into the JavaScript will ultimately display an interactive map of the City of San Francisco with feature services. The app displays tree species and their attributes. The last section for part two incorporated much of the same as part one, but a feature service for schools in Eau Claire County and publishing to the UWEC Geography & Anthropology ArcGIS Server REST is accomplished. The web application also added one of the ESRI’s predefined basemap, a scale bar, and configured pop up windows for the features.

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