com.supermap.services.components.tilecache
Class DefaultVectorTileCache<T extends TileSourceInfo>
- java.lang.Object
-
- com.supermap.services.components.tilecache.TileCacheBase<T>
-
- com.supermap.services.components.tilecache.DefaultVectorTileCache<T>
-
- All Implemented Interfaces:
- VectorTileCache<T>
public class DefaultVectorTileCache<T extends TileSourceInfo> extends TileCacheBase<T> implements VectorTileCache<T>
-
-
Field Summary
-
Fields inherited from class com.supermap.services.components.tilecache.TileCacheBase
tilesource
-
-
Constructor Summary
Constructors Constructor and Description DefaultVectorTileCache()
-
Method Summary
Methods Modifier and Type Method and Description voidcacheVector(VectorTileParameter vectorTileParameter, VectorTileData tileData)Caches vector request result.voidclear(java.lang.String mapName, Rectangle2D bounds)Clears the specified map, specifies the range of the tile cachevoiddispose()Releases cache-related resourcesVectorTileInfogetVectorCache(VectorTileParameter vectorTileParameter)Gets the vector cache for the given request.TilesetInfo[]getVectorTilesetInfos(java.lang.String mapName)Gets all the tile information for a given map.-
Methods inherited from class com.supermap.services.components.tilecache.TileCacheBase
connectTileSource, getTilesetInfos, init, insureInited, isAvailable
-
-
-
-
Method Detail
-
cacheVector
public void cacheVector(VectorTileParameter vectorTileParameter, VectorTileData tileData)
Description copied from interface:VectorTileCacheCaches vector request result.
- Specified by:
cacheVectorin interfaceVectorTileCache<T extends TileSourceInfo>tileData- Vector Tile
-
getVectorCache
public VectorTileInfo getVectorCache(VectorTileParameter vectorTileParameter)
Description copied from interface:VectorTileCacheGets the vector cache for the given request.
- Specified by:
getVectorCachein interfaceVectorTileCache<T extends TileSourceInfo>- Returns:
- Tile dta
-
clear
public void clear(java.lang.String mapName, Rectangle2D bounds)Description copied from interface:VectorTileCacheClears the specified map, specifies the range of the tile cache
- Specified by:
clearin interfaceVectorTileCache<T extends TileSourceInfo>- Overrides:
clearin classTileCacheBase<T extends TileSourceInfo>- Parameters:
mapName- Map namebounds- Range, if empty, clears all
-
dispose
public void dispose()
Description copied from interface:VectorTileCacheReleases cache-related resources
- Specified by:
disposein interfaceVectorTileCache<T extends TileSourceInfo>- Overrides:
disposein classTileCacheBase<T extends TileSourceInfo>
-
getVectorTilesetInfos
public TilesetInfo[] getVectorTilesetInfos(java.lang.String mapName)
Description copied from interface:VectorTileCacheGets all the tile information for a given map.- Specified by:
getVectorTilesetInfosin interfaceVectorTileCache<T extends TileSourceInfo>- Returns:
-
-