Projection class

Collection of Spherical Mercator projection methods.

Constructors

Projection({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
Constructor for Projection. The binaryMessenger named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

coordinateForProjectedMeters(ProjectedMeters projectedMeters) Future<Point>
Calculate a longitude-latitude pair for a Spherical Mercator projected meters.
getMetersPerPixelAtLatitude(double latitude, double zoom) Future<double>
Calculate distance spanned by one pixel at the specified latitude and zoom level.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
project(Point coordinate, double zoomScale) Future<MercatorCoordinate>
Calculate a point on the map in Mercator Projection for a given coordinate at the specified zoom scale.
projectedMetersForCoordinate(Point coordinate) Future<ProjectedMeters>
Calculate Spherical Mercator ProjectedMeters coordinates.
toString() String
A string representation of this object.
inherited
unproject(MercatorCoordinate coordinate, double zoomScale) Future<Point>
Calculate a coordinate for a given point on the map in Mercator Projection.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

pigeonChannelCodec → const MessageCodec<Object?>