我动态检索具有纬度经度值的数组,这些值需要计算到一个范围中,以便它们完全适合地图(Adobe Flex)。我在 Esri 地图组件中使用的图层现在是:
<esri:ArcGISTiledMapServiceLayer id="arcgisonlineLayer" load="{trace(arcgisonlineLayer.version)}"
url="http://services.arcgisonline.nl/arcgis/rest/services/Basiskaarten/PDOK_BRT/MapServer"/>
<esri:WMSLayer url="{wmsLayerUrl}">
<esri:visibleLayers>
<s:ArrayList>
<fx:String>0</fx:String><!-- background colors -->
<fx:String>1</fx:String><!-- signs -->
<fx:String>2</fx:String><!-- red overview road map can be outcommented-->
<fx:String>3</fx:String><!-- lines -->
</s:ArrayList>
</esri:visibleLayers>
</esri:WMSLayer>
在我使用标准 Esri 层之前...
<esri:ArcGISTiledMapServiceLayer id="serviceLayer"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"
visible="{viewModeButtonBar.selectedIndex == 0}"/>
<esri:ArcGISTiledMapServiceLayer
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"
visible="{viewModeButtonBar.selectedIndex == 1}"/>
..我可以使用 WebMercatorExtent 类来创建一个适合的扩展,但现在我需要使用这些层并且不能使用 WebMercatorExtent,因为服务“ http://services.arcgisonline.nl/arcgis/rest/services /Basiskaarten/PDOK_BRT/MapServer " 使用
<esri:SpatialReference id="wgs" wkid="28992"/>
WebMercatorExtent 不适用。任何人都知道如何将此 com.esri.ags.geometry.WebMercatorExtent 转换为范围?