Just see the results (short URL: Google Maps, long URL: Google Maps).
edit: The large map also does not show the location.
The discussion addresses the issue where embedding Google Maps short URLs (e.g., goo.gl) fails to display the correct location, often resulting in a generic world map. rumpelsepp initially reported that both short and long URLs were not rendering correctly in the onebox. riking suggested using the specific embed link format rather than the standard share link, while elberet argued that copying the direct address bar URL should suffice without special links. codinghorror clarified that while the behavior could be seen as a feature request, elberet insisted it was a bug, noting that short links should resolve correctly over HTTPS but currently fail to do so in the onebox context. elberet subsequently submitted a pull request (PR #280) to fix the resolution issue and added support for static preview images. The conversation concluded with riking noting a separate iframe refreshing bug that requires a âpreviewâ onebox method, followed by some lighthearted banter between elberet and riking regarding the timing of their replies and the inclusion of preview image support in the fix.
Just see the results (short URL: Google Maps, long URL: Google Maps).
edit: The large map also does not show the location.
You need to choose the embed link, I think:
The âshareâ link doesnât have enough data.
Just copy & paste the address from your browserâs address bar, no need to get a special link:
https://www.google.com/maps/place/New+York+City,+New+York,+USA/@40.6991485,-73.9989071,9z/data=!4m2!3m1!1s0x89c24fa5d33f083b:0xc80b8f06e177fe62?hl=de
https://www.google.com/maps/@40.6964248,-74.0590794,12z?hl=de
For google.de:
https://www.google.de/maps/@52.5153877,13.3792687,15z
Yes, but you could argue that onebox should know how to expand short URLs. This is not a bug, though, but a feature request.
Actually, this is a bug. Short links are supposed to be resolved, but it doesnât work for HTTPS.
I just canât figure out why the shortened link in question resolves to a world map when embedded. It doesnât make sense⊠from short â long â canonical:
https://goo.gl/maps/EOjiehttps://www.google.de/maps/place/New+York+City,+New+York,+USA/@40.7033127,-73.979681,11z/data=!3m1!4b1!4m2!3m1!1s0x89c24fa5d33f083b:0xc80b8f06e177fe62https://maps.google.de/maps?sll=40.7033127,-73.979681&sspn=0.3998584,0.7033743&cid=14414772292044717666&q=New+York+City,+New+York,+USA&dg=ntvbAll of these come straight from Google, the only alteration is that the third link has output=classic removed from its query parameters. It still works tho: paste any link into the address bar and it just works.
This should fix it:
https://github.com/discourse/onebox/pull/280
Iâve also added support for preview images⊠at least I hope. Iâm not certain if this kind of static map does actually require a Google API key.
Note: We have the iframe refreshing bug here, we need to implement a âpreviewâ onebox method.
⊠you were saying? ![]()
Uhh⊠drafts? Delayed pressing of Reply! (thatâs the ticket)
Sorry, I probably shouldnât engage in witty banter past 5am. Can I get that ninja-delete feature already? ![]()
Anyway, the PR above does include support for static preview images for the composer.