Tile class
A tile represents a rectangular part of the world map. All tiles can be identified by their X and Y number together with their zoom level. The actual area that a tile covers on a map depends on the underlying map projection.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- indoorLevel → int
-
The indoor level of this tile.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tileX → int
-
The X number of this tile.
final
- tileY → int
-
The Y number of this tile.
final
- zoomLevel → int
-
The zoom level of this tile.
final
Methods
-
dispose(
) → void -
getAbove(
) → Tile - Returns the tile above this tile.
-
getAboveLeft(
) → Tile - Returns the tile above left
-
getAboveRight(
) → Tile - Returns the tile above right
-
getBelow(
) → Tile - Returns the tile below this tile.
-
getBelowLeft(
) → Tile - Returns the tile below left
-
getBelowRight(
) → Tile - Returns the tile below right
-
getBoundingBox(
Projection projection) → BoundingBox -
getLeft(
) → Tile - Returns the tile to the left of this tile.
-
getNeighbours(
) → Set< Tile> - Returns a set of the eight neighbours of this tile.
-
getParent(
) → Tile? - @return the parent tile of this tile or null, if the zoom level of this tile is 0.
-
getRight(
) → Tile - Returns the tile to the right of this tile.
-
getShiftX(
Tile otherTile) → int -
getShiftY(
Tile otherTile) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
getMaxTileNumber(
int zoomLevel) → int - Returns true if two tile areas, defined by upper left and lower right tiles, overlap. Precondition: zoom levels of upperLeft/lowerRight and upperLeftOther/lowerRightOther are the same.