Earth class
Serves as the base for CRS that are global such that they cover the earth.
Can only be used as the base for other CRS and cannot be used directly,
since it does not have a code
, projection
or transformation
.
distance()
returns meters.
Constructors
- Earth()
-
const
Properties
- code → String
-
Code of this CRS.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- infinite → bool
-
If true, the coordinate space will be unbounded (infinite in both axes).
no setterinherited
-
latBounds
→ Tuple2<
double, double> -
Bounds for latitude
no setteroverride
-
lngBounds
→ Tuple2<
double, double> -
Bounds for longitude
no setteroverride
- projection → Projection?
-
Crs projection
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transformation → Transformation
-
Crs transformation
no setterinherited
Methods
-
distance(
LatLng position, LatLng destination) → double -
Calculate distance from position to destination.
override
-
getProjectedBounds(
double? zoom) → Bounds? -
Returns the projection's bounds scaled and transformed
for the provided
zoom
.inherited -
latlngToPoint(
LatLng? position, double? zoom) → UPoint -
Projects latlng coordinates into pixel coordinates for a given zoom.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pointToLatLng(
UPoint point, double? zoom) → LatLng? -
The inverse of
latlngToPoint
. Projects pixel coordinates on a given zoom into latlng coordinates.inherited -
project(
LatLng? latlng) → UPoint? -
Projects geographical coordinates into coordinates
in units accepted for this CRS (e.g. meters for EPSG:3857,
for passing it to WMS services).
inherited
-
scale(
double? zoom) → double? -
Returns the scale used when transforming projected coordinates into
pixel coordinates for a particular zoom.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unproject(
UPoint point) → LatLng? -
Given a projected coordinate returns the corresponding LatLng.
The inverse of project.
inherited
-
wrapLatLng(
LatLng latlng) → LatLng -
Returns a LatLng where lat and lng has been wrapped
according to the CRS's wrapLat and wrapLng properties,
if they are outside the CRS's bounds.
inherited
-
wrapLatLngBounds(
LatLngBounds bounds) → LatLngBounds -
Returns a
LatLngBounds
with the same size as the given one, ensuring that its center is within the CRS's bounds.inherited -
zoom(
double scale) → double -
Inverse of
scale()
, returns the zoom level corresponding to a scale factor ofscale
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited