Google Maps Onebox Issue


(James North) #1

Hi All,

Google Maps used to embed fine with the old Onebox scenario using the short URL from Google…

But now it doesn’t embed using either method.

https://goo.gl/maps/FKahqRJuPmM2

https://goo.gl/maps/FKahqRJuPmM2

https://www.google.com.au/maps/place/Giffin+Park/@-27.4849472,153.0553098,17.99z/data=!4m5!3m4!1s0x0:0xf02a35bd72216a0!8m2!3d-27.4846323!4d153.0556007

https://www.google.com.au/maps/place/Giffin+Park/@-27.4849472,153.0553098,17.99z/data=!4m5!3m4!1s0x0:0xf02a35bd72216a0!8m2!3d-27.4846323!4d153.0556007


(Scott Smith) #2

I am also having problems with Google maps on my site. And, I did some tests on try.discourse.org and also got odd behavior there.

Some of the embedded links show up (usually ones that are just some random view in maps) and some don’t show up at all (usually custom Google map datasets). Let me put a couple here.

Here is a custom dataset someone was posting about here awhile back (Embedding custom created Google Maps)

This is just the URL, not the frame. It shows up when I recently posted it at try.discourse but the zoom controls don’t work. Same behavior here: picture shows up but no zooming. This is from an old post here at meta and the zooming is working on that old post with the same URL. Now the odd thing is on my site I put this exact same one in a Message and it worked there. So, there is something flakey going on for sure.

Here is an iframe I exported from Google of just some random view, not a custom map – it seems to work.

Here is the original iframe on my site that no longer works:

(yes there is probably nothing here because its broken).

Here is the raw link of the above iframe – it shows up but no +/- zooming is working:


(Kane York) #3

The “click screen” div that’s supposed to block scrolls, but be deleted as soon as you click it, is sticking around longer than it’s wanted.

<div class="maps-onebox">
<!-- this thing -->
<div style="background:transparent;position:relative;width:690px;height:400px;top:400px;margin-top:-400px;"></div>
<iframe src="https://www.google.com/maps/d/embed?mid=za0Bx0koO4sk.kHCbG4TApEP4" width="690" height="400" frameborder="0" style="border:0">&amp;lt;img src="https://www.google.com/maps/d/thumbnail?mid=za0Bx0koO4sk.kHCbG4TApEP4" width="120" height="120"&amp;gt;</iframe>
</div>

Google maps embedding broken in 1.8.0.beta8
#4

Hi all,

I’ve also encoured some issues using Google maps embedded on my own forum. Let’s use this example

It seems to be working on meta.discourse .org in this post Embedding custom created Google Maps, is it a discourse version bug? or something else?

Note that my forum is updated.

Thx!