From 114fb606412871048b1b05a31a70ebb3f7c2fecf Mon Sep 17 00:00:00 2001 From: Jannic Veith Date: Thu, 17 Oct 2024 11:24:37 +0200 Subject: [PATCH] Set limits active as default --- ui/src/viewer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/viewer.ts b/ui/src/viewer.ts index eb2522b6e..140f7c65c 100644 --- a/ui/src/viewer.ts +++ b/ui/src/viewer.ts @@ -48,7 +48,7 @@ Object.assign(RequestScheduler.requestsByServer, { 'vectortiles0.geo.admin.ch:443': 18 }); -let noLimit = true; +let noLimit = false; const FOG_FRAGMENT_SHADER_SOURCE = ` float getDistance(sampler2D depthTexture, vec2 texCoords) { @@ -101,8 +101,8 @@ export async function setupViewer(container: Element, rethrowRenderErrors: boole const searchParams = new URLSearchParams(location.search); const zExaggeration = getExaggeration(); - if (searchParams.get('noLimit') === 'false') { - noLimit = false; + if (searchParams.get('noLimit') === 'true') { + noLimit = true; } let terrainUrl;