Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 8.11 KB

index.md

File metadata and controls

47 lines (36 loc) · 8.11 KB
layout
default
<script language="javascript"> var member_markers = []; var member_probe_icon = L.icon({ iconSize: [25, 41], iconAnchor: [12, 41], popupAnchor: [1, -34], tooltipAnchor: [16, -28], shadowSize: [41, 41], iconUrl: 'marker-active.png', shadowUrl: 'marker-shadow.png', }); {% for member in site.members %} member_markers.push(L.marker([{{ member.lat }}, {{ member.lng }}], { icon: member_probe_icon }).bindPopup('

{% if member.photo %}photo{% endif %}{{ member.title }}

{{ member.content | markdownify | normalize_whitespace }}' + '{% if member.slack_account %}

{% if member.slack_account_url %} {% endif %} {{ member.slack_account }} {% if member.slack_account_url %} {% endif %}

{% endif %}' + '{% if member.fediverse_account %}

{{ member.fediverse_account }}

{% endif %}' + '{% if member.stack_overflow_account %}

Stackoverflow

{% endif %}' + '{% if member.linkedin_account %}

 {{ member.linkedin_account }}

{% endif %}' + '{% if member.contact_url %}

 Contact

{% endif %}' + '{% if member.github_account %}

Github

{% endif %}' + '{% if member.gitlab_account %}

Gitlab

{% endif %}' + '{% if member.twitter_account %}

Twitter

{% endif %}' )); {% endfor %} var common_attribution_pre = 'Données cartographiques : contributeur·rices OpenStreetMap | Tuiles : '; var common_attribution_post = ' | Icônes : Font Awesome | À propos de ce site'; var neighbourhood_map_layer = L.tileLayer('https://tile.thunderforest.com/neighbourhood/{z}/{x}/{y}.png?apikey=f001bec5e17447b0b597e5a8e766bbf2', {attribution: common_attribution_pre + 'Neighbourhood' + common_attribution_post}); var markers_layer = L.markerClusterGroup(); var active_probes_layer = L.featureGroup.subGroup(markers_layer, member_markers); markers_layer.addLayer(active_probes_layer); var map = L.map('map', {layers: [neighbourhood_map_layer, markers_layer, active_probes_layer]}); L.control.scale({maxWidth: 300}).addTo(map); map.fitBounds(L.latLngBounds(member_markers.map(e => e.getLatLng()))); </script>