如何仅使用get_googlemap获取街道标签

时间:2017-05-16 15:43:37

标签: r google-maps ggmap

我尝试使用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"时,我得到了这个:

style = "feature:landscape|element:geometry|visibility:off"

0 个答案:

没有答案