Arcgis api for flex Development (I) Environment setup
Arcgis api for flex is a new flex library for RIA development launched by arcgis in April this year. It is part of arcgis server9.3, using ArcGIS API for Flex, you can build beautiful rich internet applications (RIAs) based on ArcGIS Server. The advantage is that the operation speed is fast and the user experience is better than the current WEBGIS.
Use arcgis api for flex to achieve the following results:
1. display your map data and interact with the data
2. Run the space processing model on the server and display the result.
3. display your data based on the basemap on ArcGIS Online
4. Search for your data based on the property or location and display the result.
5. Search for the address and display the result.
6. Visualize results in innovative ways
7. Create a mashups
For details, see http://resources.esri.com/arcgisserver/apis/flex/index.cfm? Fa = samples there are some examples above.
Arcgis api for flex is
Http://resources.esri.com/arcgisserver/apis/flex/index.cfm? Fa = home
There is a download.
The development of arcgis api for flex programs requires the support of the flex environment.
For flex sdk3
Http://opensource.adobe.com/wiki/display/flexsdk/download? Build = 3.0.1.2012 & pkgtype = 1
With flex sdk3 and arcgis api for flex, we can develop the flex program of RIA.
For ease of development, we 'd better use flex builder to download the trial version from adobe's official website for http://download.macromedia.com/pub/flex/flex_builder/FB3_win.exe
After the flex builder is installed, the flex sdk3 will be installed, so you do not have to manually install it.
The first arcgis api for flex program.
1. Open the flex builder and create a flex Project (name Demo ).
2. Right-click the project name, select Properties, select flex build path in the Properties dialog box, select the libaray path tab, and click add swc to add the downloaded arcgis api for flex, the environment is configured.
Download(84.75 KB)
3. Enter the following code in the Demo. mxml file:
- <? Xml version = "1.0" encoding = "UTF-8"?>
- <Mx: Application
- Xmlns: mx = "http://www.adobe.com/2006/mxml"
- Xmlns: esri = "http://www.esri.com/2008/ags"
- PageTitle = "Using ArcGIS API for Flex to connect to a cached ArcGIS Online service"
- StyleName = "plain">
- <Esri: Map crosshairVisible = "true">
- <Esri: ArcGISTiledMapServiceLayer
- Url = "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
- </Esri: Map>
- </Mx: Application>
Copy code
Compile and execute. The first simple ags flex program is ready.
Effect 2
Download(45.95 KB)
Note: The content of this article can be found in the following articles:
Http://www.gisempire.com/blog/user1/1/200888102647.html
Original address: http://bbs.esrichina-bj.cn/ESRI/viewthread.php? Tid = 35515 & extra = page % 3D4% 26amp % 3 Borderby % 3 Ddateline