Google maps api styled map with satellite water

我怕爱的太早我们不能终老 提交于 2019-12-11 01:06:53

问题


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.

I don't think this is possible from digging through the API but just making sure I didn't miss anything.


回答1:


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:

  • Google Maps API v3 Re: Using Styled Maps with TERRAIN map type?

... We don't currently support styling other map types, because we can not recolour the base imagery right now...



来源:https://stackoverflow.com/questions/3918608/google-maps-api-styled-map-with-satellite-water

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!