标签:actionscript flex esri arcgis 地图
ArcGIS的网络编辑操作(可以认为是网页端的相关地理处理操作)需要feature service来提供符号信息和几何数据信息。feature service允许你创建自定义的REST方法节点,用来存储和查询地理数据,如点、线和面。存储自定义的渲染规则和元数据信息,例如地名,评级,地址等。对存储的数据进行分析和计算。<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:esri="http://www.esri.com/2008/ags" <esri:Map id="myMap" wrapAround180="true"> <esri:extent> <esri:Extent id="socal" xmin="-13471000" ymin="3834000" xmax="-12878000" ymax="4124000"> <esri:SpatialReference wkid="102100"/> </esri:Extent> </esri:extent> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/> <esri:FeatureLayer id="incidentsAreas" mode="snapshot" outFields="[data_security,description]" url="http://sampleserver6.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2"/> </esri:Map> ...
xmlns:s="library://ns.adobe.com/flex/spark" xmlns:esri="http://www.esri.com/2008/ags" <fx:Declarations> <esri:GeometryService id="myGeometryService" url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"/> </fx:Declarations> <esri:Map id="myMap" wrapAround180="true"> <esri:extent> </s:Application>
<esri:FeatureLayer id="incidentsAreas" mode="snapshot" outFields="[data_security,description]" url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2"/> </esri:Map> <esri:Editor id="myEditor" width="100%" height="200" geometryService="{myGeometryService}" map="{myMap}"/> ...
... xmlns:esri="http://www.esri.com/2008/ags" initialize="application1_initializeHandler(event)"> <fx:Script> <![CDATA[ import mx.events.FlexEvent; protected function application1_initializeHandler(event:FlexEvent):void { myEditor.featureLayers = [ incidentsAreas ]; } ]]> </fx:Script>
... initialize="application1_initializeHandler(event)" <s:layout> <s:VerticalLayout/> </s:layout>
... <s:layout> <s:VerticalLayout/> </s:layout> <fx:Style> @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; @namespace esri "http://www.esri.com/2008/ags"; esri|InfoWindow { background-color: #FFFFFF; border-thickness: 2; } </fx:Style> <fx:Script> <![CDATA[ import mx.events.FlexEvent; ...
界面如下所示:
arcgis for flex api version3.7 教程:5.使用Editor对地图进行编辑
标签:actionscript flex esri arcgis 地图
原文地址:http://blog.csdn.net/xiliangxiaoke/article/details/44776067