<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="map"> <esri:extent> <esri:WebMercatorExtent xmin="-13055785" ymin="3848161" xmax="-13025898" ymax="3866239" spatialReference="{new SpatialReference(102100)}"/> </esri:extent> <esri:ArcGISTiledMapServiceLayer/> </esri:Map> </s:Application>
<?xml version="1.0" encoding="utf-8"?> <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" <s:layout> <s:HorizontalLayout paddingLeft="2"/> </s:layout> <esri:Map id="map"> <esri:extent> ...
... <s:layout> <s:HorizontalLayout paddingLeft="2"/> </s:layout> <esri:Directions width="320" height="100%" map="{map}" url="http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route"/> <esri:Map id="map"> <esri:extent> ...
点击进行计算后结果显示在地图上,如下图所示
arcgis for flex api version3.7 教程:7.使用Directions查询路线(最短路径分析)
原文地址:http://blog.csdn.net/xiliangxiaoke/article/details/44831287