Skip to content
Permalink
Browse files

Fix developers map background loading

Fix #12831
Backported to 2.8.3

Workaround for Leaflet/Leaflet#2021
  • Loading branch information
m-kuhn committed Jun 8, 2015
1 parent ff68635 commit 19b79d890c2ac272aff3cf800700860fabe1408e
Showing with 11 additions and 6 deletions.
  1. +3 −3 doc/contributors.json
  2. +8 −3 doc/developersmap.html
@@ -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>

0 comments on commit 19b79d8

Please sign in to comment.
You can’t perform that action at this time.