Flex3与arcgis server9.3开发之配置

首先是下载flex3,然后安装。

安装完成后,新建Flex Project,命名为Flex Demo,然后在项目中添加Library Path,添加agslib-1.3-2009-10-31.swc和FlexViewerLib.swc,如下图。

Flex3与arcgis server9.3开发之配置_第1张图片

然后在FlexDemo.mxml中添加代码:

View Code
   
   
1 <? xml version = " 1.0 " encoding = " utf-8 " ?>
2   < mx:Application xmlns:mx = " http://www.adobe.com/2006/mxml " layout = " absolute " xmlns:esri = " http://www.esri.com/2008/ags " >
3 < esri:Map x = " 24 " y = " 0 " logoVisible = " false " panArrowsVisible = " true " >
4 < esri:ArcGISDynamicMapServiceLayer url = " http://www-e3017dbaae7/ArcGIS/rest/services/xinzheng/MapServer " > // 这个是发布好的服务
5  
6 </ esri:ArcGISDynamicMapServiceLayer >
7 </ esri:Map >
8
9 </ mx:Application >

这样即完成一个简单的地图服务发布,可以实现放大、缩小等gis功能。

你可能感兴趣的:(server)