I want to use a base layer so that my filled polygons are in geographic context. However, my polygons have simply gone over the top of the base layer and therefore only bits and pieces of place names are visible. The image above shows this.
1) Is it possible to have the place names and detail over the top of my choropleth? 2) If 1 is not possible, can I remove the names and detail to make it cleaner?
leaflet(MyMapb) %>%
setView(-1.88, 55, 6) %>%
addControl(rr, position = "topleft") %>%
addTiles(group = "OSM (default)") %>%
addProviderTiles("MapBox", options = providerTileOptions(
id = "mapbox.light",
accessToken = Sys.getenv('MAPBOX_ACCESS_TOKEN'))) %>%
#Polygon Layers
addPolygons(data = MyMapb,
fillColor = ~pal1(MyMapb$eoi),
fillOpacity = 1,
color = "darkgrey", ## color of borders between districts
weight = 1.5, ## width of borders
popup = popup1,
group = "EOIs") %>%
addPolygons(data = MyMapb,
fillColor = ~pal2(MyMapb$Awards),
fillOpacity = 1,
color = "darkgrey", ## color of borders between districts
weight = 1.5, ## width of borders
popup = popup2,
group = "Awards") %>%
#Legend Layers
addLegend(pal = pal1,values = ~eoi, group = "EOIs",
position = "bottomleft") %>%
addLegend(pal = pal2,values = ~Awards, group = "Awards",
position = "bottomright") %>%
#Layers Control
addLayersControl(overlayGroups = c("EOIs","Awards"),
options = layersControlOptions(collapsed = FALSE)) %>%
hideGroup("Awards")
addLayersControl(baseGroups = "CartoDB.PositronNoLabels",
overlayGroups = c("map labels",
"MyMapb"))