Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
OpenLayers HTTPS SSL
hi,
is it possible to establish a https connection to osm with the OpenLayers addon?
thanks in advance!
Hi,
I guess you are trying to get rid of "mixed content warnings"? AFAIK OSM is only provided as non-SSL service, so the answer is not easily.
But there are couple of methods I think you could use:
* download the OSM material and serve it with with your own map server
* Create a proxy to your SSL server for tiles, you'll also need to modify the OL script a bit to fetch images via your proxy instead of public non ssl servers
cheers,
matti
Matti Tahvonen: I guess you are trying to get rid of "mixed content warnings"?
you got it ;) is there another layer supported by OpenLayers which offers ssl support without cost?
Hi,
I think Google Maps is nowadays offered via SSL without charges nowadays (used to be for paying customers only). But Google Maps has its rather strict license otherwise. Same for Bing maps. I don't know if SSLs version is directly supported by OLs, but I'd guess it would be rather easy to add such a feature.
I'd go with the proxy option. It is rather easy to get started (especially if you have ever played with proxies before) and there you could also make a cache for tiles so that things will work faster in case OSM servers are slow or down for some reason or e.g. your internet connection is down.
cheers,
matti