"Fossies" - the Fresh Open Source Software Archive

Member "QGIS-final-3_10_0/doc/developersmap.html" (25 Oct 2019, 1976 Bytes) of package /linux/misc/QGIS-final-3_10_0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <!DOCTYPE html>
    2 <html>
    3 <head>
    4   <title>Developers Map</title>
    5   <meta charset="UTF-8">
    6   <link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css"
    7   integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
    8   crossorigin="" />
    9   <style type="text/css">
   10   body {  padding: 0; margin: 0;  }
   11   html, body, #developers-map {  height: 100%;  }
   12   </style>
   13   <script src="https://unpkg.com/leaflet@1.3.4/dist/leaflet.js"
   14   integrity="sha512-nMMmRyTVoLYqjP9hrbed9S+FzjZHW5gY1TWCHA5ckwXZBadntCNs8kEqAWdrb9O7rxbCaA4lKTIWjDXZxflOcA=="
   15   crossorigin="">
   16   </script>
   17   <script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
   18   <link rel="points" type="application/json" href="../resources/data/contributors.json">
   19 </head>
   20 <body>
   21   <div id="developers-map"></div>
   22   <script>
   23   var developersMapTiles = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
   24     maxZooom: 18,
   25     attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
   26   });
   27 
   28   $.getJSON($('link[rel="points"]').attr("href"), function(data) {
   29     var nameString = '';
   30     var geojson = L.geoJson(data, {
   31       onEachFeature: function (feature, layer) {
   32         if (feature.properties['GIT Nickname'] !== undefined){
   33           nameString = "<a href='https://github.com/" +
   34                        feature.properties['GIT Nickname'] + "' target='_blank' >" +
   35                        feature.properties.Name + "</a>";
   36         } else {
   37           nameString = feature.properties.Name;
   38         }
   39         layer.bindPopup(nameString + "<br>" +
   40                         (feature.properties.Committer == "Yes" ?
   41                         "Core committer" : "Core contributor" ));
   42       }
   43     });
   44     var map = L.map('developers-map').fitBounds(geojson.getBounds());
   45     developersMapTiles.addTo(map);
   46     geojson.addTo(map);
   47      setTimeout(function() {
   48        map.setZoom(1);
   49      }, 0);
   50   });
   51   </script>
   52 </body>
   53 </html>