I also have this problem, but your question is the only link to it that I can find.
The only workaround I could find was also to redraw the tiles in the raster observer, for example.
observe({ #Observer to edit colors and valid range selectedTiles <- input$tiles filtdata <- filteredData() pal <- colorpal() leafletProxy("map") %>% clearTiles() %>% addProviderTiles(selectedTiles, providerTileOptions(zIndex=-10, continuousWorld=FALSE), group="base") clearImages() %>% addRasterImage(filtdata, opacity=0.7, project=FALSE, colors=pal, group="overlay") %>% addMarkers(lng=8.380508, lat=45.18058, popup="This marker stays above, the raster sinks below every time I load a new tile set") })
ssast source share