rstudio / leaflet

R Interface to Leaflet Maps
http://rstudio.github.io/leaflet/
Other
805 stars 508 forks source link

RStudio only displaying grey background #700

Open Scunnymatt opened 4 years ago

Scunnymatt commented 4 years ago

I have just been upgraded to Office 365 and Windows 10. RStudio has been reinstalled for me, but for some reason now, leaflet maps will not appear. All that is visible is a grey background.

There are no errors in the script, and before the upgrade, the maps were visible and working properly.

I've checked java and local firewall settings, but all fine. I've installed the latest version of RStudio, but this hasn't helped.

Why would this be happening and can you offer any advice please?

nickyrong commented 3 years ago

I have the same issue ever since upgrading to R 4.0

jcheng5 commented 3 years ago

What is your RStudio version number, and R version number? (4.0.3?)

Scunnymatt commented 3 years ago

Rstudio version is 1.3.1073 Giant Goldenrod R version is 3.5.3

jcheng5 commented 3 years ago

Is it just the basemap tiles that don't appear? Or do even shapes not appear?

leaflet(quakes) %>% addCircleMarkers()
Scunnymatt commented 3 years ago

Just the base map tiles. All shapes appear plus html widgets such as zoom and the legend also appears.

When I click inspect element on the grey background, there is an error code showing ‘connection refused’.

jcheng5 commented 3 years ago

In the Viewer tab's mini-toolbar, if you click the "Show in new window" icon, do the map tiles appear in the external browser?

Scunnymatt commented 3 years ago

No still nothing

jcheng5 commented 3 years ago

Does it matter which base tiles you use? e.g. leaflet() %>% addTiles() (default) vs. leaflet() %>% addProviderTiles(providers$Stamen.Toner)?

Scunnymatt commented 3 years ago

No that doesn’t seem to make a difference

jcheng5 commented 3 years ago

Just so we're clear, when I asked you to click the "Show in new window" icon, it was this one?

image

And if so, what browser did it launch? Any errors in the JavaScript console of that browser?

Scunnymatt commented 3 years ago

I’ve just written a script to open leaflet tiles and the viewer is grey. When I click the show in new window it opens Microsoft edge and the maps do appear.

However when I run my own scripts the data in mapping and the map window opens within the script. When I click show in new window within this script output, it is still grey.

zmoore152 commented 3 years ago

Has this issue still not been solved? I'm running into the exact same problem.