OpenStreet maps embedding

Continuing the discussion from Can Google Maps be embedded into Topics?:

Can we add this for


Here is the iframe:

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src=";layer=mapnik&amp;marker=44.61640840520352%2C33.51085424423218" style="border: 1px solid black"></iframe><br/><small><a href=";mlon=33.5109#map=16/44.6164/33.5109">Посмотреть более крупную карту</a></small>
1 Like

There are also permalinks which could trigger oneboxing:

This would be a good way to emphasize Discourse’s support of open web. :+1:

OSM is the only real and open alternative to Google Maps we have.
IMO should be supported and whitelisted by default: just like Wikipedia is.


Let’s include Wikimapia also :blush:


Hi, short update:

I created PR which adds OSM iframe whitelisting:

If someone is interested I also started development of a simple onebox plugin: discourse-openstreetmap.

It provides oneboxer for links like:

With the recent change to onebox library, oneboxing of links starting with a hash (like works too.

(Perhaps if the PR above gets accepted and the plugin feels mature enough at some point the OSM oneboxer could be introduced as a PR for the onebox library.)


Wouldn’t it be nice to have direct embedding of OSM maps from UMAP links? For example, this doesn’t give anything now, but it could embed the actual map, maybe using the OpenStreetMap plugin, or the Locations plugin…


You may know this by now, and it may not have been possible back then, but there are two things you need to check to see the actual map in place, rather than just a friendly external link:

  • whitelist openstreetmap in settings -> security
  • if necessary, ensure the iframe includes the https flavour of links (you may have to manually add the ‘s’ to ‘http’ - check both links, the one inside the iframe tag may be just ‘http’).

Then the map should appear as expected:

View Larger Map