Shows any map from this package, or your joined data, on an interactive web map with a basemap, hover labels and click pop-ups.
Usage
mn_leaflet(
x = NULL,
fill = NULL,
popup = NULL,
lang = NULL,
tiles = "CartoDB.Positron",
opacity = 0.7
)Arguments
- x
An
sfobject; defaults to the aimags.- fill
Column to colour by (unquoted), or a single colour.
- popup
Column with pop-up text (unquoted). By default the pop-up shows the English and Mongolian names, the code and the
fillvalue.- lang
Language of the hover labels:
"en","mn"or"mns".- tiles
A basemap from leaflet::providers, such as
"CartoDB.Positron"(default) or"OpenStreetMap".- opacity
Fill opacity between 0 and 1.
See also
Other mapping helpers:
mn_aimag_grid,
mn_crs(),
mn_label_points(),
mn_map(),
theme_mn()
Examples
mn_leaflet()
mn_leaflet(mn_khoroos(), fill = area_km2)