At present, it is not possible to enter the URL source for OpenLayers.js using // before the domain name (RFC 1808, Section 4) which allows the browser to determine which protocol to use to retreive the file (HTTPS / HTTP). eg. //www.example.com/js/OpenLayers.js

While openlayers.org itself does not support HTTPS (eg. https://openlayers.org/dev/OpenLayers.js), we use a file from our CDN which does support HTTPS.

Patch attached.

Comments

andrewsuth’s picture

FileSize
1.67 KB
None View

Added user explanation of the use of the double slash.

Pol’s picture

Status:Needs review» Needs work

Hello @andrewsuth,

Thanks for your patch!
I'm willing to commit it but I need a patch for OL 7.x then I'll commit this patch to OL 6.x.

Thanks

Pol’s picture

Status:Needs review» Needs work
FileSize
2.36 KB
None View

Patch for 7.x-2.x

Pol’s picture

Status:Needs work» Needs review
Pol’s picture

Status:Needs work» Fixed

Committed on 7.x & 6.x.

Thanks andrewsuth !

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.