Skip to contents

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