public class DynamicMapServiceLayer extends Layer
Modifier and Type | Method and Description |
---|---|
Extent |
getFullExtent()
Full extent as defined by the map service.
|
java.lang.String |
getImageUrl(Extent extent,
float width,
float height,
GetImageUrlCallback callback)
Method to implement when extending DynamicMapServiceLayer.
|
Extent |
getInitialExtent()
Initial extent as defined by the map service.
|
SpatialReference |
getSpatialReference()
The spatial reference of the map service.
|
void |
refresh()
Refreshes the map by making a new request to the server.
|
addErrorHandler, addLoadHandler, addOpacityChangeHandler, addUpdateEndHandler, addUpdateHandler, addUpdateStartHandler, addVisibilityChangeHandler, getCredential, getId, getOpacity, getUrl, hide, isloaded, isVisible, setOpacity, setVisibility, show
public final Extent getFullExtent()
public final Extent getInitialExtent()
public final SpatialReference getSpatialReference()
public final java.lang.String getImageUrl(Extent extent, float width, float height, GetImageUrlCallback callback)
extent
- - Current extent of the map.width
- - Current width of the map in pixels.height
- - Current height of the map in pixels.callback
- - The function to call when the method has completed.public final void refresh()