diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-07 10:35:28 +0200 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-07 10:35:28 +0200 |
| commit | 08528a9e05a12e564f2c3776be4c8ae672f5054c (patch) | |
| tree | b5fe872701d0e30b5df18f7d4ea994b5b4a1761a /app/map.js | |
| parent | f3d3700dcca8555da9882f923a9fc4a30fcab3b8 (diff) | |
| download | housing-08528a9e05a12e564f2c3776be4c8ae672f5054c.tar.zst | |
Minor dom cleanup
Diffstat (limited to 'app/map.js')
| -rw-r--r-- | app/map.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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, |
