Events

viewer2d.markerhover

Invoked when the user hovers over a marker.

Example



Usage

JS
jQuery


Parameters

onMarkerHover

JS
jQuery

Function called when the user hovers over a marker.

Type

(event: Object) => Void

event

Name

Type

Description

marker

Object

Marker below the cursor, undefined if none

srcEvent

Object

Original DOM event

marker

The marker below the cursor.

Name

Type

Description

clickable

Boolean

Whether marker is clickable

data

Object

Data included with the marker when added

draggable

Boolean

Whether marker moves when dragged

element

SVGElement

SVG element of the marker

fillColor

String

Color of the marker

icon

Icon

icon of the marker

id

String

Id of the marker

position

Vector2

Location of the marker

text

String

Optional text label displayed alongside the marker