From 5412894168516b6281b6a253c60e0add0da4b554 Mon Sep 17 00:00:00 2001 From: Russ Garrett Date: Wed, 22 May 2024 10:58:23 +0100 Subject: [PATCH] Hide some labels at high zooms --- web/src/style/map_style.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/style/map_style.ts b/web/src/style/map_style.ts index b9a6223..9d128da 100644 --- a/web/src/style/map_style.ts +++ b/web/src/style/map_style.ts @@ -1089,6 +1089,7 @@ const layers: LayerSpecificationWithZIndex[] = [ source: 'site_plan', 'source-layer': 'labels_point', minzoom: 16, + maxzoom: 21, layout: { 'text-field': '{text}', 'text-font': ['Raleway SemiBold'], @@ -1109,6 +1110,7 @@ const layers: LayerSpecificationWithZIndex[] = [ source: 'site_plan', 'source-layer': 'labels_point', minzoom: 15, + maxzoom: 20, layout: { 'text-field': '{text}', 'text-font': ['Raleway SemiBold'],