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

GemView.cursorSelectionMapSceneObject() method

Retrieve the map scene object under the cursor location.

Use setCursorScreenPosition to set the cursor location.

Signature:

cursorSelectionMapSceneObject(): MapSceneObject | null;

Returns:

MapSceneObject | null

A MapSceneObject under the cursor or null if not found.

Exceptions

An exception if it fails.