Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

menuItem

menuItem


Description

menuItem

Usage

menuItem(text, callback = NULL, ...)

Arguments

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: latlng, layerPoint and containerPoint. The callback-function must be valid JavaScript and will be wrapped in JS.

...

For further options please visit https://github.com/aratcliffe/Leaflet.contextmenu

Value

A contextmenu item list

See Also


leaflet.extras2

Extra Functionality for 'leaflet' Package

v1.1.0
GPL-3 | file LICENSE
Authors
Gatscha Sebastian [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.