How merge base maps in leaflet?

Hi Community

I'm have a questions about if is possible merge or combine two base map in leaflet. The idea is get only a one base map not two. Is possible in leaflet this idea?

Or maybe cut and specific zone for get this information?

Because I want use many base map in same zone but is not friendly activate and deactivate each base map.

library(leaflet)

n = leaflet() %>% 
  addTiles(group = "Base") %>% 
  setView( lng = 1, lat = 40, zoom = 5 )

n %>% addProviderTiles(providers$OpenStreetMap, group = 'OpenStreetMap') %>% 
  addProviderTiles(providers$OpenTopoMap, group='OpenTopoMap') %>% 
  addLayersControl(baseGroups = c('OpenStreetMap', 'OpenTopoMap'))

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.