The google map api has a style option that allows some flexibility. For instance you can have a grayscale map with this:

[ { stylers: [ { saturation: -100 } ] },{ featureType: "poi", stylers: [ { visibility: "simplified" } ] } ]

There is a wizard allowing to edit styles visually at http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index... . When you have finished you styles, click on the "Show JSON" button, and copy the text (it should looks like the above example).

The following patch adds an option 'Map style (json)' at the admin/config/locationmap page. There, you can simply paste the example style above or your own.

google map api: https://developers.google.com/maps/documentation/javascript/styling?hl=f...

CommentFileSizeAuthor
#1 map_style_config-1568582-1.patch2.16 KBidflood

Comments

idflood’s picture

Status: Active » Needs review
StatusFileSize
new2.16 KB

Note: The js use an eval() since the "Show JSON" doesn't really output a json string. There should be double quotes arround keys but I think it's not really an issue, dangerous users should not have access to the module config.

idflood’s picture

Issue summary: View changes

add ref

astonvictor’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

I'm closing it because the issue was created a long time ago without any further steps.

if you still need it then raise a new one.
thanks