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

GemView.cursorSelectionTrafficEvents() method

Retrieve the traffic events under the cursor location.

Use setCursorScreenPosition to set the cursor location.

Signature:

cursorSelectionTrafficEvents(): TrafficEvent[];

Returns:

TrafficEvent[]

A list of TrafficEvent objects under the cursor.

Exceptions

An exception if it fails.