From 08528a9e05a12e564f2c3776be4c8ae672f5054c Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Fri, 7 Nov 2025 10:35:28 +0200 Subject: Minor dom cleanup --- app/map.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/map.js') diff --git a/app/map.js b/app/map.js index d3de4ac..b792704 100644 --- a/app/map.js +++ b/app/map.js @@ -292,14 +292,14 @@ export class MapEl { if (feature.geometry instanceof LineString) { return Svg.path( - feature.geometry, + feature.geometry.simplify(30), new SvgOptions({ attributes: defaultStyle, }), ); } else if (feature.geometry instanceof MultiLineString) { return Svg.path( - new LineString(feature.geometry.coordinates.flat()), + new LineString(feature.geometry.simplify(30).coordinates.flat()), new SvgOptions({ attributes: defaultStyle, }), @@ -473,7 +473,7 @@ export class MapEl { static #getDistricts(districts) { return districts.map((district) => { const poly = Svg.polygon( - district.polygon, + district.polygon.simplify(30), new SvgOptions({ attributes: { "data-id": district.name, -- cgit v1.2.3-70-g09d2