MapProjectionHandle class final

Owner of one native handle.

A camera view for converting between screen points and coordinates.

See mln_map_projection in the C API reference.

Implemented types

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → int
The native handle id.
no setter
isClosed → bool
Whether the binding has accepted a release, dispose, or discard of this handle.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCamera() → MapProjectionCameraResult
Reads the projection's camera.
latLngForPixel(ScreenPoint point) → LatLng
Finds the coordinate at a screen point.
latLngForPixelUnwrapped(ScreenPoint point) → LatLng
Finds the coordinate at a screen point, without wrapping its longitude.
latLngsForPixels(List<ScreenPoint> points) → List<LatLng>
Finds the coordinates at several screen points, as MapProjectionHandle.latLngForPixel() does.
latLngsForPixelsUnwrapped(List<ScreenPoint> points) → List<LatLng>
Finds the coordinates at several screen points, as MapProjectionHandle.latLngForPixelUnwrapped() does.
metersPerPixelAtLatitude(double latitude) → double
Computes how many meters one screen pixel covers at latitude, at the projection's zoom.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pixelForLatLng(LatLng coordinate) → ScreenPoint
Finds the screen point of a coordinate.
pixelsForLatLngs(List<LatLng> coordinates) → List<ScreenPoint>
Finds the screen points of several coordinates, as MapProjectionHandle.pixelForLatLng() does.
release() → void
Releases a projection.
setCamera(CameraOptions camera) → void
Moves the projection's camera, without changing the map.
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

create(MapView view) → MapProjectionHandle
Creates a projection that converts coordinates for one view of a map.