pixelsForCoordinates

open override fun pixelsForCoordinates(coordinates: List<Point>): List<ScreenCoordinate>

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

The screen coordinates are 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.

This API isn't supported by Globe projection and will return a no-op result matching the center of the screen. See com.mapbox.maps.extension.style.projection.generated.setProjection and com.mapbox.maps.extension.style.projection.generated.getProjection

Return

Returns a batch of screen coordinates on the screen in MapOptions.size platform pixels.

Parameters

coordinates

A batch of geographical coordinates on the map to convert to screen coordinates.