pixelForCoordinate

abstract fun pixelForCoordinate(coordinate: Point): ScreenCoordinate

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

The screen coordinate is in \link MapOptions#size platform pixels \endlink relative to the top left of the map (not of the whole screen).

Return

Returns a screen coordinate on the screen in \link MapOptions#size platform pixels \endlink.

Parameters

coordinate

A geographical coordinate on the map to convert to a screen coordinate.