我正在使用 leaflet
与 R 打包以生成交互式 map ,我想使用 Google Maps 图层。然而,谷歌地图不能作为函数 addProviderTiles
的参数使用。 .
如何使用 R 添加这些 google 图层?
非常感谢你 !
最佳答案
试试这个leaflet() %>% addTiles(urlTemplate = "https://mts1.google.com/vt/lyrs=s&hl=en&src=app&x={x}&y={y}&z={z}&s=G", attribution = 'Google')
关于r - 使用 R 添加谷歌瓷砖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33542933/