来自Google Map Engine的Whitewater的Google Map API样式

时间:2014-03-21 20:18:23

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

我想知道如何以及在哪里可以为Base Map提取JSON样式" Whitewater"来自Google Map Engine?

以下是此类地图的示例:https://mapsengine.google.com/map/edit?mid=z-BEFzFo7gdM.kYdiUKVQpQQI

但是,Google的API文档中没有找到可靠的样式。

由于 比尔

2 个答案:

答案 0 :(得分:1)

根据谷歌地图引擎专业版,这是风格的JSON" Whitewater"

[ { "stylers" : [ { "visibility" : "on" },
        { "saturation" : -13 },
        { "lightness" : -17 },
        { "hue" : "#ff6e00" }
      ] },
  { "featureType" : "water",
    "stylers" : [ { "visibility" : "on" },
        { "lightness" : 100 }
      ]
  },
  { "featureType" : "poi",
    "stylers" : [ { "lightness" : 39 },
        { "saturation" : -43 },
        { "visibility" : "on" }
      ]
  },
  { "elementType" : "geometry",
    "featureType" : "roads",
    "stylers" : [ { "visibility" : "on" },
        { "lightness" : 30 }
      ]
  },
  { "elementType" : "labels",
    "stylers" : [ { "lightness" : 35 } ]
  }
]

答案 1 :(得分:0)

您可以尝试此链接,希望能够接近您想要的内容:

http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html