Class: DynamicMapServiceLayerE-mail This Topic Printable Version Give Us Feedback

Description

The base class for ArcGIS Server dynamic map services.

DynamicMapServiceLayer has no constructor. Use ArcGISDynamicMapServicLayer and ArcGISImageServiceLayer.htm instead. (As of v1.2)

Class hierarchy

esri.layers.Layer
  |_ esri.layers.DynamicMapServiceLayer

Subclasses

ArcGISDynamicMapServiceLayer  ArcGISImageServiceLayer  

Properties

Property Type Description
fullExtent Extent Full extent as defined by the map service.
initialExtent Extent Initial extent as defined by the map service.
spatialReference SpatialReference The spatial reference of the map service. See Projected Coordinate Systems and Geographic Coordinate Systems for the list of supported spatial references.

Methods

Method Return Value Description
getImageUrl(extent, width, height, callback) String Method to implement when extending DynamicMapServiceLayer. For more details, see Creating custom layer types.
refresh() none Refreshes the map by making a new request to the server. In order to refresh the layer in this manner, setDisableClientCaching must be true. This ensures that map images are not cached on the client.
Properties Detail

<Extent> fullExtent

Full extent as defined by the map service.

<Extent> initialExtent

Initial extent as defined by the map service.

<SpatialReference> spatialReference

The spatial reference of the map service. See Projected Coordinate Systems and Geographic Coordinate Systems for the list of supported spatial references.
Methods Detail

getImageUrl(extent, width, height, callback)

Method to implement when extending DynamicMapServiceLayer. For more details, see Creating custom layer types. (As of v1.3)
Return value: String
Input Parameters:
<Extent> extent Required Current extent of the map.
<Number> width Required Current width of the map in pixels.
<Number> height Required Current height of the map in pixels.
<Function> callback Required The function to call when the method has completed.

refresh()

Refreshes the map by making a new request to the server. In order to refresh the layer in this manner, setDisableClientCaching must be true. This ensures that map images are not cached on the client. (As of v1.2)
Return value: none