Package com.massifmaps.datasources
Class PackageManagerTileDataSource
java.lang.Object
com.massifmaps.datasources.TileDataSource
com.massifmaps.datasources.PackageManagerTileDataSource
A tile data source that loads tiles from package manager.
-
Constructor Summary
ConstructorsConstructorDescriptionPackageManagerTileDataSource(PackageManager packageManager) Constructs a PackageManagerTileDataSource object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the package manager instance used by the data source.Loads the specified tile.
Note: the tile coordinate system used here is vertically flipped relative to layer tile coordinate system.Methods inherited from class com.massifmaps.datasources.TileDataSource
buildTagValues, containsMetaDataKey, getContainerMetaData, getDataExtent, getMaxOverzoomLevel, getMaxZoom, getMaxZoomWithOverzoom, getMetaData, getMetaDataElement, getMinZoom, getProjection, isMaxOverzoomLevelSet, notifyTilesChanged, setMaxOverzoomLevel, setMetaData, setMetaDataElement
-
Constructor Details
-
PackageManagerTileDataSource
Constructs a PackageManagerTileDataSource object.- Parameters:
packageManager- The package manager that is used to retrieve requested tiles.
-
-
Method Details
-
getPackageManager
Returns the package manager instance used by the data source.- Returns:
- The package manager instance used by the data source.
-
loadTile
Description copied from class:TileDataSourceLoads the specified tile.
Note: the tile coordinate system used here is vertically flipped relative to layer tile coordinate system.- Overrides:
loadTilein classTileDataSource- Parameters:
mapTile- The tile to load.- Returns:
- The tile data. If the tile is not available, null may be returned.
-