If the maps suddenly turned grey
-
Our company used this plugin 4 years ago and it turns out that Google recently cut any access to the maps API if you don’t have an API key.
So, if your maps turn grey and show a message “for development purpose only”, you need to :
– go to https://console.developers.google.com and create an account, so you can
– create an API key in the google maps section
– edit the file wp-content/plugins/google-maps-ready/modules/gmap/views/gmap.php
line 13 change :
$this->_gmapApiUrl = ‘https://maps.googleapis.com/maps/api/js?’. http_build_query($urlParams);
to
$this->_gmapApiUrl = ‘https://maps.googleapis.com/maps/api/js?key=MY_GOOGLE_MAPS_KEY_I_JUST_CREATED&’. http_build_query($urlParams);
and it will work again.
- The topic ‘If the maps suddenly turned grey’ is closed to new replies.