We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db43088 commit 5e02268Copy full SHA for 5e02268
src/main/webapp/WEB-INF/views/inc/scripts.jsp
@@ -163,9 +163,14 @@
163
}).setView([ lat, lon ], 3);
164
L.marker([ lat, lon ]).addTo(map);
165
}
166
- L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
+ var osmurl = 'http://{s}.tile.osm.org/{z}/{x}/{y}.png';
167
+ if(document.location.href.indexOf('https://') == 0){
168
+ osmurl = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
169
+ }
170
+ L.tileLayer(osmurl, {
171
attribution : '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
172
}).addTo(map);
173
+
174
},
175
mapInWidget : function(forceLoad) {
176
if ($('map').length > 0) {
0 commit comments