coordinateForPixel

abstract fun coordinateForPixel(pixel: ScreenCoordinate): Point

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

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

This API isn't supported by Globe projection.

Return

Returns a geographical coordinate corresponding to the ScreenCoordinate on the screen.

Parameters

pixel

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