addMarker

open fun addMarker(@NonNull markerOptions: MarkerOptions): Marker
open fun addMarker(@NonNull markerOptions: BaseMarkerOptions): Marker

Deprecated

Adds a marker 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

The Marker that was added to the map

Deprecated

As of 7.0.0, use MapLibre Annotation Plugin instead

Parameters

markerOptions

A marker options object that defines how to render the marker