com.esri.client.local
Class ArcGISLocalTiledLayer

java.lang.Object
  extended by com.esri.map.Layer
      extended by com.esri.client.local.ArcGISLocalTiledLayer

public class ArcGISLocalTiledLayer
extends Layer

The Class ArcGISLocalTiledLayer uses data directly from a locally stored tile cache. This class supports exploded and compact tile caches as well as TPK TilePackages. The properties of this class, for example default spatial reference, URL and full extent should be accessed after the layer has initialized.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.esri.map.Layer
Layer.LayerStatus
 
Field Summary
 
Fields inherited from class com.esri.map.Layer
_credentials, _progress, _resolutionList, serviceInfo
 
Constructor Summary
ArcGISLocalTiledLayer(String path)
          Constructs an ArcGISLocalTiledLayer.
 
Method Summary
protected  void createNativeLayer()
           
protected  void createResolutionList(double[] lodResolutions)
           
 LayerLegendInfoCollection getLegend()
           
protected  void init(boolean isVisible, int[] visibleLayers, String title, float opacity)
          This method is called only when composing a Map from a Web Map.
protected  void initializeNativeLayer()
           
protected  void internalInit()
           
 
Methods inherited from class com.esri.map.Layer
addLayerInitializeCompleteListener, finalize, fireLayerCreateCompleteEvent, fireLayerCreateErrorEvent, fireLayerCreateErrorEvent, getCopyrightText, getCredentialsInternal, getDefaultSpatialReference, getDescription, getException, getExtent, getFullExtent, getInitialExtent, getInitializationError, getLayerHandle, getMap, getMapServer, getMapServerInfo, getMapServerLegendInfo, getMaxScale, getMinScale, getName, getOpacity, getPopupInfo, getResolution, 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, setUrl, setVisible, unlock, updateSpatialReferenceStatus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcGISLocalTiledLayer

public ArcGISLocalTiledLayer(String path)
Constructs an ArcGISLocalTiledLayer. To initialize the layer, add it to JMap or call Layer.initializeAsync().

Parameters:
path - for exploded tile caches set the path to the folder where the conf.cdi and conf.xml files resides, for compact tile caches set the path to the TPK file.
Method Detail

internalInit

protected void internalInit()
Specified by:
internalInit in class Layer

createResolutionList

protected void createResolutionList(double[] lodResolutions)

init

protected void init(boolean isVisible,
                    int[] visibleLayers,
                    String title,
                    float opacity)
Description copied from class: Layer
This method is called only when composing a Map from a Web Map. The web map contains properties that every layer should be initialized with, up front.

Specified by:
init in class Layer

createNativeLayer

protected void createNativeLayer()
Specified by:
createNativeLayer in class Layer

initializeNativeLayer

protected void initializeNativeLayer()
Specified by:
initializeNativeLayer in class Layer

getLegend

public LayerLegendInfoCollection getLegend()
Specified by:
getLegend in class Layer


Copyright © 2012. All Rights Reserved.