View source: R/visualize_green_spaces.R
visualize_green_spaces | R Documentation |
This function visualizes green spaces on a Leaflet map using the green_areas_data obtained from the get_osm_data function. Green spaces are labeled based on their tags and have different colors in the legend. Users can switch the green spaces layer on and off.
visualize_green_spaces(green_areas_data)
green_areas_data |
List containing green areas data (obtained from get_osm_data function). |
A Leaflet map displaying green spaces with labels and a legend, with a layer control for toggling the green spaces layer.
## Not run:
# Assuming you have already obtained green_areas_data using get_osm_data
visualize_green_spaces(green_areas_data)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.