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!

Blenderite
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi Blenderite,

You should see a dropdown of locations.

What theme are you using?

Do you have any errors in your browser console?
Blenderite replied on at Permalink Reply
Blenderite
I am using the default 5.7 theme (Element I believe). I don't see any errors.
MrKDilkington replied on at Permalink Reply
MrKDilkington
On one occasion the location list was not working, refreshing the page corrected it.
Blenderite replied on at Permalink Reply
Blenderite
I tried that to no avail.
nesoor replied on at Permalink Reply
nesoor
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?
nesoor replied on at Permalink Reply
nesoor
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?
majid26 replied on at Permalink Reply
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
<?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
designeclectic replied on at Permalink Reply
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?
JohntheFish replied on at Permalink Reply
JohntheFish
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.