Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #973343

    How to fix the following console notice?

    Google Maps API warning: RetiredVersion https://developers.google.com/maps/documentation/javascript/error-messages#retired-version

    The latest version of Enfold is running v.3.30 but the latest one is v.3.32. I changed the version in framework/js/conditional_load/avia_google_maps_api.js line 48 but still got the console message even if the site is loading the updated file. Are there any more places to look for? Where can I fix it?

    Regards

    #973420

    Hey L!

    Please add this code to your child theme functions.php file to change the version number:

    
    add_filter( 'avf_google_maps_source', 'avia_maps_version_number', 10, 1);
    	function avia_maps_version_number( $api_src )
    	{
    		$api_src['version'] = '3.32';
    		return $api_src;
    	}
    

    Regards,
    Peter

    #973685

    Thanks Peter, it helped!

    #973703

    Hi,
    Glad Peter could help, we will close this now.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Google maps API retired version’ is closed to new replies.