Skip to content

Commit

Permalink
Merge pull request #955 from geoadmin/feat-PB-186-url-param-pre-proce…
Browse files Browse the repository at this point in the history
…ss-router

PB-186: pre processing tool for URL parameters - #minor
  • Loading branch information
ltkum authored Jun 28, 2024
2 parents 6217ed4 + 7864ef7 commit 1eef52c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/router/legacyPermalinkManagement.routerPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,6 @@ const handleLegacyParam = (
// they're not called multiple times for nothing
break

case '3d':
// if the 3d flag is given without being placed behind the hash (meaning at startup),
// we need to make sure the projection is set to Mercator, otherwise the startup sequence
// ends up not working properly and center the view wrongly
if ((typeof legacyValue === 'string' && legacyValue === 'true') || legacyValue) {
newQuery['sr'] = WEBMERCATOR.epsgNumber
}
newValue = legacyValue
break

case 'elevation':
cameraPosition[2] = Number(legacyValue)
break
Expand Down

0 comments on commit 1eef52c

Please sign in to comment.