public class SVTilesMapProvider extends AbstractVectorTileProviderBase implements TiledVectorProvider, ProviderContextAware, Disposable
DEFAULTDPI, defaultMapParameter, dpi
Constructor and Description |
---|
SVTilesMapProvider() |
SVTilesMapProvider(SVTilesMapProviderSetting providerSetting) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Release the resource object.
|
byte[] |
getMVTTile(VectorTileParameter vectorTileParameter)
Gets the mvt tile.
|
java.lang.String |
getResource(java.lang.String mapName, ResourceParameter resourceParameter)
Gets the resource image of a specified map according to a resource image parameter.
|
byte[] |
getResource(java.lang.String mapName, ResourceParameter resourceParameter, Point2D[] points)
Gets the resource image of a specified map according to a resource image parameter.
|
byte[] |
getSymbolData(java.lang.String symbolId, OutputFormat format)
Gets the symbol image.
|
VectorStyle |
getVectorStyle(java.lang.String mapName, java.lang.String[] layerNames, VectorStyleType type)
Gets the specified vector layer style in the specified map.
|
VectorTileData |
getVectorTile(VectorTileParameter vectorTileParameter)
Gets vector tile of the map.
|
QueryResult |
queryByKeywords(java.lang.String mapName, KeywordsQueryParameterSet queryParameterSet)
Querys the features on the map based on the keywords.
|
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.
|
void |
updateVectorStyle(java.lang.String layerName, VectorStyleType type, java.lang.String style)
Updates the vector tile style according to the input layer name and the input vector style type.
|
clearCache, findNearest, getDefaultMapParameter, getMapImage, getMapParameter, getMVTSpriteJson, getMVTSpriteResource, getNames, getOverview, getSDFFonts, listMVTSprites, measureArea, measureDistance, pixelToMillMeter, queryByBounds, queryByDistance, queryByGeometry, queryBySQL, setDefaultMapParameter, updateMap, viewEntire
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMVTSpriteJson, getMVTSpriteResource, getSDFFonts, listMVTSprites
public SVTilesMapProvider()
public SVTilesMapProvider(SVTilesMapProviderSetting providerSetting)
public VectorTileData getVectorTile(VectorTileParameter vectorTileParameter)
TiledVectorProvider
Gets vector tile of the map.
getVectorTile
in interface TiledVectorProvider
getVectorTile
in class AbstractVectorTileProviderBase
vectorTileParameter
- The parameters of the vector tile.public void setProviderContext(ProviderContext context)
Sets the service provider context.
setProviderContext
in interface ProviderContextAware
context
- The service provider context.public void dispose()
Disposable
Release the resource object.
dispose
in interface Disposable
public boolean support(java.lang.String mapName, MapCapability capability)
MapProvider
support
in interface MapProvider
mapName
- The map name.capability
- Function type.public QueryResult queryByKeywords(java.lang.String mapName, KeywordsQueryParameterSet queryParameterSet)
KeywordsQueryable
queryByKeywords
in interface KeywordsQueryable
queryByKeywords
in class AbstractVectorTileProviderBase
mapName
- Map name.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 void updateVectorStyle(java.lang.String layerName, VectorStyleType type, java.lang.String style)
TiledVectorProvider
updateVectorStyle
in interface TiledVectorProvider
updateVectorStyle
in class AbstractVectorTileProviderBase
layerName
- The layer name.type
- The vector style type.style
- The vector tile style to be updated.public java.lang.String getResource(java.lang.String mapName, ResourceParameter resourceParameter)
MapProvider
Gets the resource image of a specified map according to a resource image parameter.
getResource
in interface MapProvider
getResource
in class AbstractVectorTileProviderBase
mapName
- The map name.resourceParameter
- The resource image parameter.public byte[] getResource(java.lang.String mapName, ResourceParameter resourceParameter, Point2D[] points)
MapProvider
Gets the resource image of a specified map according to a resource image parameter.
getResource
in interface MapProvider
getResource
in class AbstractVectorTileProviderBase
mapName
- The map name.resourceParameter
- The resource image parameter.points
- The points used to draw resource images.public byte[] getSymbolData(java.lang.String symbolId, OutputFormat format)
TiledVectorProvider
getSymbolData
in interface TiledVectorProvider
getSymbolData
in class AbstractVectorTileProviderBase
symbolId
- Symbol id.format
- Symbol format.public byte[] getMVTTile(VectorTileParameter vectorTileParameter)
TiledVectorProvider
getMVTTile
in interface TiledVectorProvider
getMVTTile
in class AbstractVectorTileProviderBase
vectorTileParameter
- The parameters of the vector tile.