Hi,

I have created a patch so you can easily give your Google Map a completely different look, using different colors etc.

With this patch, you can paste a map style in your geofield settings. You can find map styles for example on Snazzy Maps. Just click on a map there you would like to use, copy the JavaScript Style Array into your field settings.

If you save and refresh your page, your map will have the desired style.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andrea_london’s picture

Hey thanks for the Patch,
I've applied it and i can see the style text area in the views settings where i paste snazzymaps output, I can also see the console.log printing the snazzymaps, but still the map is looking like the default google map.
No alert or warning in the console,
but i had this error while patching:

File to patch: js/geofield_map.js
patching file js/geofield_map.js
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 59 with fuzz 1.

I'v elook into the js file and changes are applied correctly.
Any hint of what might not working here ?
Thanks

kenorb’s picture

Status: Active » Needs review
weri’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
3.02 KB

I've updated the patch from @flyke and made some cleanup. Now I think it's ready to commit.

kenorb’s picture

Assigned: flyke » Unassigned