addMarkers

open fun addMarkers(@NonNull markerOptionsList: List<out BaseMarkerOptions>): List<Marker>

Deprecated

As of 7.0.0, use MapLibre Annotation Plugin instead

Adds multiple markers to this map.

The marker's icon is rendered on the map at the location Marker.position. If Marker.title is defined, the map shows an info box with the marker's title and snippet.

Return

A list of the Markers that were added to the map

Parameters

markerOptionsList

A list of marker options objects that defines how to render the markers