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

GemView.cursorSelectionRoutes() method

Retrieve the list of routes under the cursor location.

Use setCursorScreenPosition to set the cursor location.

Signature:

cursorSelectionRoutes(): Route[];

Returns:

Route[]

A list of Route objects under the cursor. If no routes are found, the list will be empty.

Exceptions

An exception if it fails.