Google Maps v3样式的地图-如何在景观几何图形上设置水彩? [英] styled maps with google maps v3 - how to set the water color on the landscape geometry?
问题描述
我正在将代码升级到Google Map API v3,我正在使用叠加层应用自己的样式,但现在我正尝试使用速度更快的样式化地图.
i am upgrading my code to the google map API v3, i was using an overlay to apply my own style but now i was trying to use the styled maps which are much faster.
我越来越喜欢自己的外观,我唯一不能做的就是仅在景观内部设置水景的颜色.这基本上就是湖泊和河流的颜色.我需要一个整齐的地图,没有任何内容,而且颜色单一,但是湖泊和河流看起来并不像这样.
i am getting pretty well getting the appearance i like, the only thing i can't do is to set the color for the water feature only inside the landscape. which means basically the color of lakes and rivers. i need a neat map with nothing and a flat color, but the lakes and rivers don't look good like this.
i have been playing with the styled map wizard but couldn't find an easy way: http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html.
推荐答案
不幸的是,没有办法将湖泊和河流与海洋区别开来.根据 MapTypeStyleFeatureType 规范, :
Unfortunately there is no way to distinguish lakes and rivers from seas and oceans. According to the MapTypeStyleFeatureType spec, all you have is:
水-将规则应用于水体.
water - Apply the rule to bodies of water.
Not sure if the data model supports it, but there is no harm in asking with a feature request.
这篇关于Google Maps v3样式的地图-如何在景观几何图形上设置水彩?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!