| context_menuItem | R Documentation |
context_menuItem
context_menuItem(text, callback = NULL, ...)
text |
The label to use for the menu item |
callback |
A callback function to be invoked when the menu item is
clicked. The callback is passed an object with properties identifying the
location the menu was opened at: |
... |
For further options please visit https://github.com/aratcliffe/Leaflet.contextmenu |
A contextmenu item list
Other Contextmenu Functions:
addContextmenu(),
addItemContextmenu(),
context_mapmenuItems(),
context_markermenuItems(),
disableContextmenu(),
enableContextmenu(),
hideContextmenu(),
insertItemContextmenu(),
mapmenuItems(),
markermenuItems(),
menuItem(),
removeItemContextmenu(),
removeallItemsContextmenu(),
setDisabledContextmenu(),
showContextmenu()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.