Projection class

Collection of Spherical Mercator projection methods.

Constructors

Projection({BinaryMessenger? binaryMessenger})
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 arg_projectedMeters) Future<Map<String?, Object?>>
Calculate a longitude-latitude pair for a Spherical Mercator projected meters.
getMetersPerPixelAtLatitude(double arg_latitude, double arg_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(Map<String?, Object?> arg_coordinate, double arg_zoomScale) Future<MercatorCoordinate>
Calculate a point on the map in Mercator Projection for a given coordinate at the specified zoom scale.
projectedMetersForCoordinate(Map<String?, Object?> arg_coordinate) Future<ProjectedMeters>
Calculate Spherical Mercator ProjectedMeters coordinates.
toString() String
A string representation of this object.
inherited
unproject(MercatorCoordinate arg_coordinate, double arg_zoomScale) Future<Map<String?, Object?>>
Calculate a coordinate for a given point on the map in Mercator Projection.

Operators

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

Constants

codec → const MessageCodec<Object?>