[openstreetmap/openstreetmap-website] Support Open Graph protocol (#2965)

Seth Deegan notifications at github.com
Mon Nov 16 01:54:02 UTC 2020


Users on the OSM World Discord Server frequently post openstreetmap.org links to various areas they're talking about, changesets, etc.

Discord has embeds that use the Open Graph protocol to display rich data. 

**Currently the only embed data that's displayed looks like this:**
![image](https://user-images.githubusercontent.com/22477298/99203963-bec46480-2779-11eb-80b6-413fa518a221.png)
A picture of the map for the linked area as `<meta property="og:image">` included would be better.

or
![Screenshot 2020-11-15 at 7 36 12 PM](https://user-images.githubusercontent.com/22477298/99204064-14007600-277a-11eb-849f-97fab228b069.png)
A picture of the map and maybe a bit of changeset data would be better.

Now that I think about it, the embedded image request is probably not feasible. It would require the server generating a image and its link for every view of the map that is requested. However, all of the OSM layers use raster tiles so maybe this could be possible?

At least a better embed description is possible. As to what should be in each description should probably be discussed below.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2965
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20201115/f61f5d2a/attachment-0001.htm>


More information about the rails-dev mailing list