过程:
1、先发布需要获取的地图的服务;
2:如果图层的要素很多,可以再地图服务的配置文件中修改查询的最大数量,arcgis9在C:\Program Files\ArcGIS\server\user\cfg下的对应配置文件中,修改它的属性MaxRecordCount;
代码如下:
<?xml version="1.0" encoding="utf-8"?>
<s:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:supportClasses="com.esri.ags.skins.supportClasses.*" width="400" height="300">
<s:layout>
<supportClasses:AttachmentLayout/>
</s:layout>
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import com.dse.com