NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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's gravatar image

hijustin
26112
accept rate: 0%


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.

permanent link

answered 15 Mar '13, 23:04

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.3k1785108
accept rate: 18%

1

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!

(15 Mar '13, 23:19) hijustin
1

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 ( http://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.

(16 Mar '13, 00:13) apmon

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).

permanent link

answered 16 Mar '13, 01:06

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×31
×19
×6

question asked: 15 Mar '13, 22:42

question was seen: 4,746 times

last updated: 16 Mar '13, 01:06

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum