Crs class abstract

An abstract representation of a Coordinate Reference System.

The main objective of a CRS is to handle the conversion between surface points of objects of different dimensions. In our case 3D and 2D objects.

Implementers
Annotations

Constructors

Crs({required String code, required bool infinite, (double, double)? wrapLng, (double, double)? wrapLat})
Constant base constructor that sets all values for the abstract Crs.
const

Properties

code String
The code
final
hashCode int
The hash code for this object.
no setterinherited
infinite bool
Set to true if the CRS has no bounds.
final
projection Projection
Project a spherical LatLng coordinate into planar space (unscaled).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wrapLat → (double, double)?
Wrap the latitude to fit inside the bounds of the Crs.
final
wrapLng → (double, double)?
Wrap the longitude to fit inside the bounds of the Crs.
final

Methods

getProjectedBounds(double zoom) Bounds<double>?
Rescales the bounds to a given zoom value.
latLngToPoint(LatLng latlng, double zoom) Point<double>
Similar to latLngToXY but converts the XY coordinates to a Point.
latLngToXY(LatLng latlng, double scale) → (double, double)
Converts a point on the sphere surface (with a certain zoom) to a scaled map point.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pointToLatLng(Point<num> point, double zoom) → LatLng
Converts a map point to the sphere coordinate (at a certain zoom).
scale(double zoom) double
Zoom to Scale function.
toString() String
A string representation of this object.
inherited
transform(double x, double y, double scale) → (double, double)
Scale planar coordinate to scaled map point.
untransform(double x, double y, double scale) → (double, double)
Scale map point to planar coordinate.
zoom(double scale) double
Scale to Zoom function.

Operators

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