com.esri.android.map
Class TiledLayer

java.lang.Object
  extended by com.esri.android.map.Layer
      extended by com.esri.android.map.TiledLayer
Direct Known Subclasses:
ArcGISLocalTiledLayer, TiledServiceLayer

public abstract class TiledLayer
extends Layer

TiledLayer is the base class for all tiled layers that can be added to a map. You would typically work with one of the sub-classes of this abstract class, for example, ArcGISTiledMapServiceLayer.

You only need to use this class for adding support for new cached map services.


Constructor Summary
TiledLayer(String url, boolean initLayer)
          Constructs a tiled layer.
 
Method Summary
 void clearTiles()
          Cancels all current tile request.
 float getBrightness()
          Gets the brightness of the ArcGISTiledMapCacheLayer.
 float getContrast()
          Gets the contrast of the ArcGISTiledMapCacheLayer.
 int getCurrentLevel()
          Returns the current the level of detail(LOD).
 float getGamma()
          Gets the gamma of the ArcGISTiledMapCacheLayer.
 void setBrightness(float brightness)
          Sets the brightness of the ArcGISTiledMapCacheLayer.
 void setContrast(float contrast)
          Sets the contrast of the ArcGISTiledMapCacheLayer.
 void setGamma(float gamma)
          Sets the gamma of the ArcGISTiledMapCacheLayer.
 
Methods inherited from class com.esri.android.map.Layer
getCredentials, getDefaultSpatialReference, getExtent, getFullExtent, getHeight, getID, getName, getOpacity, getPopupInfo, getResolution, getSpatialReference, getTitle, getUrl, getUrlHashCode, getWidth, isInitialized, isRecycled, isVisible, isWebMapBaselayer, recycle, reinitializeLayer, setName, setOnStatusChangedListener, setOpacity, setPopupInfos, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TiledLayer

public TiledLayer(String url,
                  boolean initLayer)
Constructs a tiled layer.

Parameters:
url - a valid URL string to create the layer
initLayer - layer will be initialized if it is true
Method Detail

getBrightness

public float getBrightness()
Gets the brightness of the ArcGISTiledMapCacheLayer.

Returns:
Returns the brightness.

setBrightness

public void setBrightness(float brightness)
Sets the brightness of the ArcGISTiledMapCacheLayer.

Parameters:
brightness - The brightness to set.

getContrast

public float getContrast()
Gets the contrast of the ArcGISTiledMapCacheLayer.

Returns:
Returns the contrast.

setContrast

public void setContrast(float contrast)
Sets the contrast of the ArcGISTiledMapCacheLayer.

Parameters:
contrast - The contrast to set.

getGamma

public float getGamma()
Gets the gamma of the ArcGISTiledMapCacheLayer.

Returns:
Returns the gamma.

setGamma

public void setGamma(float gamma)
Sets the gamma of the ArcGISTiledMapCacheLayer.

Parameters:
gamma - The gamma to set.

clearTiles

public void clearTiles()
Cancels all current tile request. This method will cause the tiled layer to fetch new tiles in current extent and redraw.


getCurrentLevel

public int getCurrentLevel()
Returns the current the level of detail(LOD). An negative number will be returned if the layer is not available anymore or the zoom level beyond the tile schema.

Returns:
an integer


Copyright © 2012. All Rights Reserved.