【问题标题】:How to decrease overall brightness of google map so that the pins are more visible如何降低谷歌地图的整体亮度以使图钉更明显
【发布时间】:2013-08-28 21:37:34
【问题描述】:

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

我该换吗

stylers: [
    { lightness: 0 }
]

对于每个 featureType 和 elementType?


有没有更好的方法来降低地图的整体吸引力,让地图上的大头针突出?

【问题讨论】:

    标签: javascript google-maps google-maps-api-3 google-maps-markers


    【解决方案1】:

    我认为你的想法是正确的。亮度默认为 0,因此如果这是您的目标,您需要将其减少到负数。降低饱和度可能会获得更多您想要的效果,但这里是使用这些值的好地方:http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html

    【讨论】:

    【解决方案2】:

    为什么不放一个 div 覆盖地图,例如背景为 #000 和不透明度 .2?

    【讨论】:

    • 如果叠加,将无法拖动和缩放。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-11-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-22
    相关资源
    最近更新 更多