Skip to content

Commit

Permalink
Merge pull request #1359 from swisstopo/feature/viewer-1347-limit-zoom
Browse files Browse the repository at this point in the history
Set limits active as default
  • Loading branch information
vej-ananas authored Oct 17, 2024
2 parents 0e94f1c + 114fb60 commit 302f87f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 302f87f

Please sign in to comment.