Google Map Block - List Not Coming Up for Location
Permalink
I have never used the new Google Map Block for 5.7 before, but do need to know.
When I enter the location, no matter what I enter, no list ever shows up. Any idea what is supposed to happen. Based on the descriptive text below it, and the docs, it sounds like a menu should come up and then the location is selected out of that.
Thanks!
When I enter the location, no matter what I enter, no list ever shows up. Any idea what is supposed to happen. Based on the descriptive text below it, and the docs, it sounds like a menu should come up and then the location is selected out of that.
Thanks!
I am using the default 5.7 theme (Element I believe). I don't see any errors.
On one occasion the location list was not working, refreshing the page corrected it.
I tried that to no avail.
Hey Blenderite,
I have the same problem ! Sometimes it does work but most of the time it doesn't.
Did you find a fix already?
I have the same problem ! Sometimes it does work but most of the time it doesn't.
Did you find a fix already?
Hey Blenderite,
I have the same problem ! Sometimes it does work but most of the time it doesn't.
Did you find a fix already?
I have the same problem ! Sometimes it does work but most of the time it doesn't.
Did you find a fix already?
If anybody is still facing the same problem, it happens when you add two map based blocks in the same page
To FIX that just add a file /application/blocks/google_map/controller.php
and write the following code inside that controller file
This code will basicly prevent loading the google map api in edit mode which is what causes the problem of loading the locations list
To FIX that just add a file /application/blocks/google_map/controller.php
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>' ); }
Viewing 15 lines of 17 lines. View entire code block.
This code will basicly prevent loading the google map api in edit mode which is what causes the problem of loading the locations list
Google map block not working in 5.7.5.8, on several sites I have, all using the Supermint 3 theme, has any1 found easy way to fix this?
See
http://www.concrete5.org/community/forums/usage/google-maps-not-wor...
@mesuva has posted a solution while waiting for a core update to fix permanently.
http://www.concrete5.org/community/forums/usage/google-maps-not-wor...
@mesuva has posted a solution while waiting for a core update to fix permanently.
You should see a dropdown of locations.
What theme are you using?
Do you have any errors in your browser console?