com.esri.client.local
Class ArcGISLocalDynamicMapServiceLayer
java.lang.Object
com.esri.map.Layer
com.esri.map.DynamicLayer
com.esri.map.ArcGISDynamicMapServiceLayer
com.esri.client.local.ArcGISLocalDynamicMapServiceLayer
- All Implemented Interfaces:
- TimeAwareLayer
public class ArcGISLocalDynamicMapServiceLayer
- extends ArcGISDynamicMapServiceLayer
Class representing a dynamic layer on the LocalServer exposed by the REST
API. Dynamic layers display non-cached images generated on the fly based on
an image size and map extent. This layer is initialized with the path to a
locally held map package, that is an MPK file.
Methods inherited from class com.esri.map.ArcGISDynamicMapServiceLayer |
createResolutionList, getDynamicLayerInfos, getLayers, getLayersList, getLegend, getPopupInfo, getSubLayer, getSubLayer, getSubLayersVisibility, getTimeExtent, getTimeInfo, getTimeInterval, getTimeOptions, init, isDynamicLayersSupported, isReadyToDraw, isTimeAware, setDynamicLayerInfos, setTimeInterval, setTimeOptions |
Methods inherited from class com.esri.map.Layer |
addLayerInitializeCompleteListener, finalize, fireLayerCreateCompleteEvent, fireLayerCreateErrorEvent, fireLayerCreateErrorEvent, getCopyrightText, getCredentialsInternal, getDescription, getException, getExtent, getFullExtent, getInitialExtent, getInitializationError, getLayerHandle, getMap, getMapServer, getMapServerInfo, getMapServerLegendInfo, getMaxScale, getMinScale, getName, getOpacity, getResolutionList, getServiceDescription, getSpatialReference, getStatus, getUrl, getUrlHashCode, initializeAsync, internalGetLayerLegendInfos, isHidingNoDataTiles, isInitialized, isReady, isShowingCopyright, isVisible, loadServiceInfo, lock, recycle, reinitializeAsync, removeLayerInitializeCompleteListener, setCopyrightText, setCredentials, setDefaultSpatialReference, setDescription, setError, setException, setFullExtent, setInitialExtent, setLayerHandle, setMap, setMapServer, setName, setOpacity, setPopupInfos, setServiceDescription, setShowingCopyright, setStatus, setVisible, unlock, updateSpatialReferenceStatus |
ArcGISLocalDynamicMapServiceLayer
public ArcGISLocalDynamicMapServiceLayer(String path)
- Constructs an ArcGISLocalDynamicMapServiceLayer. To initialize the layer, add it to JMap or call
initializeAsync()
.
- Parameters:
path
- Path to a local MPK file that will be published by
the local server.
getSource
public LocalMapService getSource()
- Gets the
LocalMapService
this layer belongs to.
- Returns:
- The LocalMapService this layer belongs to.
internalInit
protected void internalInit()
- Overrides:
internalInit
in class ArcGISDynamicMapServiceLayer
setUrl
public void setUrl(String url)
- Description copied from class:
DynamicLayer
- Set the URL for the layer. This can only be set once.
- Overrides:
setUrl
in class DynamicLayer
- Parameters:
url
- The URL.
getEnableDynamicLayers
public boolean getEnableDynamicLayers()
- Gets the enable/disabled state of dynamic layers support.
- Returns:
- true if dynamic layers
setEnableDynamicLayers
public void setEnableDynamicLayers(boolean enable)
- Sets the enable dynamic layers support on or off. The method only has
effect prior to this layer being initialized.
- Parameters:
enable
- the new enable dynamic layers
Copyright © 2012. All Rights Reserved.