Google Maps v3样式的地图-如何在景观几何图形上设置水彩? [英] styled maps with google maps v3 - how to set the water color on the landscape geometry?

查看:90
本文介绍了Google Maps v3样式的地图-如何在景观几何图形上设置水彩?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将代码升级到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屋!

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