摘要:1 自定义悬浮框<?xml version="1.0" encoding="utf-8"?><mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="80" height="30"> <fx:Dec
阅读全文
摘要:定义locator标签<esri:Locator id="locator" url="http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer" locationToAddressComplete="onLocationToAddressComplete(event)" fault="myService_faultHandler(event)" concurrency="last"/>给点添加鼠标事件//给点
阅读全文
摘要:1 <esri:InfoSymbol id="infos"> 2 <esri:infoRenderer> 3 <fx:Component> 4 <mx:HBox> 5 <s:Label text="第一列"/> 6 <s:Label text="第二列"/> 7 </mx:HBox> 8 </fx:Component> 9 ...
阅读全文
摘要:1 定义以4326坐标系定位的地图 1 <esri:SpatialReference id="lo" wkid="4326" /> 2 3 <esri:Map crosshairVisible="true" width="100%" height="100%" id="myMap" logoVisible="false"> 4 <esri:ArcGISTiledMapServiceLayer url="http://
阅读全文
摘要:前言,如何加载ArcGIS类库及地图服务参见<ArcGIS Viewer for Flex加载地图服务>1 定义坐标点1 private var arr:Array=2 [3 new MapPoint(114.06,30.74,new SpatialReference(4326)),4 new MapPoint(114.41,30.55,new SpatialReference(4326))5 ];2 建立map 1 <esri:Map crossha...
阅读全文
摘要:1 建立flex项目将ArcGIS Viewer for Flex API加载到libs文件夹下(agslib-3.2-2013-03-19.swc),并在项目-属性-flex构建路径-库路径中将其添加进去2 定义坐标系1 <fx:Declarations>2 <!-- 4326为经纬度坐标系,12100为投影坐标系 -->3 <esri:SpatialReference id="sr" wkid="4326" />4 </fx:Declarations>3 绘制地图 1 <esri:Map cros
阅读全文