Thursday, October 10, 2013

Lab 3: ArcGIS Flex Viewer

Introduction:

This lab used ArcGIS Flex Application Builder to create a web application, complete with basemaps, operational layers, widgets. Another important component to the lab was the use of Flex XML (extensible markup language) to create a custom widget.

Methods:

The ArcGIS Flex Application Builder was the tool used in creating the application. With a relatively straight forward interface, building the application was more intimidating than it was difficult. Although, to make a more concise application, the pop-ups had to be reconfigured. For the lab's purposes only a couple fields were left on and renamed for end user client clarity (example, POP2007_SQMI was changed to Population density).

The last component to the lab was to create a Thematic widget. To do this a Thematic widget with population density, housing units, and total population of the United States was used. Then in the widget settings the configuration was changed from 'states' to 'counties' and the extent was set to central Wisconsin.

Problems:

As I had never worked with the XML I had a tough time with the initial sections of the lab. In the ArcGIS Flex Application builder I was able to get my custom widget to show up, but an error #1085 kept showing up. After I noticed the path my data was stored in and the directions in the lab had a discrepancy I thought I fixed the XML file and thought all was well, but there was still an error. Upon further studying the configuration file I found more errors; such as, not closing off the string of code (</examplelayer>). My file still wasn't working, but after longer inspection I realized I had a spelling error on two lines of code with the same mistake. After that was fixed the widget worked well and there were no other problems.

Although it was frustrating, this helped me learn the layout of how an XML file looks much better than if I had just typed out everything properly the first time.

No comments:

Post a Comment