Description Usage Arguments Details Value Examples
Add a Leaflet map widget centered on a point to a static or interactive document or a Shiny app.
1 2 |
loc |
character or numeric, name of available point location or specific coordinates. See details. |
bottom |
character, bottom layer provider tile set. |
top |
character, top layer provider tile set. |
width |
character, map widget width, defaults to |
op |
numeric, opacity for bottom and top tile sets, respectively. If length-1, will be repeated. |
zoom |
integer, map zoom, defaults to 12. |
This function generates a Leaflet map centered on loc
where loc
is the string name of a point location from the snaplocs
package.
Alternatively, the function can be used more generally by providing a length-2 vector of longitude and lattitude.
This canned map widget uses two provider tile sets, each with default opacity, op = 0.5
.
a Leaflet map.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.