我浏览了这个URL。
https://developers.google.com/maps/documentation/javascript/styling

我应该改变

stylers: [
    { lightness: 0 }
]


对于每个featureType和elementType?

要么
是否有更好的方法来降低地图的总体吸引力,以使地图上的图钉突出?

最佳答案

我认为您的想法正确。亮度默认为0,因此如果要达到这一目的,则希望将其减小为负数。降低饱和度可能会提供更多想要的效果,但是在这里可以使用这些值:http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html

关于javascript - 如何降低Google Map的整体亮度,以使图钉更清晰可见,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/18498665/

10-13 04:59