L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' }).addTo(map);
You must do that :
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' }).addTo(map);
OpenStreetMap doesn't have a certificate for the abbreviated domain osm.org
Source : https://github.com/Leaflet/Leaflet/issues/3186
Aucun commentaire:
Enregistrer un commentaire