English 中文(简体)
Is it possible to customize the color scheme of a Google Map?
原标题:

I m using the Google Maps API and would like it to render a very simple image of countries/continents.

I also want to draw them in a suitable color that will work well with my site s color scheme.

Would I need to create my own tile-server? Or can I customize this somehow through the API?

最佳回答

Google recently announced support for Styled Maps in the Google Maps API. You can extensively customize the color scheme used by Google Maps.

问题回答

It is possible now with the Google maps V3 API. It comes as a custom map style.

Google made a style wizard: https://mapstyle.withgoogle.com/

Google Maps API v3. Working jsFiddle:

jsFiddle ---------------------------------------> http://jsfiddle.net/SQvej/

styles:[
    { featureType: "water", stylers: [ { hue: "#F4B741"} ] },
    { featureType: "road", stylers: [ { hue: "#ff0000" } ] }
]

Less words, more fiddles: http://24.media.tumblr.com/tumblr_m0i1emsdP31qaebp2o1_400.gif

No, when using the Google Maps API, you cannot change the maps themselves in any way. What you can customize, though, are the icons, logos, etc that you use.

EDIT: Google has since release the Styled Maps API, which will probably give you exactly what you want. Take a look at the wizard to get started quickly.

I don t think you can customise this through the Google Maps API. However, the Google Chart API has a map chart type that has customisable colours.

You might also want to investigate OpenLayers, which is an open source web-based mapping engine.

I recently stumbled over this: http://cloudmade.com/products/style-editor They have a complete color editor an lot s of API stuff.

I didn t found something about pricing. But you can have a look into the editior here: http://maps.cloudmade.com/editor/

Here is a collection of color schemes for Google Maps: link

Actually JSON properties for the API





相关问题
How to decide the current point reach on google map?

How to decide the current point reach on google map? I have a list of points (pickup points) of a route that I want to show in my google map with polyline. Now i have to get the current location of ...

Topographical or relief data in Map APIs

I was wondering if anyone knew of any map APIs that offer topographical or relief data? I ve had a quick look at Google and Bing APIs, but could find nothing there. Google allow you to view a map as ...

Using maps on Windows Mobile

I m experimenting with maps on different mobile platforms. Getting Google Maps to work on Android was easy, following this tutorial. Getting the same to work on Windows Mobile is a different matter. ...

Adding a custom icon to a google map

I need a hand adding a custom icon to some Google Maps javascript. Code below for your reference: function populateMap() { var map = new GMap2(document.getElementById("map")); map.setCenter(new ...

RSS to KML Overlay

I m want to display my blog as a Google Map overlay (each post contains geotags). How can I dynamically create a KML overlay from an RSS? Or better, how can I create a loop (PHP) that would display ...

开放街道地图管理员

我需要开放Street的标记管理员。 地图,如山角地图。

热门标签