Hello, is possible to make preview maps when i post link on facebook ? Some map providers ( mapy.cz ) can do this. Look. asked 11 May '19, 14:03 pschonmann |
Preview maps like this are indicated to Facebook by a series of 'meta tags' in the HEAD of an HTML document, for example:
(The "OG" stands for "Open Graph".) Only one image can be supplied, whereas OSM maps are actually made up of many images tiled together. We wouldn't want to get into specially rendering images just for Facebook previews, so I doubt we'd want to supply a composite image for this purpose. However, it might be an acceptable substitute to (for example) simply supply the tile corresponding to the centre point of the map, zoomed out one or two levels. If you think this would be a worthwhile change, the place to suggest it is at https://github.com/openstreetmap/openstreetmap-website/issues , or better still, supply working code at https://github.com/openstreetmap/openstreetmap-website/pulls . I'd recommend you include a link to this question. answered 14 May '19, 11:18 Richard ♦ |
Can you provide a bit more information about what you'd actually like to happen? Not everyone is familiar with Facebook and I'm not sure exactly what you mean by a "preview map".
When you paste link in comment field, you can see something like thumbnail, preview of your link. If you paste osm link you see only link to osm.org and big icon. Would be nice to see part of map instead.