coordinateInfoForPixel

open override fun coordinateInfoForPixel(pixel: ScreenCoordinate): CoordinateInfo

Calculates the geographical coordinate information that corresponds to a given screen coordinate.

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

The returned coordinate will be the closest position projected onto the map surface, in case the screen coordinate does not intersect with the map surface.

Return

A CoordinateInfo record containing information about the geographical coordinate corresponding to the given screen coordinate, including whether it is on the map surface.

Parameters

pixel

The screen coordinate on the map, in platform pixels.