Projection

A projection is used to translate between on-screen location and geographic coordinates.

Screen locations are in screen pixels (not display pixels) with respect to the top left corner of the map (not necessarily of the whole screen).

This class provides methods for converting between screen coordinates and geographic coordinates, as well as querying the visible region of the map.

Functions

Link copied to clipboard

Returns the geographic location that corresponds to a screen location.

Link copied to clipboard

Returns the visible region of the map.

Link copied to clipboard
fun toScreenLocation(location: LatLng): Point

Returns a screen location that corresponds to a geographic coordinate.