• Hi Eyal

    Is there something I am doing wrong below to style the google map?

    function gmw_do_custom_map_styles( $args, $gmw ) {
    	
    	$args['map_options']['styles'] = json_decode( '[
      {
        "featureType": "water",
        "elementType": "geometry.fill",
        "stylers": [
          {
            "color": "#ffeb3b"
          }
        ]
      }
    ]' );
    
    	return $args;
    }
    add_filter( 'gmw_map_element', 'gmw_do_custom_map_styles', 20, 2 );

    Also how best should I modify the info-window?

    Thanks

    – michael

Viewing 1 replies (of 1 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Hello @kartguru,

    Nothing seems wrong with the script for the map style. I just tested it on my site and it is working.

    As for the info window, you can use the filter ‘gmw_info_window_content’, which can be found in geo-my-wp/includes/class-gmw-maps-api.php on line ~534.

    I hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Map Styles’ is closed to new replies.