Google Map not working, or is it just me?
PermalinkIt's now not returning the latitude and longitude from an address. It just defaults to 0,0. Its definitely not the API key because I have an old map working on a site, and then the new map fails to look up a correct address (both with the same API key).
Maybe Google updated something. Any ideas folks?

and write the following code inside that controller file
<?php namespace Application\Block\GoogleMap; use Concrete\Block\GoogleMap\Controller as GoogleMapBlockController; use Loader; use Page; class Controller extends GoogleMapBlockController{ public function registerViewAssets($outputContent = '') { $this->requireAsset('javascript', 'jquery'); $c = Page::getCurrentPage(); if (!$c->isEditMode()) { $this->addFooterItem( '<script defer src="https://maps.googleapis.com/maps/api/js"></script>' ); }
This code will basicly prevent loading the google map api in edit mode which is what causes the problem of loading the locations list
I get this error in Developertools:
You have included the Google Maps API multiple times on this page. This may cause unexpected errors.
Google Maps API error: MissingKeyMapErrorhttps://developers.google.com/maps/documentation/javascript/error-me...
Google Maps API warning: NoApiKeyshttps://developers.google.com/maps/documentation/javascript/error-me...
Maybe this could help to solve this problem.
$this->addFooterItem( '<script defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>' );
http://www.concrete5.org/community/forums/usage/google-maps-not-wor...