Google Maps api样式的地图与卫星水 [英] Google maps api styled map with satellite water
问题描述
我正在使用Google Maps API V3在使用自定义颜色的地方创建样式化的地图.我想知道在陆地上使用自定义样式时是否可以使用水的卫星图像. IE.我希望水成为卫星图像,而土地将是自定义的纯色.现在,我可以给陆地和水域自定义颜色,但是我想知道是否可以通过卫星图像来分配水域样式.
I am using google maps API V3 to create a styled map where I am using custom colors. I am wondering if it is possible to use the satellite image of the water while using a custom style on the land. I.e. I'd like the water to be the satellite image while the land will be a custom solid color. Right now I can give the land and the water a custom color, but I'm wondering if I can assign the water styling somehow to come from the satellite imagery.
我认为通过浏览API不可能做到这一点,而只是确保我没有错过任何事情.
I don't think this is possible from digging through the API but just making sure I didn't miss anything.
推荐答案
不幸的是,目前这不可能. Google风格的地图不能应用于其他地图类型比默认的ROADMAP
类型. Google员工在2010年5月31日的邮件列表中确认了这一点:
Unfortunately at the moment that is not possible. The Google Styled Maps cannot be applied to map types other than the default ROADMAP
type. This was confirmed by a Google Employee on the mailing list on May 31st 2010:
...我们目前不支持其他地图类型的样式设置,因为我们无法 立即为基础图像重新着色...
... We don't currently support styling other map types, because we can not recolour the base imagery right now...
这篇关于Google Maps api样式的地图与卫星水的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!