Merge pull request #821 from sgmap/openstreetmap

OpenStreetMap: use openstreetmap.org to provide the tiles
This commit is contained in:
gregoirenovel 2017-10-11 15:23:08 +02:00 committed by GitHub
commit 5c3d2fd880
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ function initCarto() {
scrollWheelZoom: false
}).setView([position.lat, position.lon], position.zoom);
L.tileLayer('http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', {
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);

View file

@ -2,7 +2,7 @@ var LON = '2.428462';
var LAT = '46.538192';
function initCarto() {
OSM = L.tileLayer("http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png", {
OSM = L.tileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
});