Arcgis api for flex Development (I) Environment setup

Source: Internet
Author: User
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:

  1. <? Xml version = "1.0" encoding = "UTF-8"?>
  2. <Mx: Application
  3. Xmlns: mx = "http://www.adobe.com/2006/mxml"
  4. Xmlns: esri = "http://www.esri.com/2008/ags"
  5. PageTitle = "Using ArcGIS API for Flex to connect to a cached ArcGIS Online service"
  6. StyleName = "plain">
  7. <Esri: Map crosshairVisible = "true">
  8. <Esri: ArcGISTiledMapServiceLayer
  9. Url = "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
  10. </Esri: Map>
  11. </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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.