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

MarkerCollection.hitTest() method

Hit test in collection markers.

Signature:

hitTest(coordinates: Coordinates, ignoreMarker?: Marker): MarkerMatch[];

Parameters

Parameter

Type

Description

coordinates

Coordinates

The coordinates of the position to be tested

ignoreMarker

Marker

(Optional) The marker to be ignored in the test

Returns:

MarkerMatch[]

The list of marker matches