问题描述
尝试获取bBox的Google地形图时出现以下错误。这是什么意思?
48 tiles needed,this may take a while (try a smaller zoom).
Error in gzfile(file,"rb") : cannot open the connection
In addition: Warning message:
In gzfile(file,"rb") :
cannot open compressed file '/var/folders/40/dzd1lk550rs2h6_pkbfdrhm40000gn/T//RtmpqYC95O/ggmap/index.rds',probable reason 'No such file or directory'
这是我的参考代码(我有一个最近使用的API密钥,该密钥应该可以工作):
ts2 <- get_map(location = c(left = -81.652049,bottom = 72.228,right = -80.367,top = 72.5),maptype = 'terrain',source = 'google',force = T )
ggmap(ts2)
解决方法
这可能不是解决问题的确切答案,但是快速卸载/重新安装ggmap
可以解决问题。