Remove a contextmenu item by index.

removeItemContextmenu(map, index)

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)

Value

A leaflet map object