setDisabledContextmenu {leaflet.extras2}R Documentation

setDisabledContextmenu

Description

Enable/Disable a contextmenu item by index.

Usage

setDisabledContextmenu(map, index, disabled = TRUE)

Arguments

map

a map widget object created from leaflet

index

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

disabled

Set to TRUE to disable the element and FALSE to enable it. Default is TRUE

Value

A leaflet map object

See Also

Other Contextmenu Functions: addContextmenu(), addItemContextmenu(), context_mapmenuItems(), context_markermenuItems(), context_menuItem(), disableContextmenu(), enableContextmenu(), hideContextmenu(), insertItemContextmenu(), mapmenuItems(), markermenuItems(), menuItem(), removeItemContextmenu(), removeallItemsContextmenu(), showContextmenu()


[Package leaflet.extras2 version 1.2.2 Index]