Pages

Wednesday, June 6, 2012

If you are new to ArcGIS API for Flex Developers: Starter Project Template


If you are new to our ArcGIS API for Flex or new to Adobe Flex
and ActionScript development, we wanted to tell you about a starter project
template that lets you significantly speed up developing your first mapping
application. It’s actually a prototype that was built based on feedback from experienced
Flex developers who wanted to get a kick-start on their ArcGIS web maps. So, download
it and let us know what you think!
How does it work?
The template lets you use a single-line coding pattern, which will be familiar if
you have developed with Google Maps, Bing or MapQuest APIs. For example, you
can use wmap.center(34,-110,10,0)
to center the map, set zoom-level and map type (topo, streets or imagery). It also
includes other single-line methods for placing symbols (lines, shapes,
pushpins, etc) on the map, and converting addresses to lat/lon’s for mapping
purposes.
At the heart of the template is a toolkit that wraps the
ArcGIS API for Flex. This means you can add any ArcGIS API for Flex functionality
you want, as your needs grow beyond the starter template.  And, since the API is built upon native ActionScript
Classes
 you have access to all of those capabilities, too.
So how do I get
started?
 You will need Adobe’s FlashBuilder. Then download
the project
and import it: Import > Flash Builder
Project
. When that process is completed, you will have a fully
functionality, read-to-go project. In the ArcGISMapDemo.mxml file, simply
comment out the functionality you don’t need and then run it: Run > Run > ArcGISMapDemo.
Download the project here.

No comments:

Post a Comment