mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Fix developers map background loading
Fix #12831 Workaround for https://github.com/Leaflet/Leaflet/issues/2021
This commit is contained in:
parent
f2144918d2
commit
9639fc6664
@ -294,13 +294,13 @@
|
|||||||
"Committer": "Yes",
|
"Committer": "Yes",
|
||||||
"First Commit Message": "Add backbuffering option to resolve flickering on X11 systems",
|
"First Commit Message": "Add backbuffering option to resolve flickering on X11 systems",
|
||||||
"First Commit Date": "07-08-2012",
|
"First Commit Date": "07-08-2012",
|
||||||
"GIT Nickname": "matthias-kuhn"
|
"GIT Nickname": "m-kuhn"
|
||||||
},
|
},
|
||||||
"geometry": {
|
"geometry": {
|
||||||
"type": "Point",
|
"type": "Point",
|
||||||
"coordinates": [
|
"coordinates": [
|
||||||
8.740423321723938,
|
7.6256,
|
||||||
47.4989812888759
|
46.7542
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
|
<title>Developers Map</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body { padding: 0; margin: 0; }
|
body { padding: 0; margin: 0; }
|
||||||
html, body, #developers-map { height: 100%; }
|
html, body, #developers-map { height: 100%; }
|
||||||
</style>
|
</style>
|
||||||
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
|
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
|
||||||
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
|
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
|
||||||
<link rel="points" type="application/json" href="contributors.json">
|
<link rel="points" type="application/json" href="contributors.json">
|
||||||
</head>
|
</head>
|
||||||
@ -27,7 +30,9 @@
|
|||||||
var map = L.map('developers-map').fitBounds(geojson.getBounds());
|
var map = L.map('developers-map').fitBounds(geojson.getBounds());
|
||||||
developersMapTiles.addTo(map);
|
developersMapTiles.addTo(map);
|
||||||
geojson.addTo(map);
|
geojson.addTo(map);
|
||||||
map.setZoom(1);
|
setTimeout(function() {
|
||||||
|
map.setZoom(1);
|
||||||
|
}, 0);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user