开发者

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/


I try this API and is so easy to install, and the skins are fine: http://codecanyon.net/item/colorful-google-maps-api/5432242?WT.ac=new_item&WT.seg_1=new_item&WT.z_author=MaGeekLab


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

Actually JSON properties for the API

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜