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.

Thursday, October 15, 2015

WEB GIS Lab 4

Introduction
This lab exercise is designed to introduce the required languages needed in developing Web GIS applications with the ArcGIS API for JavaScript. Specifically, syntax and basic methods of Hypertext Markup language (HTML), cascading style sheets (CSS), and JavaScript, which are commonly used in the development of webpages. The main goal of this lab is the development of a website using the three languages simultaneously.



Methods            
Part one of the lab focused on developing a web page using HTML tags. The program Notepad++ is where the lab first begins starting with naming and saving the HTML document. The name of the document is expressed on the first and second line. It is important to note that the computer needs to know what kind of language you are using because it can now translate, present the language on the web. Saving the document under html file helps the computer identify the codes correctness. Once naming and saving is complete, giving the web page a title and three level header is next. The title is placed in the head division and the headers are placed in the beginning of the body division. A division is used to help break each part into a section making it easier to read and understand. Each header has its own size, <h1> being the largest and <h6> being the smallest. In the next division came an unordered list of six hobbies, but before creating the list a comment line was formed to help the audience follow my steps. The comment line is always in green so it is easy to make out of the script. To create an unordered list you begin with <ul> (unordered list) then tagging each hobby inside the list tag, <li></li>. To complete the unordered list you end with a </ul> tag. The final task to part one included inserting a source reference link in the footer. The href attribute is used to reference a source on html. After the href attribute you include an equal sign then in quotes you enter the link. The link is then hyperlinked to any text that comes after the link. We now have a simple web page with no style.
            
Part two of the lab will fix the simplicity of the web page. To create styles on the web page we use CSS. To use CSS a new notepad page is required and saving the document as a CSS file is also required. The body is first section to be styled and within the section the background color as well as the font family is customized. The other sections, which consist of the wrapper, header, main, sidebar, and footer are customized as well. The other properties that are used in the CSS file are margin, padding, color, width, and float. Once establishing the properties to their specific section it is time to link the CSS file to the html file. To link the two files together you must use the link tag with using the rel and href attributes. The rel attribute is used to define the relationship that it has to the document, in this case stylesheet and the href uses the files link to connect to two together. Now we have a web page with some color and style.

After linking the two files together we can now import pictures that can be displayed on the web page. Two photos are inserted on the html file, one being UW-Eau Claire’s logo and the other being the web application I created on Web AppBuilder. The img tag is used to embed photos that is followed by the attribute src=”” and the link of the photo is entered in-between the two quotes.

The last language, JavaScript is also created into a new file and is saved as a JavaScript file. The goal for this script was to display text, and configure the input, summit box created in the html file. Before each line of code a comment line is inserted so it is easy to follow the steps because JavaScript can sometimes be hard to follow. Each line of code starts with a keyword, var (variable) then a name is assigned, which should describe the variable. The JavaScript is then linked to the html file by incorporating id words in the html file to the JavaScript file.

My first web page development
Once completing all three languages I was asked to design my own web page of a company just starting and provides Web GIS solutions to customers. The web site followed much of the same as the test page, but required a change in style, two web GIS applications from ERSI JavaScript website, a ordered list of services, and inserting more photos. The web page I designed is to help people who are first learning and understanding web GIS. 


My designed web page
Conclusion
This lab has been extremely valuable when it comes creating a web page. After completing this lab I feel more confident about my ability to read and write code in html, CSS, and JavaScript. I plan to use these skills in the future for web applications I design and I hope to learn more about each language.

Thursday, October 1, 2015

WEB GIS Lab 3


Introduction
This lab exercise is designed to introduce the building of Web GIS applications on the Web AppBuilder for ArcGIS. The main goal is to create, author, add own services, configure and integrate customize widgets for the app, and lastly deploy the finished Web GIS application for use by end-users. The final goal of this exercise is to consider the coding that goes into the creation of the Web GIS applications.
Methods
The first part of the lab exercise is to build a web GIS app through Web AppBuilder. The scenario presented is to create a web GIS application that displays historic earthquakes and hurricanes to the public that provides the ability to perform pop-up windows, bookmarks, charts, queries, and batch editing. ArcGIS online is where the creation of the web app begins and starts with establishing a title, summary, and tags that are associated with the map. After creating a name for the app, the app is ready to be launched and customized. Four tabs designed to configure the web app are present in the upper-left corner, which are themes, map, widgets, and attribute. Once selecting a basic layout and style for the app, acquiring as well as customizing widgets is next. Widgets are tools designed to make the end-users experience easier and the widgets that are included alongside the app are basemap gallery, measurement, bookmark, query, chart, draw, and lastly batch editor. The main widgets focused on are bookmarks, chart, query, batch editor. The bookmark widget is designed to take a snap shot of the current location of the map and then provides a link to that location through the bookmark tool. In this web app the locations bookmarked are western and eastern United States. After configuring bookmarks, charting the earthquake layer became another simple task. The magnitude and depth are linked to the location of each earthquake and are created in two separate bar graphs. Clicking and dragging a box around a location of earthquakes would then graph the location then compare either the magnitude or depth to other nearby earthquakes. Following the chart widget, the query widget is now applied for use. The expression used included the magnitude that is at least 4 in the location of Alaska. After reviewing the expression for any mistakes the expression is error free, saved, and ready to be applied and used. The last widget to be applied is the batch editor widget. This tool is configured to quickly update common attribute values for all selected features in this case earthquakes. Now that the important, useful widgets have been established it is time to save the app files to a specific folder and then launch the application, putting it to the test.

Natural Disaster Application
Conclusion               
This lab has been a great experience when designing a web application for end-users. I found that there is an awful lot of customization and useful widgets designed to make the end-users experience educational as well as entertaining. Hopefully the publication of this app intrigues others to share and design other useful web applications.