pixelForLatLng method
- LatLng coordinate
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.
Implementation
ScreenPoint pixelForLatLng(LatLng coordinate) => withNativeArena((arena) {
final outPoint = arena<raw.mln_screen_point>();
_check(
raw.mln_map_projection_pixel_for_lat_lng(
_handle.raw,
_writeLatLng(coordinate, arena).ref,
outPoint,
nativeDiagnostic,
),
);
return _readScreenPoint(outPoint.ref);
});