Calls release(), for await using.
Hosts without Symbol.asyncDispose, such as ArkTS, leave it undefined.
Calls release(), for using.
Hosts without Symbol.dispose, such as ArkTS, leave it undefined.
ReadonlyidThe native handle value. It stays readable after release.
Whether a release, dispose, or discard has ended the handle.
Reads the projection's camera.
See mln_map_projection_get_camera in the
C API reference.
Finds the coordinate at a screen point.
The longitude stays between -180 and 180.
See mln_map_projection_lat_lng_for_pixel in the
C API reference.
Finds the coordinate at a screen point, without wrapping its longitude.
The longitude can fall outside -180 to 180, to show which copy of the world the point is in.
See mln_map_projection_lat_lng_for_pixel_unwrapped in the
C API reference.
Finds the coordinates at several screen points, as
MapProjectionHandle.latLngForPixel() does.
See mln_map_projection_lat_lngs_for_pixels in the
C API reference.
Finds the coordinates at several screen points, as
MapProjectionHandle.latLngForPixelUnwrapped() does.
See mln_map_projection_lat_lngs_for_pixels_unwrapped in the
C API reference.
Computes how many meters one screen pixel covers at latitude, at the
projection's zoom.
The result ignores the camera's pitch.
See mln_map_projection_meters_per_pixel_at_latitude in the
C API reference.
Finds the screen point of a coordinate.
The point is in the copy of the world nearest the camera's center.
See mln_map_projection_pixel_for_lat_lng in the
C API reference.
Finds the screen points of several coordinates, as
MapProjectionHandle.pixelForLatLng() does.
See mln_map_projection_pixels_for_lat_lngs in the
C API reference.
Releases a projection.
See mln_map_projection_release in the
C API reference.
Moves the projection's camera, without changing the map.
Camera fields that camera doesn't set keep their values.
See mln_map_projection_set_camera in the
C API reference.
Names the owner's type, its handle ID, and whether it is closed.
StaticcreateCreates a projection that converts coordinates for one view of a map.
Create it from the view of an MapSnapshot or an RenderFrameResult.
The projection doesn't follow the map, so create a new one after the map's
camera or size changes.
See mln_map_projection_create in the
C API reference.
A camera view for converting between screen points and coordinates.
See
mln_map_projectionin the C API reference.