getScreenCoordinate method

Future<ScreenCoordinate> getScreenCoordinate (
  1. LatLng latLng
)

Return ScreenCoordinate of the LatLng in the current map view.

A projection is used to translate between on screen location and geographic coordinates. Screen location is in screen pixels (not display pixels) with respect to the top left corner of the map, not necessarily of the whole screen.

Implementation

Future<ScreenCoordinate> getScreenCoordinate(LatLng latLng) {
  return _googleMapsFlutterPlatform.getScreenCoordinate(latLng, mapId: mapId);
}