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, wayAsLabelTagFilter
public 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()
MapDataStore
boundingBox
in class MapDataStore
public void close()
close
in class MapDataStore
public long getDataTimestamp(org.mapsforge.core.model.Tile tile)
getDataTimestamp
in class MapDataStore
tile
- A tile.public MapReadResult readLabels(org.mapsforge.core.model.Tile tile)
MapDataStore
readLabels
in class MapDataStore
tile
- tile for which data is requested.public MapReadResult readLabels(org.mapsforge.core.model.Tile upperLeft, org.mapsforge.core.model.Tile lowerRight)
MapDataStore
readLabels
in class MapDataStore
upperLeft
- 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)
MapDataStore
readMapData
in class MapDataStore
tile
- tile for which data is requested.public MapReadResult readMapData(org.mapsforge.core.model.Tile upperLeft, org.mapsforge.core.model.Tile lowerRight)
MapDataStore
readMapData
in class MapDataStore
upperLeft
- 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)
MapDataStore
readPoiData
in class MapDataStore
tile
- tile for which data is requested.public MapReadResult readPoiData(org.mapsforge.core.model.Tile upperLeft, org.mapsforge.core.model.Tile lowerRight)
MapDataStore
readPoiData
in class MapDataStore
upperLeft
- 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()
MapDataStore
startPosition
in class MapDataStore
public java.lang.Byte startZoomLevel()
MapDataStore
startZoomLevel
in class MapDataStore
public boolean supportsTile(org.mapsforge.core.model.Tile tile)
MapDataStore
supportsTile
in class MapDataStore
tile
- tile to be rendered.