Package com.massifmaps.datasources
Class MergedMBVTTileDataSource
java.lang.Object
com.massifmaps.datasources.TileDataSource
com.massifmaps.datasources.MergedMBVTTileDataSource
A tile data source that merges two MBVT/protobuf data sources into one.
It is assumed that the layer ids from the two sources are distinct.
It is assumed that the layer ids from the two sources are distinct.
-
Constructor Summary
ConstructorsConstructorDescriptionMergedMBVTTileDataSource(TileDataSource dataSource1, TileDataSource dataSource2) Constructs a new MergedMBVTTileDataSource tile data source object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the extent of the tiles in this data source.
The bounds are in coordinate system of the projection of the data source.intReturns the maximum zoom level supported by this data source.intReturns the minimum zoom level supported by this 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, getMaxOverzoomLevel, getMaxZoomWithOverzoom, getMetaData, getMetaDataElement, getProjection, isMaxOverzoomLevelSet, notifyTilesChanged, setMaxOverzoomLevel, setMetaData, setMetaDataElement
-
Constructor Details
-
MergedMBVTTileDataSource
Constructs a new MergedMBVTTileDataSource tile data source object.- Parameters:
dataSource1- First data source to be mergeddataSource2- Second data source to be merged
-
-
Method Details
-
getMinZoom
public int getMinZoom()Description copied from class:TileDataSourceReturns the minimum zoom level supported by this data source.- Overrides:
getMinZoomin classTileDataSource- Returns:
- The minimum zoom level supported (inclusive).
-
getMaxZoom
public int getMaxZoom()Description copied from class:TileDataSourceReturns the maximum zoom level supported by this data source.- Overrides:
getMaxZoomin classTileDataSource- Returns:
- The maximum zoom level supported (exclusive).
-
getTileMask
-
getDataExtent
Description copied from class:TileDataSourceReturns the extent of the tiles in this data source.
The bounds are in coordinate system of the projection of the data source.- Overrides:
getDataExtentin classTileDataSource- Returns:
- The extent of 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:
tile- The tile to load.- Returns:
- The tile data. If the tile is not available, null may be returned.
-