pixelForCoordinate method

Future<ScreenCoordinate> pixelForCoordinate(
  1. Point coordinate
)

Calculates a screen coordinate that corresponds to a geographical coordinate (i.e., longitude-latitude pair).

The screen coordinate is in logical pixels relative to the top left corner of the map (not of the whole screen).

Implementation

Future<ScreenCoordinate> pixelForCoordinate(Point coordinate) =>
    _cameraManager.pixelForCoordinate(coordinate);