From f203cf9dff42358aec60068aca2af15412a3093f Mon Sep 17 00:00:00 2001 From: Jay Harris Date: Tue, 19 Dec 2023 16:30:49 +1300 Subject: [PATCH] Add min zoom --- src/TopoMap.svelte | 1 + src/components/MapFeatures.svelte | 2 +- src/layers/layerDefinitions.ts | 3 ++- src/ol/TileLayer.svelte | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/TopoMap.svelte b/src/TopoMap.svelte index b3f726c..b44aa40 100644 --- a/src/TopoMap.svelte +++ b/src/TopoMap.svelte @@ -49,6 +49,7 @@ title={definition.name} prerender={definition.prerender} type={"overlay"} + minZoom={definition.minZoom} visible={definition.defaultVisible} source={cachingSource(definition)} /> {/each} diff --git a/src/components/MapFeatures.svelte b/src/components/MapFeatures.svelte index 12a0fe3..bca1975 100644 --- a/src/components/MapFeatures.svelte +++ b/src/components/MapFeatures.svelte @@ -109,7 +109,7 @@