<blockquote>
<p>We can implement a new function to generate thumbnail on-fly, containing small version of current view of the map and then place it in html's og:image.</p>
</blockquote>
<p>This probably belongs outside the rails port, which doesn't do anything with tile rendering. </p>
<p>The tile.openstreetmap.org servers provide the /cgi-bin/export endpoint, but it's <a href="http://wiki.openstreetmap.org/wiki/Tile_usage_policy">not suitable for this</a>.</p>
<p>MapQuest Open provides the full featured <a href="http://open.mapquestapi.com/staticmap/">Static Map</a> endpoint which would work for this.</p>
<p><a href="https://github.com/gravitystorm" class="user-mention">@gravitystorm</a>, do your layers have any suitable similar endpoint?</p>
<p>For layers without a static endpoint, the best option might be to take the tile from four zoom levels up, to get a 256x256 preview.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/issues/739#issuecomment-58992126">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/1419053__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyODg4Mzc0MywiZGF0YSI6eyJpZCI6MzE2NjQxNTR9fQ==--5ebd5efa85d51fe271d44ca4496a3eb08107f750.gif" width="1" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Issue on GitHub","action":{"@type":"ViewAction","url":"https://github.com/openstreetmap/openstreetmap-website/issues/739#issuecomment-58992126","name":"View Issue"}}</script>