23

I'm wondering if it is possible to display Google Maps in black/white or with a sepia filter. Can it be done with some Canvas magic? Or overlaying? Or some other method?

Sonne
  • 691
  • 1
  • 6
  • 20

4 Answers4

30

Check this fiddle out, I've desaturated all elements to create the black and white effect, for example:

{
   "featureType": "road.highway",
   "elementType": "geometry",
   "stylers": [
     { "saturation": -100 },
     { "lightness": -8 },
     { "gamma": 1.18 }
   ]
 }

You can style your maps using this wizard

or using Snazzy Maps which is very user-friendly.

Pixelomo
  • 6,373
  • 4
  • 47
  • 57
27

Yes you can use styled maps feature of google api.

Here is an example http://www.programmableweb.com/news/make-your-google-map-stand-out-styles/2010/05/20

Here are the docs http://code.google.com/apis/maps/documentation/javascript/maptypes.html#StyledMaps

and here is a WYSIWYG wizard to recolor your map http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html

Michal
  • 13,439
  • 3
  • 35
  • 33
2

http://www.nihilogic.dk/labs/imagefx/ brings a sepia and a desaturate (black and white) filter... But it wont work in Safari and IE can only desaturate, no sepia

zuloo
  • 1,310
  • 1
  • 8
  • 12
1

I have this link in my history. Someone has done it in flash http://www.anttikupila.com/GoogleMapsBw/1

EDIT: After considering your idea, I also found this example I like it and you may be able to attach a listener to alter the images as they are loaded. but it may not work smoothly.

Bill Bonar
  • 1,017
  • 2
  • 10
  • 22
  • Thanks, but its flash. I wanted to make it with JS / HTML5. Will try the your tip with JS on the weekend – Sonne Jul 06 '11 at 07:43