View source: R/utils_map_maker.R
function for making a leaflet map of the chosen region
1 2 3 4 5 | make_leaflet_map(
mapdata = mapselector::CERQ,
label = TRUE,
region_name = "NOM_PROV_N"
)
|
mapdata |
the data that supplies the things that go on your map. default is 'mapselector::CERQ' |
label |
should a mouseover label appear? default is TRUE |
region_name |
quoted name of the column in your dataset that gives the mouseover text. Will also be returned when you click |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.