Open the contextmenu at certain lat/lng-coordinates
Usage
showContextmenu(map, lat = NULL, lng = NULL, data = leaflet::getMapData(map))
Arguments
- map
a map widget object created from
leaflet()
- lat
a vector of latitudes or a formula (similar to the
lng
argument; the nameslat
andlatitude
are used when guessing the latitude column fromdata
)- lng
a numeric vector of longitudes, or a one-sided formula of the form
~x
wherex
is a variable indata
; by default (if not explicitly provided), it will be automatically inferred fromdata
by looking for a column namedlng
,long
, orlongitude
(case-insensitively)- data
the data object from which the argument values are derived; by default, it is the
data
object provided toleaflet()
initially, but can be overridden
See also
Other Contextmenu Functions:
addContextmenu()
,
addItemContextmenu()
,
context_mapmenuItems()
,
context_markermenuItems()
,
context_menuItem()
,
disableContextmenu()
,
enableContextmenu()
,
hideContextmenu()
,
insertItemContextmenu()
,
mapmenuItems()
,
markermenuItems()
,
menuItem()
,
removeItemContextmenu()
,
removeallItemsContextmenu()
,
setDisabledContextmenu()