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