| insertItemContextmenu | R Documentation |
Insert a new contextmenu menu item at a specific index
insertItemContextmenu(map, option, index)
map |
a map widget object created from |
option |
new menu item to add |
index |
Index of the contextmenu. (NOTE: Since the index is passed to JavaScript, it is zero-based) |
A leaflet map object
Other Contextmenu Functions:
addContextmenu(),
addItemContextmenu(),
context_mapmenuItems(),
context_markermenuItems(),
context_menuItem(),
disableContextmenu(),
enableContextmenu(),
hideContextmenu(),
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.