From eaa6839219bcd4b672e40900a20c913f9801cdfb Mon Sep 17 00:00:00 2001 From: Boris Mericskay <boris.mericskay@univ-rennes2.fr> Date: Tue, 13 Apr 2021 13:46:50 +0000 Subject: [PATCH] Update Cluster.html --- Cluster.html | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Cluster.html b/Cluster.html index c29baa5..b999560 100644 --- a/Cluster.html +++ b/Cluster.html @@ -32,7 +32,24 @@ style: 'https://api.maptiler.com/maps/positron/style.json?key=rrASqj6frF6l2rrOFR map.on('load', function() { - // Add data + + // Add arrondissements + + map.addSource('lignes', { + type: 'geojson', + data: 'https://raw.githubusercontent.com/mastersigat/data/main/arrondissements.geojson' + }); + + map.addLayer({ + 'id': 'Lignes', + 'type': 'line', + 'source': 'lignes', + 'paint': {'line-width': 1, + 'line-color': '#AAAAAA'} + }); + + + // Add Bike stations data map.addSource('DMR', { type: 'geojson', -- GitLab