TileSource (API Reference)
Interface TileSource
- All Known Subinterfaces:
LineTileSource,PointTileSource,PolygonTileSource,RasterTileSource
A source of tiles. The implementations must be thread-safe.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classTile data version.static interfaceListener ofTileSourceevents.static interfaceHandle of a load request.static final classTile metadata. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(TileSource.Listener listener) Adds a listener for receiving state notifications.getDataVersion(TileKey tileKey) Gets the current data version of a tile.Gets the storage levels available for this data source.Gets the tiling scheme used by this source.voidremoveListener(TileSource.Listener listener) Removes a listener from receiving state notifications.
-
Method Details
-
getDataVersion
Gets the current data version of a tile.
- Parameters:
tileKey-Key of the tile for which to retrieve the version.
- Returns:
Data version for a tile.
-
addListener
Adds a listener for receiving state notifications.
- Parameters:
listener-The listener
-
removeListener
Removes a listener from receiving state notifications.
- Parameters:
listener-Listener to be removed from receiving state notifications.
-
getTilingScheme
Gets the tiling scheme used by this source.
- Returns:
The tiling scheme used by this source.
-
getStorageLevels
Gets the storage levels available for this data source. Supported range [0, 31].
At least one level must be available for this to be used as a source of data.
- Returns:
The storage levels available for this data source. Supported range [0, 31].
-