public abstract class

TiledLayer

extends Layer
implements PopupLayer
java.lang.Object
   ↳ com.esri.android.map.Layer
     ↳ com.esri.android.map.TiledLayer
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class com.esri.android.map.Layer
Public Constructors
TiledLayer(String url, boolean initLayer)
Constructs a tiled layer.
TiledLayer(boolean initLayer)
Constructs a tiled layer.
Public Methods
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.
boolean isPopupAllowGeometryUpdate(Graphic graphic)
Returns true if the popup allow the geometry to be updated, potentially based on some information carried by the Graphic provided.
boolean isPopupDeletable(Graphic graphic)
Returns true if the popup created is deletable, potentially based on some information carried by the Graphic provided.
boolean isPopupEditable(Graphic graphic)
Returns true if the popup created is editable, potentially based on some information carried by the Graphic provided.
boolean isRenderNativeResolution()
Returns true if rendering at native resolution is enabled.
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.
void setRenderNativeResolution(boolean renderNativeResolution)
Sets to true to render the tiled layer in native resolution.
[Expand]
Inherited Methods
From class com.esri.android.map.Layer
From class java.lang.Object
From interface com.esri.android.map.popup.PopupLayer

Public Constructors

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

public TiledLayer (boolean initLayer)

Constructs a tiled layer.

Parameters
initLayer layer will be initialized if it is true

Public Methods

public void clearTiles ()

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

public float getBrightness ()

Gets the brightness of the ArcGISTiledMapCacheLayer.

Returns
  • Returns the brightness.

public float getContrast ()

Gets the contrast of the ArcGISTiledMapCacheLayer.

Returns
  • Returns the contrast.

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

public float getGamma ()

Gets the gamma of the ArcGISTiledMapCacheLayer.

Returns
  • Returns the gamma.

public boolean isPopupAllowGeometryUpdate (Graphic graphic)

Returns true if the popup allow the geometry to be updated, potentially based on some information carried by the Graphic provided.

public boolean isPopupDeletable (Graphic graphic)

Returns true if the popup created is deletable, potentially based on some information carried by the Graphic provided.

public boolean isPopupEditable (Graphic graphic)

Returns true if the popup created is editable, potentially based on some information carried by the Graphic provided.

public boolean isRenderNativeResolution ()

Returns true if rendering at native resolution is enabled.

Returns
  • true, if rendering at native resolution is enabled.

public void setBrightness (float brightness)

Sets the brightness of the ArcGISTiledMapCacheLayer.

Parameters
brightness The brightness to set.

public void setContrast (float contrast)

Sets the contrast of the ArcGISTiledMapCacheLayer.

Parameters
contrast The contrast to set.

public void setGamma (float gamma)

Sets the gamma of the ArcGISTiledMapCacheLayer.

Parameters
gamma The gamma to set.

public void setRenderNativeResolution (boolean renderNativeResolution)

Sets to true to render the tiled layer in native resolution. This property does not have any effect on low-resolution devices. You can take advantage of high-resolution display to show more tile images on the screen by enabling this property. Enabling this property will use more memory and network bandwidth.

Parameters
renderNativeResolution true to enable rendering at native resolution.