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

GemView.setCursorScreenPosition() method

Set the cursor screen position.

Use this function to trigger a map view selection (POI, landmark, overlay, route, path, marker) at the given screen coordinates. The current view selection can be queried via cursorSelectionRoutes, cursorSelectionLandmarks, cursorSelectionStreets, cursorSelectionOverlayItems, cursorSelectionMarkers methods.

Signature:

setCursorScreenPosition(screenPosition: Point): Promise<any>;

Parameters

Parameter

Type

Description

screenPosition

Point

position relative to the parent screen. The coordinates are relative to the parent view screen

Returns:

Promise<any>

Exceptions

An exception if it fails.