Browse Source

Use HTTPS to load tiles from Openstreetmap

Baptiste Jonglez 8 years ago
parent
commit
eea82a6916

+ 2 - 2
panorama/static/panorama/js/pano.js

@@ -1234,8 +1234,8 @@ function load_map(){
     map = L.map('mapid').setView([panorama_lat, panorama_lng], 13);
 
     // create the tile layer with correct attribution
-	var osmUrl='http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
-	var osmAttrib='Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors';
+	var osmUrl='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
+	var osmAttrib='Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
 	var osm = new L.TileLayer(osmUrl, {attribution: osmAttrib});		
 	map.addLayer(osm);
         map.addLayer( markerClusters );

+ 2 - 2
panorama/templates/panorama/locate_point.html

@@ -104,8 +104,8 @@ style="padding:0px;height:calc(100vh - 50px)"
         map = new L.Map('map');
 
         // create the tile layer with correct attribution
-        var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
-        var osmAttrib = 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors';
+        var osmUrl = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
+        var osmAttrib = 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
         var osm = new L.TileLayer(osmUrl, {attribution: osmAttrib});
 
         // start the map on the point

+ 2 - 2
panorama/templates/panorama/main.html

@@ -110,8 +110,8 @@
             map = new L.Map('map');
     
             // create the tile layer with correct attribution
-            var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
-            var osmAttrib = 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors';
+            var osmUrl = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
+            var osmAttrib = 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
             var osm = new L.TileLayer(osmUrl, {attribution: osmAttrib});
     
             // start the map in Grenoble