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.
Constructors
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
- replicatesWorldLongitude → bool
-
Returns true if we want the world to be replicated, longitude-wise.
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) → Rect? - Rescales the bounds to a given zoom value.
-
latLngToOffset(
LatLng latlng, double zoom) → Offset - Similar to latLngToXY but converts the XY coordinates to an Offset.
-
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
-
offsetToLatLng(
Offset 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