Remove clutter from brouter geojson files

This commit is contained in:
Antonia 2025-03-10 22:19:41 +01:00
parent efeec0bf42
commit eb4507d261

View file

@ -109,6 +109,7 @@ async function updateBrouter () {
if (geojson != undefined) { if (geojson != undefined) {
map.removeLayer(geojson); map.removeLayer(geojson);
} }
delete data.features[0].properties.messages
geojsons.push(data.features[0]); geojsons.push(data.features[0]);
const dat = {type: "FeatureCollection", features: geojsons}; const dat = {type: "FeatureCollection", features: geojsons};
geojson = addGeoJsonToMap(dat); geojson = addGeoJsonToMap(dat);