ArcGIS API for Flex (二)新增地图和图层
发布时间:2020-12-15 03:35:54 所属栏目:百科 来源:网络整理
导读:先看效果,这是我运行起来的 看代码: ?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" pageTitle="World Topograph
先看效果,这是我运行起来的 看代码: <?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" pageTitle="World Topographic Map"> <fx:Declarations> <esri:Extent id="initialExtent" xmin="-13635000" ymin="4541000" xmax="-13625000" ymax="4547000"> <esri:SpatialReference wkid="102100"/> </esri:Extent> </fx:Declarations> <s:controlBarContent> <s:RichText width="100%"> This sample demonstrates how to add an ArcGISTiledMapServiceLayer to your Map using the ArcGIS API for Flex. The tiled layer is typically used as a basemap layer in the map and its source is a map service that has been cached or has map tiles. This map is the World Topographic map service from ArcGIS Online. </s:RichText> </s:controlBarContent> <esri:Map extent="{initialExtent}"> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/> </esri:Map> </s:Application> 说明: ????此示例演示如何添加ArcGISTiledMapServiceLayer????到地图使用ArcGIS API进行了Flex。在平铺层 ????通常用作在地图底图层和它的源是 ????已被缓存或有地图图块的地图服务。 ????这张地图是从ArcGIS Online中的世界地形地图服务。 ????您可以浏览ArcGIS.com网站,以获得更多的在线底图和参考 ????地图服务或发布自己的地理数据作为使用ArcGIS Server的服务。 ????文档: ????欲了解更多信息,请参见API文档。 ????http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/Map.html ????http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/SpatialReference.html ????http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/geometry/Extent.html ???? http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/ArcGISTiledMapServiceLayer.html ???? http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Types_of_layers/017p00000027000000/ ????和ArcGIS REST API文档: ????http://resources.arcgis.com/en/help/rest/apiref/mapserver.html ????http://resources.arcgis.com/en/help/rest/apiref/tile.html (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |