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

showContextmenu

showContextmenu


Description

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 names lat and latitude are used when guessing the latitude column from data)

lng

a numeric vector of longitudes, or a one-sided formula of the form ~x where x is a variable in data; by default (if not explicitly provided), it will be automatically inferred from data by looking for a column named lng, long, or longitude (case-insensitively)

data

the data object from which the argument values are derived; by default, it is the data object provided to leaflet() initially, but can be overridden

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.