Skip to content

Commit

Permalink
distinguish between suis and mercator CRS
Browse files Browse the repository at this point in the history
  • Loading branch information
mki-c2c committed Jan 7, 2025
1 parent 71a4dc6 commit f5dbdbf
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ export function usePrint(map) {
}
printStatus.value = PrintStatus.PRINTING
const searchParams = new URLSearchParams(location.hash.split('?')[1])
const sr = searchParams.get('sr') || '2056'
if (sr === '2056') {
searchParams.set('novector', true)
}
searchParams.delete('sr')
const resolution = store.state.print.selectedScale / 25.4 / 96
const w_3857 = 40075016.68557849
const z = Math.log(w_3857 / 256 / resolution) / Math.log(2) + 1
Expand Down

0 comments on commit f5dbdbf

Please sign in to comment.