Epsg4326 class

A common CRS among GIS enthusiasts.

Uses simple Equirectangular projection.

Inheritance

Constructors

Epsg4326()
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 setterinherited
lngBounds → Tuple2<double, double>
Bounds for longitude
no setterinherited
projection Projection
Projection value of this CRS.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transformation Transformation
Transformation object of this CRS.
no setteroverride

Methods

distance(LatLng position, LatLng destination) double
Calculate distance from position to destination.
inherited
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 of scale.
inherited

Operators

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