com.esri.android.map.ags
Class ArcGISLocalTiledLayer

java.lang.Object
  extended by com.esri.android.map.Layer
      extended by com.esri.android.map.TiledLayer
          extended by com.esri.android.map.ags.ArcGISLocalTiledLayer

public class ArcGISLocalTiledLayer
extends TiledLayer

The ArcGISLocatlTiledLayer class is a type of tiled layer where the data is stored locally on the device, therefore this layer can function even when the device does not have any network connectivity. The data for this layer must be in an ArcGIS Compact Cache format. The typical compact cache structure is as follows:
<CacheName>
     Layers
          _allLayers, conf.cdi, conf.xml
The path used in the constructor of the ArcGISLocalTiledLayer must point to the Layers folder e.g.
ArcGISLocalTiledLayer local = new ArcGISLocalTiledLayer("file:///mnt/sdcard/<CacheName>/Layers");

Since:
1.0

Field Summary
 
Fields inherited from class com.esri.android.map.Layer
credentials, nativeHandle, popUpInfos, serviceInfo
 
Constructor Summary
ArcGISLocalTiledLayer(String path)
          This constructor is used if you're instantiating the ArcGISLocalTiledLayer using Java code (see the class description for an example of this usage).
ArcGISLocalTiledLayer(String path, boolean initlayer)
          Instantiates an object of ArcGISLocalTiledLayer.
 
Method Summary
protected  long create()
           
protected  void initLayer()
          Initializes the layer.
 void reinitializeLayer(String path)
          Re-initializes the layer with the given path.
 void reinitializeLayer(UserCredentials usercredentials)
          Re-initializes the layer.
 
Methods inherited from class com.esri.android.map.TiledLayer
clearTiles, getBrightness, getContrast, getCurrentLevel, getGamma, setBrightness, setContrast, setGamma
 
Methods inherited from class com.esri.android.map.Layer
changeStatus, finalize, getCredentials, getDefaultSpatialReference, getDpi, getExtent, getFullExtent, getHeight, getID, getInitialExtent, getName, getOpacity, getParent, getPoolExecutor, getPopupInfo, getQueryUrl, getResolution, getServiceExecutor, getSpatialReference, getTitle, getUrl, getUrlHashCode, getWidth, isInitialized, isRecycled, isShowLegend, isVisible, isWebMapBaselayer, loadServiceInfo, lock, recycle, setCredentials, setDefaultSpatialReference, setFullExtent, setInitialExtent, setName, setOnStatusChangedListener, setOpacity, setPopupInfos, setQueryUrls, setUrl, setVisible, unlock, updateSpatialReferenceStatus, verifyCredentials
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcGISLocalTiledLayer

public ArcGISLocalTiledLayer(String path)
This constructor is used if you're instantiating the ArcGISLocalTiledLayer using Java code (see the class description for an example of this usage).

Parameters:
path - the path to the data(tiled cache) on your SDCARD.
Since:
1.0

ArcGISLocalTiledLayer

public ArcGISLocalTiledLayer(String path,
                             boolean initlayer)
Instantiates an object of ArcGISLocalTiledLayer. You can delay the layer initialization with this constructor.

Parameters:
path - the path to the data(tiled cache) on your SDCARD.
initlayer - set to true to initialize the layer.
Since:
1.0
Method Detail

create

protected long create()
Specified by:
create in class Layer

initLayer

protected void initLayer()
Description copied from class: Layer
Initializes the layer. The implementation should submit the OnStatusChangedListener.STATUS event accordingly.

Specified by:
initLayer in class Layer

reinitializeLayer

public void reinitializeLayer(UserCredentials usercredentials)
Re-initializes the layer.

Overrides:
reinitializeLayer in class Layer
Parameters:
usercredentials - the credentials is not used here.
Since:
1.0

reinitializeLayer

public void reinitializeLayer(String path)
Re-initializes the layer with the given path.

Parameters:
path - the path to the data(tiled cache) on your SDCARD.
Since:
1.0


Copyright © 2010. All Rights Reserved.