Google Maps Onebox Issue

AI-generated summary

Users are reporting issues with embedding Google Maps via Onebox on Discourse forums. JamesNorth notes that neither short nor long Google Maps URLs embed properly anymore. scottfsmith confirms similar problems, observing that some maps (especially custom datasets) fail to load or lack zoom controls — behavior inconsistent across sites and posts, even when using identical URLs. He shares working and broken iframe examples, including one that renders but lacks interactivity. riking identifies a UI bug: a “click screen” div meant to block scrolling lingers and interferes with map interaction. babyfooter adds that the same map URL works on meta.discourse.org but not on their updated forum, suggesting a potential version-specific bug. sam assumes the issue is resolved and asks users to reopen if problems persist. The core issue appears to be inconsistent rendering and interactivity of Google Maps embeds, possibly tied to iframe handling or UI overlays in Discourse.

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://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

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:

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>

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 - #2 by simon, is it a discourse version bug? or something else?

Note that my forum is updated.

Thx!

I am just assuming stuff is all fixed now, flag to reopen if still an issue @babyfooter