public class MultiMapDataStore extends MapDataStore
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiMapDataStore.DataPolicy |
preferredLanguage| Constructor and Description |
|---|
MultiMapDataStore(MultiMapDataStore.DataPolicy dataPolicy) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMapDataStore(MapDataStore mapDataStore,
boolean useStartZoomLevel,
boolean useStartPosition)
adds another mapDataStore
|
org.mapsforge.core.model.BoundingBox |
boundingBox()
Returns the area for which data is supplied.
|
void |
close() |
long |
getDataTimestamp(org.mapsforge.core.model.Tile tile)
Returns the timestamp of the data used to render a specific tile.
|
MapReadResult |
readLabels(org.mapsforge.core.model.Tile tile)
Reads only labels for tile.
|
MapReadResult |
readLabels(org.mapsforge.core.model.Tile upperLeft,
org.mapsforge.core.model.Tile lowerRight)
Reads data for an area defined by the tile in the upper left and the tile in
the lower right corner.
|
MapReadResult |
readMapData(org.mapsforge.core.model.Tile tile)
Reads data for tile.
|
MapReadResult |
readMapData(org.mapsforge.core.model.Tile upperLeft,
org.mapsforge.core.model.Tile lowerRight)
Reads data for an area defined by the tile in the upper left and the tile in
the lower right corner.
|
MapReadResult |
readPoiData(org.mapsforge.core.model.Tile tile)
Reads only POI data for tile.
|
MapReadResult |
readPoiData(org.mapsforge.core.model.Tile upperLeft,
org.mapsforge.core.model.Tile lowerRight)
Reads POI data for an area defined by the tile in the upper left and the tile in
the lower right corner.
|
void |
setStartPosition(org.mapsforge.core.model.LatLong startPosition) |
void |
setStartZoomLevel(byte startZoomLevel) |
org.mapsforge.core.model.LatLong |
startPosition()
Gets the initial map position.
|
java.lang.Byte |
startZoomLevel()
Gets the initial zoom level.
|
boolean |
supportsTile(org.mapsforge.core.model.Tile tile)
Returns true if MapDatabase contains tile.
|
extract, extractLocalized, wayAsLabelTagFilterpublic MultiMapDataStore(MultiMapDataStore.DataPolicy dataPolicy)
public void addMapDataStore(MapDataStore mapDataStore, boolean useStartZoomLevel, boolean useStartPosition)
mapDataStore - the mapDataStore to adduseStartZoomLevel - if true, use the start zoom level of this mapDataStore as the start zoom leveluseStartPosition - if true, use the start position of this mapDataStore as the start positionpublic org.mapsforge.core.model.BoundingBox boundingBox()
MapDataStoreboundingBox in class MapDataStorepublic void close()
close in class MapDataStorepublic long getDataTimestamp(org.mapsforge.core.model.Tile tile)
getDataTimestamp in class MapDataStoretile - A tile.public MapReadResult readLabels(org.mapsforge.core.model.Tile tile)
MapDataStorereadLabels in class MapDataStoretile - tile for which data is requested.public MapReadResult readLabels(org.mapsforge.core.model.Tile upperLeft, org.mapsforge.core.model.Tile lowerRight)
MapDataStorereadLabels in class MapDataStoreupperLeft - tile that defines the upper left corner of the requested area.lowerRight - tile that defines the lower right corner of the requested area.public MapReadResult readMapData(org.mapsforge.core.model.Tile tile)
MapDataStorereadMapData in class MapDataStoretile - tile for which data is requested.public MapReadResult readMapData(org.mapsforge.core.model.Tile upperLeft, org.mapsforge.core.model.Tile lowerRight)
MapDataStorereadMapData in class MapDataStoreupperLeft - tile that defines the upper left corner of the requested area.lowerRight - tile that defines the lower right corner of the requested area.public MapReadResult readPoiData(org.mapsforge.core.model.Tile tile)
MapDataStorereadPoiData in class MapDataStoretile - tile for which data is requested.public MapReadResult readPoiData(org.mapsforge.core.model.Tile upperLeft, org.mapsforge.core.model.Tile lowerRight)
MapDataStorereadPoiData in class MapDataStoreupperLeft - tile that defines the upper left corner of the requested area.lowerRight - tile that defines the lower right corner of the requested area.public void setStartPosition(org.mapsforge.core.model.LatLong startPosition)
public void setStartZoomLevel(byte startZoomLevel)
public org.mapsforge.core.model.LatLong startPosition()
MapDataStorestartPosition in class MapDataStorepublic java.lang.Byte startZoomLevel()
MapDataStorestartZoomLevel in class MapDataStorepublic boolean supportsTile(org.mapsforge.core.model.Tile tile)
MapDataStoresupportsTile in class MapDataStoretile - tile to be rendered.