Add a style options for map

Created on 9 May 2012, over 12 years ago
Updated 18 April 2024, 8 months ago

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...

✨ Feature request
Status

Closed: outdated

Version

2.1

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland idflood

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    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

Production build 0.71.5 2024