Home > @magiclane/maps-sdk > MarkerCollection > indexOf

MarkerCollection.indexOf() method

Get the index of the given marker.

Signature:

indexOf(marker: Marker): number;

Parameters

Parameter

Type

Description

marker

Marker

The marker

Returns:

number

The index of the given marker if the marker is in the collection, -1 if the marker is not in the collection