js: load openstreemap tiles over https (#6609)

This commit is contained in:
Frédéric Péters 2015-03-04 09:17:27 +01:00
parent 2ef3730384
commit 0be20c3a9c
1 changed files with 2 additions and 2 deletions

View File

@ -27,9 +27,9 @@ $(function() {
}
map.setView(latlng, map_options.zoom);
L.tileLayer(
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
{
attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
attribution: 'Map data &copy; <a href="https://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
}).addTo(map);
if (! $map_widget.data('readonly')) {
map.on('click', function(e) {