aboutsummaryrefslogtreecommitdiffstats
path: root/app/map.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/map.js')
-rw-r--r--app/map.js6
1 files changed, 3 insertions, 3 deletions
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,