Marker

class Marker @JvmOverloads constructor(position: LatLng, icon: Icon, label: String? = null, isVisible: Boolean = true)

Marker class to quickly put an icon on a MapView.

To be used with MapView.addMarker.

Constructors

Link copied to clipboard
constructor(position: LatLng, icon: Icon, label: String? = null, isVisible: Boolean = true)

Properties

Link copied to clipboard
var icon: Icon

The icon of the marker.

Link copied to clipboard

Toggle this marker visibility

Link copied to clipboard

A label to be associated with this marker.

Link copied to clipboard

The position of the marker.

Functions

Link copied to clipboard

Add a listener to be notified when this marker is clicked.

Link copied to clipboard

Add a listener that will be notify if any of this marker's properties change.

Link copied to clipboard

Remove a listener that was notified when this marker was clicked.

Link copied to clipboard

Remove a listener that was notified on properties change.