map_stations | R Documentation |
Populate a leaflet map with the results of cdec_stations() call. The function makes use of leaflet, and so will work only if this is installed on the system. This function is bundled simply for exploration purposes, it is highly suggested to make use of leaflet for production maps.
map_stations(.data, ...)
.data |
result of a cdec_stations() call |
... |
named arguments passed into leaflet::addCircleMarkers |
a leaflet map widget with circle markers at the locations of CDEC stations
## Not run: if (interactive()) { cdec_stations(county = "alameda") %>% map_stations(label=~name, popup=~station_id) } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.