From 79bcf65f27c2dfef267e69d43163c02c72ebafd5 Mon Sep 17 00:00:00 2001 From: evlist Date: Tue, 31 Jan 2023 12:30:28 +0100 Subject: [PATCH] Differentiating international and national hiking routes --- src/components/gpx/styles.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/gpx/styles.ts b/src/components/gpx/styles.ts index 6f67be3..db59bab 100644 --- a/src/components/gpx/styles.ts +++ b/src/components/gpx/styles.ts @@ -333,6 +333,9 @@ const styles = { // }); // } const network = feature.get('network'); + if (getZoomInteger() < 7 && !['iwn'].includes(network)) { + return null; + } if (getZoomInteger() < 12 && !['iwn', 'nwn'].includes(network)) { return null; }