Home > @magiclane/maps-sdk > GemMap

GemMap class

Signature:

export declare class GemMap extends GemView 

Extends: GemView

Constructors

Constructor

Modifiers

Description

(constructor)(canvas, pointerId, mapId)

Constructs a new instance of the GemMap class

Methods

Method

Modifiers

Description

highlightHoveredMapLabel(screenPosition, { selectMapObject }, input)

Highlight the hovered map label under the given screen coordinates.

To turn off the hover highlight call the function with (0, 0) screen position

A recommended implementation is to call highlightHoveredMapLabel(..., selectMapObjects = false) to check if a label is hovered (and eventually update tracking device cursor shape etc) and if the cursor position is stationary for a reasonable time period (e.g. 500 ms) call highlightHoveredMapLabel(..., selectMapObjects = true) to retrieve the hovered map object data