现在的位置: 首页 > 综合 > 正文

esri.arcgis.gmaps.DynamicMapServiceLayer

2013年10月10日 ⁄ 综合 ⁄ 共 1902字 ⁄ 字号 评论关闭
    An instance of this class represents a dynamic map service published with the ArcGIS Server. It implements the GOverlay interface and hence can be added to the map using GMap2.addOverlay method. In addition, you can also generate individual images from the associated map service by calling the exportMapImage method. 
Note: This class will not be available for a mapplet as the Google Mapplets API does not support GOverlay interface.

Constructor

Constructor Description
esri.arcgis.gmaps.DynamicMapServiceLayer(url, parameters?, opacity?, callback?)

Creates a new DynamicMapServiceLayer from the ArcGIS Server REST resource identified by the url. The optional parameters argument is anImageParameters object that can be used to customize the image format, dpi and the layers to be shown. The opacity is given as a number between 0 and 1. If not given, the default is 1.

Once it has finished loading the resource, the load event will be fired and the optional callback function will be invoked. Both the callback and the event handlers will receive a reference to this object that can be added to your map using the GMap2.addOverlay method.


Properties

Property Type Description
url String URL to the ArcGIS Server REST resource that represents the dynamic map service.
description String Map description.
copyright String Copyright text.
layerInfos MapServiceLayerInfo[] Layers available in the map service.
initialExtent GLatLngBounds Initial extent (bounding box) as defined by the map service. If the map service is in a coordinate system that is not compatible with that of Google Maps, then the value of this property will be an object of the form: 
{
 "xmin" : <xmin>, "ymin" : <ymin>, "xmax" : <xmax>, "ymax" : <ymax>,
 "spatialReference" : { "wkid" : <wkid> }
}

However, if Config.geometryServiceUrl property is set, then it will be implicitly used to project the above extent to WGS 1984 Geographic Coordinate System (Well-Known ID = 4326).

fullExtent GLatLngBounds Full extent (bounding box) as defined by the map service. If the map service is in a coordinate system that is not compatible with that of Google Maps, then the value of this property will be in the same format as described in initialExtent.

【上篇】
【下篇】

抱歉!评论已关闭.