Question:
Oops! Something went wrong.
This page didn’t load Google Maps correctly. See the JavaScript console for technical details
This page didn’t load Google Maps correctly. See the JavaScript console for technical details
This is the warning I get. Can you please help me out?
Answer:
The API has changed. You now need to get an API key from google dev console and pass it on as a param when loading the maps –
https://developers.google.com/maps/documentation/javascript/get-api-key
https://developers.google.com/maps/documentation/javascript/get-api-key
Then edit ‘post-google-map/map-lib/Google-Map-Class.php’ line 32 to include your API key;
$js_footer .= '<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&key=YourApiKey"></script>';

Không có nhận xét nào:
Đăng nhận xét