toScreenLocation

Returns a screen location that corresponds to a geographic coordinate.

The screen location is specified in screen pixels (not display pixels) relative to the top left of the map.

If map padding is set, the returned screen coordinates account for the logical viewport offset, reflecting where the location appears in the padded view.

Return

The screen location in pixels

Parameters

location

The geographic location (LatLng)