latLngForPixel method
- ScreenPoint point
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.
Implementation
LatLng latLngForPixel(ScreenPoint point) => withNativeArena((arena) {
final outCoordinate = arena<raw.mln_lat_lng>();
_check(
raw.mln_map_projection_lat_lng_for_pixel(
_handle.raw,
_writeScreenPoint(point, arena).ref,
outCoordinate,
nativeDiagnostic,
),
);
return _readLatLng(outCoordinate.ref);
});