map_stations.Rd
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
if (FALSE) { if (interactive()) { cdec_stations(county = "alameda") %>% map_stations(label=~name, popup=~station_id) } }