|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TileFunctionality
The TileFunctionality interface is implemented by functionalities to provide tiled mapping
capability for the resource. For instance, the AGSTileFunctionality
provides mapping for ArcGIS Server
resources.
The WebMap
works with tiled map functionalities referenced by the resources by the name
FUNCTIONALITY_NAME
. The WebMap
as well as the
MapControl
use the methods provided by this functionality to fetch the
appropriate tiles for the user.
Currently the WebMap
will use the tile functionality only if it is supported by the
bottom-most map resource.
Note that if you were to implement this functionality for resoures other than ArcGIS Server, you'll either need to write your own client-side JavaScript to handle your tiling schemes or conform to the tiling schemes and URL patterns followed by the cached map services provided by ArcGIS server.
Field Summary | |
---|---|
static String |
FUNCTIONALITY_NAME
The name that should be given to the TileFunctionality in order for it to be consumed by the
WebMap |
Method Summary | |
---|---|
void |
applyCandidateTileInfo(CandidateTileInfo candidate)
Computes the tiles to be fetched by applying the info contained in the given candidate tile. |
void |
computeCurrentOriginContainingTile()
Computes the top-left tile for the current extent. |
String |
getBaseUrl()
Returns the base URL for the tiled images. |
WebLodInfo |
getCurrentLodInfo()
Returns the level of detail (LOD) used to display the current extent. |
ContainingTile |
getCurrentOriginContainingTile()
Returns the top-left tile for the current extent. |
List<WebLodInfo> |
getLodInfos()
Returns a List of the levels of detail (LODs) supported by this resource. |
WebPoint |
getOrigin()
Returns the origin of the tiling scheme used by this resource. |
int |
getTileHeight()
Returns the height of the tiled images. |
String |
getTileImageFormat()
Returns the format of the tiled images. |
int |
getTileWidth()
Returns the width of the tiled images. |
boolean |
isTilingAvailable()
Returns true if tiling is available for this resource. |
boolean |
isUseVirtualCacheDirectory()
Returns true if tiles are to be fetched using a direct URL to the tile image. |
void |
zoomToLevel(int level)
Zooms the map to the given level of detail (LOD). |
Methods inherited from interface com.esri.adf.web.data.GISFunctionality |
---|
destroyFunctionality, getResource, initFunctionality |
Field Detail |
---|
static final String FUNCTIONALITY_NAME
The name that should be given to the TileFunctionality
in order for it to be consumed by the
WebMap
Method Detail |
---|
boolean isTilingAvailable()
Returns true if tiling is available for this resource.
If users try to use this functionality even when tiled maps are not supported by this resource, this method should
return false. The WebMap
uses this method to determine if it should fetch tiles or dynamically export
images.
boolean isUseVirtualCacheDirectory()
Returns true if tiles are to be fetched using a direct URL to the tile image. If false, the tiles are fetched using a query string encoded URL.
void computeCurrentOriginContainingTile()
Computes the top-left tile for the current extent.
This is important because only this information is passed by the
MapControl
to the client browser. The JavaScript residing on the browser
uses this information to fetch the required tiles by directly requesting the tile images from the server.
ContainingTile getCurrentOriginContainingTile()
Returns the top-left tile for the current extent.
This is important because only this information is passed by the
MapControl
to the client browser. The JavaScript residing on the browser
uses this information to fetch the required tiles by directly requesting the tile images from the server.
List<WebLodInfo> getLodInfos()
Returns a List
of the levels of detail (LODs) supported by this resource.
The map tiles are generated by the server for pre-defined scales (LODs). This information is important to compute which LOD should be used to display the current extent requested by the user.
List
of the levels of detail supported by this resourceWebLodInfo getCurrentLodInfo()
Returns the level of detail (LOD) used to display the current extent.
The map tiles are generated by the server for pre-defined scales (LODs). This information is important to compute which LOD should be used to display the current extent requested by the user.
void zoomToLevel(int level)
Zooms the map to the given level of detail (LOD). If the requested level is not supported no action should be taken.
level
- the level of detail (LOD) that the map should be zoomed toWebPoint getOrigin()
Returns the origin of the tiling scheme used by this resource.
String getBaseUrl()
Returns the base URL for the tiled images. The client-side JavaScript append the virtual path or append the query string to this base URL to fetch the appropriate tiled image from the server.
int getTileWidth()
Returns the width of the tiled images.
int getTileHeight()
Returns the height of the tiled images.
String getTileImageFormat()
Returns the format of the tiled images. (For ex. jpg, png, etc.)
void applyCandidateTileInfo(CandidateTileInfo candidate)
Computes the tiles to be fetched by applying the info contained in the given candidate tile.
If there are no matching LODs for the LOD info contained in the candidate, no tiles will be fetched for this
functionality and subsequent calls to getCurrentOriginContainingTile()
will return null
.
candidate
- the CandidateTileInfo
based on which the tiles to be fetched will be computed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |