Okay
  Public Ticket #369084
Google Maps style
Closed

Comments

  • Daniel started the conversation

    Hi All,

    I would like to change the Google Map style. From https://developers.google.com/maps/documentation/javascript/styling#styling_the_default_map I generated this code:
    [ { "elementType": "geometry", "stylers": [ { "saturation": -95 }, { "gamma": 0.95 } ] } ]

    But where do I put it whithin the map.js ? And how do I confire Salient to show this map style?

    Thanks in advance.

    Daniel

  •  8,848
    Tahir replied

    Hey!

    You can edit an existing one and change the appropriate values.

    Thanks


    ThemeNectar Support Team 

  • Daniel replied

    Hi Tahir,

    I just got it working finally. However the position to insert the code as suggested in Ticket: #80708 is NOT working.

    Instead I put it in here:

    else {
    styles = []
    }

    Like this:

    else {
    styles = [ { "elementType": "geometry", "stylers": [ { "saturation": -95 }, { "gamma": 0.95 } ] } ];
    }

    THNX for your response.

    Daniel

  •  8,848
    Tahir replied

    Thanks for posting back.

    Cheers


    ThemeNectar Support Team