coordinateForPixel

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

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

Map must be fully loaded for getting an altitude-compliant result if using 3D terrain.

Return

Returns a geographical coordinate corresponding to the x y coordinates on the screen.

Parameters

pixel

A screen coordinate represented by x y coordinates.

open override fun coordinateForPixel(pixel: ScreenCoordinate): Point