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

MapViewPathCollection.hitTest() method

Hit test in path collection.

Checks for paths within the given area.

Signature:

hitTest(area: RectangleGeographicArea): PathMatch[];

Parameters

Parameter

Type

Description

area

RectangleGeographicArea

The RectangleGeographicArea where to search for paths.

Returns:

PathMatch[]

List of PathMatch objects