java.lang.Object | ||||
↳ | com.esri.android.map.Layer | |||
↳ | com.esri.android.map.TiledLayer | |||
↳ | com.esri.android.map.TiledServiceLayer | |||
↳ | com.esri.android.map.ags.ArcGISTiledMapServiceLayer |
The ArcGISTiledMapServiceLayer class allows you to work with a cached map service resource exposed by the ArcGIS
Server REST API. A cached service accesses tiles from a cache instead of dynamically rendering images. Java usage:
MapView mv = new MapView(this);
mv.addLayer(new ArcGISTiledMapServiceLayer(
"http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"));
setContentView(mv);
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.esri.android.map.TiledServiceLayer
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.esri.android.map.TiledServiceLayer
| |||||||||||
From class
com.esri.android.map.Layer
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ArcGISTiledMapServiceLayer(String url)
This constructor is used if you're instantiating the ArcGISTiledMapServiceLayer using Java code (see the class
description for an example of this usage).
| |||||||||||
ArcGISTiledMapServiceLayer(String url, UserCredentials credentials)
This constructor is used if you're instantiating the ArcGISTiledMapServiceLayer using Java code.
| |||||||||||
ArcGISTiledMapServiceLayer(String url, UserCredentials credentials, boolean initLayer)
Instantiates an object of ArcGISTiledMapServiceLayer.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ArcGISPopupInfo |
createPopupInfo(int sublayerId)
Creates the popup info.
| ||||||||||
ArcGISLayerInfo[] |
getAllLayers()
Returns the all of sub-layers of the tiled map service.
| ||||||||||
String |
getCapabilities()
Gets the capabilities of the map service.
| ||||||||||
ArcGISLayerInfo[] |
getLayers()
Returns the immediate sub-layers of the tiled map service.
| ||||||||||
ArcGISPopupInfo |
getPopupInfo(int sublayerId)
Gets the
PopupInfo associated with the sub-layer id. | ||||||||||
boolean |
retrieveLegendInfo()
Supported on ArcGIS Server 10.01 and above.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
byte[] | getTile(int level, int col, int row) | ||||||||||
void |
initLayer()
Initializes the layer.
| ||||||||||
void | retrieveNoDataTileETag() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.esri.android.map.TiledServiceLayer
| |||||||||||
From class
com.esri.android.map.TiledLayer
| |||||||||||
From class
com.esri.android.map.Layer
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.esri.android.map.popup.PopupLayer
|
This constructor is used if you're instantiating the ArcGISTiledMapServiceLayer using Java code (see the class description for an example of this usage).
url | the URL of the dynamic map service. |
---|
This constructor is used if you're instantiating the ArcGISTiledMapServiceLayer using Java code.
url | the URL of the tiled map service. |
---|---|
credentials | the credentials used for accessing a secure tiled map service |
Instantiates an object of ArcGISTiledMapServiceLayer.
url | the URL of the tiled map service. |
---|---|
credentials | the credentials used for accessing a secure tiled map service |
initLayer | set to true to initialize layer. |
Creates the popup info.
sublayerId | the sublayer id |
---|
Returns the all of sub-layers of the tiled map service. See getLayers()
if you need the layers returned in
hierarchy.
ArcGISLayerInfo
.Gets the capabilities of the map service. It is a comma separated list of supported capabilities - e.g. "Map, Query, Data". Only available if the map service is published using ArcGIS Server version 10 or above. You can not call this method until the layer is loaded.
Returns the immediate sub-layers of the tiled map service. If a layer is a group layer, you can call the
ArcGISLayerInfo
. getLayers()
to get the sub-layers of the
group layer.Supported on ArcGIS Server 10.01 and above.
Synchronously retrieves the legend information for all the layer infos. Once finished,
getLegend()
may be called on the individual
ArcGISLayerInfos that make up this ArcGISTiledMapServiceLayer.Initializes the layer. The implementation should submit the OnStatusChangedListener.STATUS
event accordingly.