Just wondering if anyone has a worked example of using #osmdata with #leaflet in #rstats?
For example, I would like to superimpose a polygon representing the boundary of an area and add footpaths as an optional overlay.
One for those doing the #30DayMapChallenge
In addition: can you use roads to split an existing polygon into two parts? Example: using admin boundaries for 3 sides, but a motorway for the 4th side of a polygon? Or can you combine roads together to make boundaries of a polygon?
@DToher I have a small example here: https://github.com/nrennie/misc/blob/main/R/osmdata_leaflet.R
For splitting a polygon, I've used lwgeom::st_split() before - it'll split it into multiple polygons, and you can choose which pieces to keep (toy example at the bottom of the script above). Something like that should work for an admin area as the polygon, and a footpath as the line I think