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

insertItemContextmenu

insertItemContextmenu


Description

Insert a new contextmenu menu item at a specific index

Usage

insertItemContextmenu(map, option, index)

Arguments

map

a map widget object created from leaflet

option

new menu item to add

index

Index of the contextmenu. (NOTE: Since the index is passed to JavaScript, it is zero-based)

Value

A leaflet map object

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.