Load OpenStreetMap tiles over https

With the Ingress Intel map loaded over HTTPS the OpenStreetMap tiles currently are still loaded over HTTP. This is bad practice and causes a 'Mixed Content' warning in browsers such as Chrome or Firefox.
This commit is contained in:
Edgar Toll 2016-11-21 13:25:59 +01:00
parent 0afa46a18c
commit 3621df4bd1
No known key found for this signature in database
GPG Key ID: 07FB37A8AFA6AF59

View File

@ -36,8 +36,8 @@ window.plugin.mapTileOpenStreetMap = {
};
var layers = {
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png': 'OpenStreetMap',
'http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png': 'Humanitarian',
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png': 'OpenStreetMap',
'https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png': 'Humanitarian',
};
for(var url in layers) {