Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Developers map: more descriptive status for each dev
- Loading branch information
Showing
with
3 additions
and
2 deletions.
-
+3
−2
doc/developersmap.html
|
@@ -17,14 +17,15 @@ |
|
|
<script> |
|
|
var developersMapTiles = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { |
|
|
maxZooom: 18, |
|
|
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' |
|
|
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' |
|
|
}); |
|
|
|
|
|
$.getJSON($('link[rel="points"]').attr("href"), function(data) { |
|
|
var geojson = L.geoJson(data, { |
|
|
onEachFeature: function (feature, layer) { |
|
|
layer.bindPopup("<b>Name:</b> " + feature.properties.Name + |
|
|
"<br><b>Committer:</b> " + feature.properties.Committer); |
|
|
"<br><b>Status:</b> " + (feature.properties.Committer == "Yes" ? |
|
|
"Core committer" : "Core contributor" )); |
|
|
} |
|
|
}); |
|
|
var map = L.map('developers-map').fitBounds(geojson.getBounds()); |
|
|