2

When I try to load points in Mapview, the base map will appear centered on the right location but the points do not appear. Below is an image of what it looks like when I attempt to view the pre-loaded Breweries data set. Any ideas are greatly appreciated!

library(mapview)

mapview(breweries)

CartoDB.positron basemap centered on Würzburg/Nuremberg but no brewery points:

enter image description here

ocrdu
  • 2,172
  • 6
  • 15
  • 22
Annie C
  • 57
  • 5

1 Answers1

4

Maybe your image is not interactive? In that case you should be able to still see the points (but no changes upon mouse-over) when you run:

library(mapview)
mapviewOptions(fgb = FALSE)
mapview(breweries)
user12728748
  • 8,106
  • 2
  • 9
  • 14
  • From the help: fgb if set to TRUE mapview will not use 'clasical' leaflet/htmlwidgets rendering (which embeds data directly in the html) but leverage the speed of a file format called flatgeobuf (hence, fgb). This has the added benefit that data is being streamed onto the map, which makes for a pleasant user experience. It should also help to visualise larger data sets due to a reduced memeory footprint. A note of warning, data will be attached to the html via a call which means that the html is not selfcontained anymore (so it cannot be used without an accompanying folder). – glacierbliss Sep 08 '21 at 04:30