java.lang.Object | ||
↳ | com.carto.datasources.TileDataSource | |
↳ | com.carto.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MergedMBVTTileDataSource(TileDataSource dataSource1, TileDataSource dataSource2)
Constructs a new MergedMBVTTileDataSource tile data source object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
MapBounds |
getDataExtent()
Returns the extent of the tiles in this data source.
| ||||||||||
int |
getMaxZoom()
Returns the maximum zoom level supported by this data source.
| ||||||||||
int |
getMinZoom()
Returns the minimum zoom level supported by this data source.
| ||||||||||
TileData |
loadTile(MapTile tile)
Loads the specified tile.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a new MergedMBVTTileDataSource tile data source object.
dataSource1 | First data source to be merged |
---|---|
dataSource2 | Second data source to be merged |
Returns the extent of the tiles in this data source.
The bounds are in coordinate system of the projection of the data source.
Returns the maximum zoom level supported by this data source.
Returns 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.
tile | The tile to load. |
---|