Interative Map using leaflet package (zoom background problem)

I'm developing an interactive map to be published on a website, using the leaflet package with the background Stamen.TerrainBackground

So far my points are concentrated in the southern region of Brazil. With that, I'm having problems when I zoom in on the map for more detail in the region. I believe it is a problem of scale. However, I would like to request your help in checking how to fix this "error". maybe another background

All the best,
Thiago

Hi, What is the issue? Can you provide a reproducible example?

Hi dear William,
For example, equal in my case, in this interative map when we make a zoom the background dissapear https://brc14database.com.br/?page_id=283&lang=pt

I would like suggestions, if there is some option of how to adjust this

That is probably the best answer. You could create your own in mapbox and use that.

The problem is with the background. If I change it, the zoom works correctly
I tried

map <- leaflet(options = leafletOptions(minZoom = 0, maxZoom = 60)) %>%
  addProviderTiles("Stamen.TerrainBackground") %>%
  addCircleMarkers(data=data, lat=Lat_GD, lng=Long_GD,
                   color="#020000", opacity=1, radius=6)
# or
map <- leaflet() %>%
  addProviderTiles("Stamen.TerrainBackground", options = leafletOptions(minZoom = 0, maxZoom = 60)) %>%
  addCircleMarkers(data=data, lat=Lat_GD, lng=Long_GD,
                   color="#020000", opacity=1, radius=6)

but it did not works

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.