Description Usage Arguments Value Examples
Map with leaflet package (OpenStreetMap)
1 2 3 4 5 6 7 8 | map_leaflet(
df,
lng_center = 0,
lat_center = 0,
zoom = 3,
width = 500,
height = 500
)
|
df |
Dataframe having at least 3 columns longitude, latitude,label for label to be plotted |
lng_center |
longitude of the center of the map |
lat_center |
latitude of the center of the map |
zoom |
map zoom, an integer from 3 (continent) to 21 (building), default value 10 (city). "auto" automatically determines the zoom for bounding box specifications, and is defaulted to 10 with center/zoom specifications. maps of the whole world currently not supported. |
width |
width in pixels |
height |
height in pixels |
A map as a leaflet object
1 | map_leaflet(df, lng_center=0, lat_center=45, zoom=4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.