79560939

Date: 2025-04-07 23:51:24
Score: 1
Natty:
Report link

addMiniMap() takes the tiles parameter which allows you to specify a URL for map tiles or use one of the pre-defined map tile providers, so just adjust your code to the following:

leaflet() |>
  addProviderTiles("CartoDB.Positron") %>%
  setView(lng = 13.4, lat = 52.52, zoom = 14) %>%
  addMiniMap(width = 150, height = 180, position = "topleft", tiles = "Esri.NatGeoWorldMap")

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: cristian-vargas