Rene Rubalcava | September 29, 2010
About a week ago, our test server that we have ArcGIS Server on decided to implode. Our IT department is in the process of building and installing all necessary software to get it back up and running. What that means to me is that most of my Flex work is stalled. Everything I do requires access to ArcGIS Server services and even WebOrb which we had loaded on the same machine.
Now, I knew that I could build a Flex application that could load a shapefile and display it on a map and all that jazz, but where's the fun in doing something you already know how to do. Besides, I was thinking of future proofing this little thing for mobile use.
You can see an example of a map loading JSON features of States here.
The key was, when you get your JSON results, you want to iterate through the results["features"] to find attributes and geometries. Here is the script for loading JSON features. Once you get that far, the rest is easy. Create the graphics, load attributes into an InfoTemplate if you'd like and voila, you have a nice map with features loaded without the need for your own ArcGIS Server to serve the data out.
It may not seem like a big deal, but I didn't find any quick guides on this info, so I just thought I would share what I learned this past week.