Tagged: API, google maps
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
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
Thanks Peter, it helped!