mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -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",
|
||||
"First Commit Message": "Add backbuffering option to resolve flickering on X11 systems",
|
||||
"First Commit Date": "07-08-2012",
|
||||
"GIT Nickname": "matthias-kuhn"
|
||||
"GIT Nickname": "m-kuhn"
|
||||
},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [
|
||||
8.740423321723938,
|
||||
47.4989812888759
|
||||
7.6256,
|
||||
46.7542
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -1,11 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<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">
|
||||
body { padding: 0; margin: 0; }
|
||||
html, body, #developers-map { height: 100%; }
|
||||
</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>
|
||||
<link rel="points" type="application/json" href="contributors.json">
|
||||
</head>
|
||||
@ -27,7 +30,9 @@
|
||||
var map = L.map('developers-map').fitBounds(geojson.getBounds());
|
||||
developersMapTiles.addTo(map);
|
||||
geojson.addTo(map);
|
||||
map.setZoom(1);
|
||||
setTimeout(function() {
|
||||
map.setZoom(1);
|
||||
}, 0);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user