MercatorProjection class
- Implemented types
- Implementers
Constructors
- MercatorProjection.fromScalefactor(double scaleFactor)
- MercatorProjection.fromZoomlevel(int zoomLevel)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scalefactor → Scalefactor
-
no setter
Methods
-
boundingBoxOfTile(
Tile tile) → BoundingBox -
The bounding box of this tile in lat/lon coordinates
override
-
boundingBoxOfTileNumbers(
int top, int left, int bottom, int right) → BoundingBox -
boundingBoxOfTiles(
Tile upperLeft, Tile lowerRight) → BoundingBox -
override
-
latitudeToTileY(
double latitude) → int -
Converts a latitude coordinate (in degrees) to a tile Y number at a certain zoom level.
override
-
longitudeToTileX(
double longitude) → int -
@param scaleFactor the scale factor for which the size of the world map should be returned.
@return the horizontal and vertical size of the map in pixel at the given scale.
@throws IllegalArgumentException if the given scale factor is < 1
Converts a longitude coordinate (in degrees) to the tile X number at a certain zoom level.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
tileXToLongitude(
int tileX) → double -
Converts a tile X number at a certain zoom level to a longitude coordinate (left side of the tile).
override
-
tileYToLatitude(
int tileY) → double -
Converts a tile Y number at a certain zoom level to a latitude coordinate.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited