Module: cercaliagl/Marker


Classes

Marker

Type Definitions

MarkerOptions{Object}

Properties:
Name Type Argument Description
id string <optional>

Id

icon module:cercaliagl/Icon~Icon <optional>

Icon

position maplibregl.LngLat

Position

encodedGooglePosition string

Position encoded on google polyline format.

draggable boolean <optional>

Draggable. Default false.

onClick function <optional>

Function to execute on marker click.

onDoubleClick function <optional>

Function to execute on marker double click.

onMouseOut function <optional>

Function to execute on Mouse Out.

onMouseOver function <optional>

Function to execute on Mouse Over.

onRightClick function <optional>

Function to execute on marker right click.

onDragEnd function <optional>

Function to execute when ends marker dragging.

onDragMove function <optional>

Function to execute during marker dragging.

onDragStart function <optional>

Function to execute on marker dragging start.

onDragStart function <optional>

Function to be executed when marker visibility changes.

onDrop function <optional>

Function to obtain markers on dragged marker extent when drag ends.

simpleLabel module:cercaliagl/SimpleLabel~SimpleLabel <optional>

Marker Simple Label object.

visible boolean <optional>

Marker visible or not. Default true.

label module:cercaliagl/Label~Label <optional>

Label

zIndex number <optional>

Z-Index. Default 0.

extraProperties Object.<string, string> <optional>

Extra properties to put inside geojson. Default {}.