我尝试使用get_googlemap()
包中的ggmap
来获取Google Maps API中的街道标签。我阅读了Google静态地图开发人员以及this,并设法通过指定style = "feature:administrative|visibility:off"
cntr <- c(-71.445, -33.055)
map <- get_googlemap(location = "Chile", center = cntr,
zoom = 13, source = "google",
maptype ="roadmap", color = "bw",
style = "feature:administrative|visibility:off")
mapplot <- ggmap(map)
但我仍然在努力用街道标签来获取地图。有办法吗?或get_googlemap不支持该选项?我尝试使用style = "feature:landscape|visibility:off"
,但没有任何变化,当我使用style = "feature:landscape|element:geometry|visibility:off"
时,我得到了这个: