com.esri.client.local
Class ArcGISLocalDynamicMapServiceLayer

java.lang.Object
  extended by com.esri.map.Layer
      extended by com.esri.map.DynamicLayer
          extended by com.esri.map.ArcGISDynamicMapServiceLayer
              extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.esri.map.Layer
Layer.LayerStatus
 
Field Summary
 
Fields inherited from class com.esri.map.DynamicLayer
_nativeCreateSpatialRef
 
Fields inherited from class com.esri.map.Layer
_credentials, _progress, _resolutionList, serviceInfo
 
Constructor Summary
ArcGISLocalDynamicMapServiceLayer(String path)
          Constructs an ArcGISLocalDynamicMapServiceLayer.
 
Method Summary
 boolean getEnableDynamicLayers()
          Gets the enable/disabled state of dynamic layers support.
 LocalMapService getSource()
          Gets the LocalMapService this layer belongs to.
protected  void internalInit()
           
 void setEnableDynamicLayers(boolean enable)
          Sets the enable dynamic layers support on or off.
 void setUrl(String url)
          Set the URL for the layer.
 
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.DynamicLayer
createNativeLayer, getCenterMeridian, getDefaultSpatialReference, getResolution, initializeNativeLayer, isCrossesDateline, refresh, requestImage, startlisteningToMapEvents, stopListeningToMapEvents
 
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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.