MapDataStore class abstract
Base class for map data retrieval.
- Inheritance
- Implementers
Constructors
- MapDataStore(String? language)
-
Ctor for MapDataStore setting preferred language.
const
Properties
- boundingBox → BoundingBox?
-
Returns the area for which data is supplied.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- preferredLanguage → String?
-
the preferred language when extracting labels from this data store. The actual
implementation is up to the concrete implementation, which can also simply ignore
this setting.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startPosition → LatLong?
-
Gets the initial map position.
no setter
- startZoomLevel → int?
-
Gets the initial zoom level.
no setter
Methods
-
extractLocalized(
String s) → String? - Extracts substring of preferred language from multilingual string using the preferredLanguage setting.
-
getDataTimestamp(
Tile tile) → int? - Returns the timestamp of the data used to render a specific tile.
-
lateOpen(
) → Future< void> -
Open file descriptors
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readLabels(
Tile upperLeft, Tile lowerRight) → Future< DatastoreReadResult?> -
Reads data for an area defined by the tile in the upper left and the tile in
the lower right corner. The default implementation combines the results from
all tiles, a possibly inefficient solution.
Precondition: upperLeft.tileX <= lowerRight.tileX && upperLeft.tileY <= lowerRight.tileY
override
-
readLabelsSingle(
Tile tile) → Future< DatastoreReadResult?> -
Reads only labels for tile. Labels are pois as well as ways that carry a name tag.
It is permissible for the MapDataStore to return more data.
This default implementation returns all map data, which is inefficient, but works.
override
-
readMapData(
Tile upperLeft, Tile lowerRight) → Future< DatastoreReadResult?> -
Reads data for an area defined by the tile in the upper left and the tile in
the lower right corner. The default implementation combines the results from
all tiles, a possibly inefficient solution.
Precondition: upperLeft.tileX <= lowerRight.tileX && upperLeft.tileY <= lowerRight.tileY
override
-
readMapDataSingle(
Tile tile) → Future< DatastoreReadResult?> -
Reads data for tile.
override
-
readPoiData(
Tile upperLeft, Tile lowerRight) → Future< DatastoreReadResult?> -
Reads POI data for an area defined by the tile in the upper left and the tile in
the lower right corner. The default implementation combines the results from
all tiles, a possibly inefficient solution.
Precondition: upperLeft.tileX <= lowerRight.tileX && upperLeft.tileY <= lowerRight.tileY
override
-
readPoiDataSingle(
Tile tile) → Future< DatastoreReadResult?> -
Reads only POI data for tile.
override
-
supportsTile(
Tile tile, Projection projection) → bool -
Returns true if MapDatabase contains the given tile.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
wayAsLabelTagFilter(
List< Tag> tags) → bool - Returns true if a way should be included in the result set for readLabels() By default only ways with names, house numbers or a ref are included in the result set of readLabels(). This is to reduce the set of ways as much as possible to save memory. @param tags the tags associated with the way @return true if the way should be included in the result set
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited