Skip to contents

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 sf object; 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 fill value.

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.

Value

A leaflet htmlwidget.

See also

Examples

mn_leaflet()
mn_leaflet(mn_khoroos(), fill = area_km2)