com.esri.core.map
Class DynamicLayerModel
java.lang.Object
com.esri.core.map.LayerModel
com.esri.core.map.DynamicLayerModel
- All Implemented Interfaces:
- Serializable
public abstract class DynamicLayerModel
- extends LayerModel
Base class for all dynamic layer models. You would typically work with one of the higher level classes, for example,
use TiledLayer for cached data; DynamicLayer for non-cached data;
In a Model-View-Controller architecture, this class represents the Model. It handles fetching map images, calculating
map extent and so on.
- See Also:
- Serialized Form
|
Method Summary |
abstract byte[] |
getImage(int w,
int h)
This method provides implementation of fetching a map image from a map service. |
| Methods inherited from class com.esri.core.map.LayerModel |
centerAt, getCenter, getDefaultSpatialReference, getExtent, getFullExtent, getResolution, getSpatialReference, pan, resize, setExtent, setExtent, setFullExtent, setResolution, setScreenSize, zoom |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicLayerModel
public DynamicLayerModel(SpatialReference coordsys,
Envelope full)
- Instantiates a dynamic layer model with the given map information.
- Parameters:
coordsys - the default map spatial reference.full - the full map spatial reference.
getImage
public abstract byte[] getImage(int w,
int h)
throws Exception
- This method provides implementation of fetching a map image from a map service.
- Parameters:
w - the map width in pixelsh - the map height in pixels
- Throws:
Exception
Copyright © 2010. All Rights Reserved.