Google地图:隐藏国家边界 [英] Google Maps: Hide country borders

查看:92
本文介绍了Google地图:隐藏国家边界的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很确定 geometry.stroke 选项允许在地图上隐藏国家边界。



<$ p $ >
featureType:administrative.country,
elementType:geometry.stroke,
stylers:[
{visibility:off }
]
}

但今天我在想, ,我仍然看到了边界。
下面是一个代码示例: http://jsfiddle.net/xuvffdsn/



任何建议如何隐藏国家边界?

解决方案

您提供的小提琴似乎为我正确工作(因为它隐藏了边界)。我能够打开和关闭国家边界。以下是您更新的示例,以便显示国家/地区边界: http://jsfiddle.net/jkgudhze/ 。对我来说,这肯定会增加缺失的边界。我可以在代码中将 {stylers:[{visibility:off}]} 更改为 {stylers:[{visibility :off}]} 。有没有可能你看到的是州/地区的边界?


I'm pretty sure geometry.stroke option allowed to hide country borders on the map.

     {
        featureType: "administrative.country",
        elementType: "geometry.stroke",
        stylers: [
            { visibility: "off" }
        ]
      }

But today I was wondering that's not working as expected, I still see the borders. Here is a code example: http://jsfiddle.net/xuvffdsn/

Any suggestions how to hide country borders?

解决方案

The fiddle you provided seems to work correctly for me (in that it hides the borders). I am able to turn country borders on and off. Here is your example updated so that the country borders are shown: http://jsfiddle.net/jkgudhze/. For me, this definitely adds the borders that were missing. I was able to show them by changing { stylers: [ { visibility: "off" } ] } in your code to { stylers: [ { visibility: "off" } ] }. Is there any chance that what you are seeing are state / region borders?

这篇关于Google地图:隐藏国家边界的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆