Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Developers map: more descriptive status for each dev
  • Loading branch information
gacarrillor committed Nov 3, 2017
1 parent 9c5ace0 commit 09f9bb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/developersmap.html
Expand Up @@ -17,14 +17,15 @@
<script>
var developersMapTiles = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
maxZooom: 18,
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
attribution: '&copy; <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());
Expand Down

0 comments on commit 09f9bb7

Please sign in to comment.