Class: InteractiveMarkerMenu

InteractiveMarkerMenu(options)

new InteractiveMarkerMenu(options)

A menu for an interactive marker. This will be overlayed on the canvas.

Parameters:
Name Type Description
options

object with following keys:

  • menuEntries - the menu entries to add
  • className (optional) - a custom CSS class for the menu div
  • entryClassName (optional) - a custom CSS class for the menu entry
  • overlayClassName (optional) - a custom CSS class for the menu overlay
  • menuFontSize (optional) - the menu font size
Source:

Methods

hide(event)

Hide the menu DOM element.

Parameters:
Name Type Description
event

(optional) - the event that caused this

Source:

show(control, event)

Shoe the menu DOM element.

Parameters:
Name Type Description
control

the control for the menu

event

the event that caused this

Source:

(inner) makeUl(parentDomElem, parentMenu)

Create the HTML UL element for the menu and link it to the parent.

Parameters:
Name Type Description
parentDomElem

the parent DOM element

parentMenu

the parent menu

Source: