-
Notifications
You must be signed in to change notification settings - Fork 15
PB-100: Manage camera and 3D parameter from the legacy parameters #607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Passing run #302 ↗︎Details:
Review all test suite changes for PR #607 ↗︎ |
@ismailsunni thanks for the PR, could you add the |
5c7d0be
to
1ba745a
Compare
@ltshb done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me just a small typo
newQuery['3d'] = true | ||
newQuery['sr'] = WEBMERCATOR.epsgNumber | ||
|
||
// Handle different backrgound layer from legacy 3D parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo background
@ismailsunni please not to not merge develop into your branch but rebase your branch on top of develop in order to keep a clean git history, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks!
tests/cypress/support/commands.js
Outdated
@@ -214,7 +214,13 @@ Cypress.Commands.add( | |||
errorMsg: 'Timeout waiting for all layers to be loaded', | |||
} | |||
) | |||
if ('3d' in queryParams && queryParams['3d'] === true) { | |||
|
|||
// In the legacy URL, 3d is not found. We check is the map in 3d or not by checking the pitch, heading, and elevation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another minor typo here We check if the map...
and not We check is the map...
1ba745a
to
1971af6
Compare
Transferring legacy parameters for 3D maps including:
lon
,lat
,elevation
,pitch
,heading
into camera position3d
to truesr
to WEBMERCATORbgLayer
to use the 3D oneExample of old geoadmin: https://map.geo.admin.ch/?lang=en&topic=ech&bgLayer=ch.swisstopo.pixelkarte-farbe&layers=ch.swisstopo.zeitreihen,ch.bfs.gebaeude_wohnungs_register,ch.bav.haltestellen-oev,ch.swisstopo.swisstlm3d-wanderwege,ch.swisstopo.swissnames3d&layers_visibility=false,false,false,true,false&layers_timestamp=18641231,,,,&layers_opacity=1,1,1,0.8,1&lon=10.14968&lat=45.51136&elevation=215370&heading=317.946&pitch=-45.394

Example of new geoadmin with old parameter: https://sys-map.dev.bgdi.ch/preview/feat-pb-100-manage-3d-parameters/index.html?lang=en&topic=ech&bgLayer=ch.swisstopo.pixelkarte-farbe&layers=ch.swisstopo.zeitreihen,ch.bfs.gebaeude_wohnungs_register,ch.bav.haltestellen-oev,ch.swisstopo.swisstlm3d-wanderwege,ch.swisstopo.swissnames3d&layers_visibility=false,false,false,true,false&layers_timestamp=18641231,,,,&layers_opacity=1,1,1,0.8,1&lon=10.14968&lat=45.51136&elevation=215370&heading=317.946&pitch=-45.394

Test link