Home > @magiclane/maps-sdk > GemView > cursorSelectionOverlayItems

GemView.cursorSelectionOverlayItems() method

Retrieve the list of overlay items under the cursor location.

Use setCursorScreenPosition to set the cursor location.

Signature:

cursorSelectionOverlayItems(): OverlayItem[];

Returns:

OverlayItem[]

A list of OverlayItem objects under the cursor. If no overlay items are found, the list will be empty.

Exceptions

An exception if it fails.