当前位置: 首页 > 工具软件 > GMaps.js > 使用案例 >

esri.arcgis.gmaps.DynamicMapServiceLayer

谭俊
2023-12-01
     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
ConstructorDescription
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

PropertyTypeDescription
urlStringURL to the ArcGIS Server REST resource that represents the dynamic map service.
descriptionStringMap description.
copyrightStringCopyright text.
layerInfosMapServiceLayerInfo[]Layers available in the map service.
initialExtentGLatLngBoundsInitial 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).

fullExtentGLatLngBoundsFull 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.
 类似资料:

相关阅读

相关文章

相关问答