Skip to content

Latest commit

 

History

History
111 lines (92 loc) · 5.93 KB

emergenza_abruzzo.md

File metadata and controls

111 lines (92 loc) · 5.93 KB
layout title permalink
page
Emergenza Abruzzo
/emergenza_abruzzo/
<script src="https://unpkg.com/leaflet@1.0.0/dist/leaflet.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.min.js"></script> <style> #map{ height: 400px } </style>
{% assign filteredissues = site.data.issuesjson | where: "state","open" | where_exp: "member","member.issue.labels contains 'emergenzaAbruzzo'"%} {% for member in filteredissues %}

{{member.issue.data.descrizione|markdownify}}

{{member.issue.data.data}}

  • Condividi:
  • Copia link
  • Condividi su Facebook
  • Tweet
  • Condividi su Google+
  • Invia email
{% endfor %}
<script> var markerList=[]; {% for member in filteredissues %} {% if member.issue.lat != blank and member.issue.lon != blank %} markerList.push([{{member.issue.lat}}, {{member.issue.lon}}, "{{member.title|uri_escape}}", "/issues/{{ member.number }}"]); {% endif %} {% endfor %} // initialize the map var map = L.map('map') // create the tile layer with correct attribution var osmUrl='{{site.tile_map}}'; var osmAttrib='© OpenStreetMap, Tiles courtesy of Leaflet'; var osm = new L.TileLayer(osmUrl, {minZoom: 6, maxZoom: 19, attribution: osmAttrib}); var sumLat = 0.; var sumLon = 0.; var countMarkers=0; for (var i=0; i" + decodeURI(popupText) + ""); sumLat += lat; sumLon += lon; countMarkers++; } } map.addLayer(osm).setView([sumLat / countMarkers, sumLon / countMarkers], 6); </script>
{% assign filteredissues = site.data.issuesjson | where: "state","closed" %} {% for member in filteredissues %} {% if member.issue.labels contains "emergenzaAbruzzo" %}

{{member.issue.data.descrizione|markdownify}}

{{member.issue.data.data}}

  • Condividi:
  • Copia link
  • Condividi su Facebook
  • Tweet
  • Condividi su Google+
  • Invia email
{% endif %} {% endfor %}