Hello, I am producing maps showing catchment populations for GP practices in a loop using leaflet. I want the map to have a consistent size around the output areas covered by the GP practice. I attach some examples showing the variation.
The code I am using is:
n <- leaflet() %>% addTiles() %>%
addPolygons(data = j, color = "#000000", weight = 1, fillColor = "#2E8B57", fillOpacity = 1) %>%
addPolygons(data = ccg_br, color = "#000000", weight = 3, fillOpacity = 0.1) %>%
addAwesomeMarkers(lng = coord$long, lat = coord$lat)
The first polygon creates the green, the second the surrounding black line.
I am saving the maps as png.
How might I reset the size of the polygons to fill the view as in the second example?
Many thanks