Hi, I have created an interactive map using OpenStreetMap as background tile and also include popup for all the circles as well as a color scale legend. I then go to Export->Save as Web Page to save it as a html.
However, when open up the html, the Map tile can not be loaded and seen while all the other elements are ok. Does any one knows why and how can I deliver the result so the map can be seen independent of R studio?
Hi Paul, thanks for you reply. Below is the part of my code generating the map widget. OpenStreetMap is the default map tile so I did not claim it explicitly, I tried to replace the 2nd line with yours (with "%>%" to the end) but it did not work either.
m <- leaflet(f171028_sub) %>%
addTiles() %>% # Add default OpenStreetMap map tiles
addCircles(lng = ~ lng, lat = ~lat, popup = ~popup, radius = 0.25, color = ~pal(disp2), opacity = 0.75) %>%
addLegend("bottomright", pal = pal, values = -15:15,
title = "Ground Movement (mm)",
opacity = 1
)
I tried to load htmlwidets package and then try the code below but got an error message
saveWidget(m,"testing.html")
Error in system(paste(shQuote(pandoc_path), "--version"), intern = TRUE) :
'"C:/Users/zhangwei.ning/AppData/Local/Continuum/Anaconda3/Library/bin/pandoc"' not found
If you have not pandoc installed it should break in that stop and show you the message, perhaps pandoc installation got corrupted. So I would try the pandoc installation