com.esri.android.map
Class TiledServiceLayer

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

public abstract class TiledServiceLayer
extends TiledLayer

The Class TiledServiceLayer.

Since:
1.0

Nested Class Summary
static class TiledServiceLayer.TileInfo
          A class wrapping the tiled info.
 
Field Summary
protected  boolean isBingMap
           
protected  ConcurrentHashMap<String,Future<?>> pending
           
 
Fields inherited from class com.esri.android.map.Layer
credentials, nativeHandle, popUpInfos, serviceInfo
 
Constructor Summary
TiledServiceLayer(String url)
          Constructs a tiled layer for the URL within the given Context.
 
Method Summary
protected  void cancelPendingTasks()
           
protected  void cancelRequest(int level, int col, int row)
          The method is a callback from native ServiceTileLayer object.
protected  long create()
           
protected abstract  byte[] getTile(int level, int col, int row)
           
 TiledServiceLayer.TileInfo getTileInfo()
          Returns the TiledInfo object.
protected  void initLayer()
          Initializes the layer.
 void recycle()
          Releases resources referenced by the Layer so that they can be recycled.
protected  void requestTile(int level, int col, int row)
          The method is a callback from native ServiceTileLayer object.
protected  void setTileInfo(TiledServiceLayer.TileInfo tileInfo)
          Sets the TileInfo object
 
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, reinitializeLayer, 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
 

Field Detail

pending

protected final ConcurrentHashMap<String,Future<?>> pending

isBingMap

protected boolean isBingMap
Constructor Detail

TiledServiceLayer

public TiledServiceLayer(String url)
Constructs a tiled layer for the URL within the given Context.

Parameters:
url - an URL string
Since:
1.0
Method Detail

create

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

getTileInfo

public TiledServiceLayer.TileInfo getTileInfo()
Returns the TiledInfo object.

Returns:
the TileInfo object describing the TiledServiceLayer;
Since:
1.0

setTileInfo

protected void setTileInfo(TiledServiceLayer.TileInfo tileInfo)
Sets the TileInfo object

Parameters:
tileInfo - a TileInfo object

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

getTile

protected abstract byte[] getTile(int level,
                                  int col,
                                  int row)
                           throws Exception
Throws:
Exception

requestTile

protected void requestTile(int level,
                           int col,
                           int row)
The method is a callback from native ServiceTileLayer object. The end user will not use it directly. The method will be called when the layer is zoomed in or our, a new tile needs to be updated.

Parameters:
level - an integer of tile zoom level
row - an integer for the tile row
col - an integer for the tile column

cancelRequest

protected void cancelRequest(int level,
                             int col,
                             int row)
The method is a callback from native ServiceTileLayer object. The end user will not use it directly. It is called when the ServiceTileLayer object need to cancel the previous request.

Parameters:
level - an integer of tile zoom level
row - an integer for the tile row
col - an integer for the tile column

recycle

public void recycle()
Description copied from class: Layer
Releases resources referenced by the Layer so that they can be recycled.

Overrides:
recycle in class Layer

cancelPendingTasks

protected void cancelPendingTasks()


Copyright © 2010. All Rights Reserved.