Skip to content

Commit 302f87f

Browse files
authored
Merge pull request #1359 from swisstopo/feature/viewer-1347-limit-zoom
Set limits active as default
2 parents 0e94f1c + 114fb60 commit 302f87f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/viewer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Object.assign(RequestScheduler.requestsByServer, {
4848
'vectortiles0.geo.admin.ch:443': 18
4949
});
5050

51-
let noLimit = true;
51+
let noLimit = false;
5252

5353
const FOG_FRAGMENT_SHADER_SOURCE = `
5454
float getDistance(sampler2D depthTexture, vec2 texCoords) {
@@ -101,8 +101,8 @@ export async function setupViewer(container: Element, rethrowRenderErrors: boole
101101
const searchParams = new URLSearchParams(location.search);
102102

103103
const zExaggeration = getExaggeration();
104-
if (searchParams.get('noLimit') === 'false') {
105-
noLimit = false;
104+
if (searchParams.get('noLimit') === 'true') {
105+
noLimit = true;
106106
}
107107

108108
let terrainUrl;

0 commit comments

Comments
 (0)