public class MVTTileProvider extends AbstractVectorTileProviderBase
DEFAULTDPI, defaultMapParameter, dpi
Constructor and Description |
---|
MVTTileProvider() |
MVTTileProvider(MVTTileProviderSetting setting) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Release the resource object.
|
java.lang.String |
getMVTSpriteJson(java.lang.String spriteName)
Gets the json of the MVT Sprite.
|
byte[] |
getMVTSpriteResource(java.lang.String spriteName)
Gets the resource of the MVT Sprite.
|
byte[] |
getMVTTile(VectorTileParameter vectorTileParameter)
Gets the mvt tile.
|
byte[] |
getSDFFonts(java.lang.String fontstack, java.lang.String range)
Gets data of sdf format.
|
VectorStyle |
getVectorStyle(java.lang.String mapName, java.lang.String[] layerNames, VectorStyleType type)
Gets the specified vector layer style in the specified map.
|
java.lang.String[] |
listMVTSprites()
Lists all the Sprites names of the MVT.
|
void |
setProviderContext(ProviderContext context)
Sets the service provider context
|
boolean |
support(java.lang.String mapName, MapCapability capability)
Determines whether the map supports the specified function.
|
clearCache, findNearest, getDefaultMapParameter, getMapImage, getMapParameter, getNames, getOverview, getResource, getResource, getSymbolData, getVectorTile, measureArea, measureDistance, pixelToMillMeter, queryByBounds, queryByDistance, queryByGeometry, queryByKeywords, queryBySQL, setDefaultMapParameter, updateMap, updateVectorStyle, viewEntire
public MVTTileProvider()
public MVTTileProvider(MVTTileProviderSetting setting)
public void setProviderContext(ProviderContext context)
ProviderContextAware
Sets the service provider context
context
- service provider contextpublic boolean support(java.lang.String mapName, MapCapability capability)
MapProvider
mapName
- The map name.capability
- Function type.public byte[] getMVTTile(VectorTileParameter vectorTileParameter)
TiledVectorProvider
getMVTTile
in interface TiledVectorProvider
getMVTTile
in class AbstractVectorTileProviderBase
vectorTileParameter
- The parameters of the vector tile.public void dispose()
Disposable
Release the resource object.
public VectorStyle getVectorStyle(java.lang.String mapName, java.lang.String[] layerNames, VectorStyleType type)
MapProvider
getVectorStyle
in interface MapProvider
getVectorStyle
in class AbstractVectorTileProviderBase
mapName
- The map name.layerNames
- The layer name.type
- The vector style type.public java.lang.String[] listMVTSprites()
TiledVectorProvider
listMVTSprites
in interface TiledVectorProvider
listMVTSprites
in class AbstractVectorTileProviderBase
public java.lang.String getMVTSpriteJson(java.lang.String spriteName)
TiledVectorProvider
getMVTSpriteJson
in interface TiledVectorProvider
getMVTSpriteJson
in class AbstractVectorTileProviderBase
spriteName
- Sprite name.public byte[] getMVTSpriteResource(java.lang.String spriteName)
TiledVectorProvider
getMVTSpriteResource
in interface TiledVectorProvider
getMVTSpriteResource
in class AbstractVectorTileProviderBase
spriteName
- Sprite name.public byte[] getSDFFonts(java.lang.String fontstack, java.lang.String range)
TiledVectorProvider
getSDFFonts
in interface TiledVectorProvider
getSDFFonts
in class AbstractVectorTileProviderBase
fontstack
- The font name.range
- Font