Module: cercaliagl/ContextMenu


Classes

ContextMenu

Members

module:cercaliagl/ContextMenu.Option{module:cercaliagl/ContextMenu~OptionsContextMenu}

module:cercaliagl/ContextMenu.OptionId{string}

module:cercaliagl/ContextMenu.SubmenuDistance{string}

module:cercaliagl/ContextMenu.SubmenuDistanceId{string}

module:cercaliagl/ContextMenu.SubmenuRouting{string}

module:cercaliagl/ContextMenu.SubmenuRoutingId{string}

Type Definitions

ContextMenuOptions{Object}

Properties:
Name Type Argument Description
id string | undefined <optional>

Id option

map module:cercaliagl/Map~Map | undefined <optional>

Map

fixedPosition module:maplibre-gl~LngLat | undefined <optional>

Fixed position in map

className string <optional>

Context menu class name

ContextMenuSubmenu{Object}

Properties:
Name Type Argument Description
id string | undefined

Id submenu

subMenu Array.<module:cercaliagl/ContextMenu~ContextMenuSubmenuOption> | undefined

Sub menu

label string | undefined

Label

className string <optional>

ContextMenuSubmenuOption{Object}

Properties:
Name Type Description
id string | undefined

Id

label string | undefined

Label

callback function | undefined

Click callback function.

className string

OptionsContextMenu{Object}

Properties:
Name Type Description
ADDRESS 'Address'

Address.

ROUTING 'Routing'

Routing.

DISTANCE 'Distance'

Distance.