Is it AT ALL possible to embed OpenStreetMap into a Facebook page canvas? I'm using Leaflet and I've initiated the JS but the tiles (OpenStreetMap) won't load because of the lack of SSL. Is there any workaround for this? Thanks! asked 15 Mar '13, 22:42 hijustin |
2 Answers:
Yes, there's a workaround. You can build your own tile server that uses SSL. This should solve the problem. See http://switch2osm.org/serving-tiles/ for how to do it. answered 15 Mar '13, 23:04 Jonathan Ben... |
Aside from building your own tile server you can use a tile provider which supports HTTPS. E.g. Mapquest does: https://otile1.mqcdn.com/tiles/1.0.0/osm/8/126/87.png (however the certificate is not accepted automatically by my Firefox). answered 16 Mar '13, 01:06 aseerel4c26 ♦ |
lol.. at first I thought you were just being an ass, then I clicked on the link and realized it's a very feasible solution. Thanks!
Easier than building your whole own tile server would be to just redirect things through a SSL reverse proxy. Although in that case you need to make sure you stay in compliance with the tile usage policy ( https://wiki.openstreetmap.org/wiki/Tile_usage_policy )
However, if it is feasible for you to build your own tile server, then that is preferable as it gives you more flexibility and control.