Description Usage Arguments Value Examples
This function is used to create a leaflet map using longitude, latitude coordinates and state names from a dataframe. By parsing this information into the leafserv() function, a leaflet map of the desired country will be generated.
1 | leafserv(Long, Lat, State)
|
Long |
The longitude coordinate of the country. |
Lat |
The latitude coordinate of the country. |
State |
The state(s) within the country. This appears as a popup on the map. |
A leaflet map with the outline of the desired country is displayed. On the map, the longitude and latitude coordinates of the states are plotted.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.