Home > @magiclane/maps-sdk > MarkerCollection > getMarkerById
MarkerCollection.getMarkerById() method
Get the marker with the given id.
Signature:
getMarkerById(id: number): Marker | null;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
number |
The marker id |
Returns:
Marker | null
Marker object or null if not found