Skip to content

Commit

Permalink
Fix developers map background loading
Browse files Browse the repository at this point in the history
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 19b79d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions doc/contributors.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
}
},
Expand Down
11 changes: 8 additions & 3 deletions doc/developersmap.html
Original file line number Diff line number Diff line change
@@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit 19b79d8

Please sign in to comment.