QGIS/doc/developersmap.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
2.0 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
2014-10-18 14:12:59 +02:00
<html>
<head>
<title>Developers Map</title>
<meta charset="UTF-8">
2024-06-24 05:47:52 +02:00
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha384-sHL9NAb7lN7rfvG5lfHpm643Xkcjzp4jFvuavGOndn6pjVqS6ny56CAt3nsEVT4H"
2018-08-27 23:22:51 +02:00
crossorigin="" />
2014-10-18 14:12:59 +02:00
<style type="text/css">
body { padding: 0; margin: 0; }
html, body, #developers-map { height: 100%; }
</style>
2024-06-24 05:47:52 +02:00
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha384-cxOPjt7s7Iz04uaHJceBmS+qpjv2JkIHNVcuOrM+YHwZOmJGBXI00mdUXEq65HTH"
2018-08-27 23:22:51 +02:00
crossorigin="">
</script>
2014-10-18 14:12:59 +02:00
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
2018-08-27 23:22:51 +02:00
<link rel="points" type="application/json" href="../resources/data/contributors.json">
2014-10-18 14:12:59 +02:00
</head>
<body>
<div id="developers-map"></div>
<script>
2022-12-21 14:40:22 +01:00
var developersMapTiles = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZooom: 18,
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
2014-10-18 14:12:59 +02:00
});
$.getJSON($('link[rel="points"]').attr("href"), function(data) {
var nameString = '';
2014-10-18 14:12:59 +02:00
var geojson = L.geoJson(data, {
onEachFeature: function (feature, layer) {
if (feature.properties['GIT Nickname'] !== undefined){
nameString = "<a href='https://github.com/" +
feature.properties['GIT Nickname'] + "' target='_blank' >" +
feature.properties.Name + "</a>";
} else {
nameString = feature.properties.Name;
}
layer.bindPopup(nameString + "<br>" +
(feature.properties.Committer == "Yes" ?
"Core committer" : "Core contributor" ));
2014-10-18 14:12:59 +02:00
}
});
var map = L.map('developers-map', { attributionControl: false }).fitBounds(geojson.getBounds());
2022-12-21 18:27:09 +01:00
L.control.attribution( { prefix: false } ).addTo( map );
2014-10-18 14:12:59 +02:00
developersMapTiles.addTo(map);
geojson.addTo(map);
setTimeout(function() {
map.setZoom(1);
}, 0);
2014-10-18 14:12:59 +02:00
});
</script>
</body>
</html>