coordinatesInfoForPixels

Calculates the geographical coordinates information that corresponds to the given screen coordinates.

The screen coordinates are in MapOptions.size platform pixels relative to the top left of the map (not of 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.

It will suspend until current MapState is set to the MapboxMap composable function.

Return

CoordinateInfo records containing geographical coordinates and whether each is on the map surface.

Parameters

pixels

The list of screen coordinates on the map, in platform pixels.