Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24062

    Haven’t found a similar topic in the forum, but is it possible to style the google map widget in some way? If so, how?

    I’d pretty much need to add something like this somewhere:

    [

    {

    “elementType”: “geometry”,

    “stylers”: [

    { “weight”: 0.1 },

    { “hue”: “#ef7c0b” },

    { “lightness”: -10 },

    { “gamma”: 0.85 },

    { “saturation”: 60 }

    ]

    }

    ]

    Thanks in advance!

    #122166

    Tbh I’m not familiar with the google maps api and I can’t assist you with detailed instructions. But probably you can add it to the map print code in wp-contentthemesenfoldframeworkphpclass-framework-widgets.php – open up the file and search for

    function avia_printmap($lat, $lng, $zoom, $type, $content, $directionsto) {

    below this line you’ll find the google maps javascript code and there you should be able to insert your custom styling code, etc.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Google map styling’ is closed to new replies.