Skip to content

PB-1494: use geoadmin style on legacy links#1290

Merged
ltkum merged 2 commits intodevelopfrom
fix-PB-1494-use-old-style-on-legacy-links
Apr 14, 2025
Merged

PB-1494: use geoadmin style on legacy links#1290
ltkum merged 2 commits intodevelopfrom
fix-PB-1494-use-old-style-on-legacy-links

Conversation

@ltkum
Copy link
Contributor

@ltkum ltkum commented Apr 8, 2025

Issue: When parsing a legacy link, KML layers would use the standard style. Those KMLs were most likely designed on the old viewer, where they were rendered with the geoadmin style. Users would like their KMLs to still have the same style as they used to.

Fix: When loading a legacy KML layer, we set its style to geoadmin.

Test link with a kml layer : TEST
same layer on geoadmin : CURRENT

Test link

@ltkum ltkum requested a review from schtibe April 8, 2025 14:28
@github-actions github-actions bot added the bug label Apr 8, 2025
@cypress
Copy link

cypress bot commented Apr 8, 2025

web-mapviewer    Run #5009

Run Properties:  status check passed Passed #5009  •  git commit 0073b6c1a7: Merge pull request #1290 from geoadmin/fix-PB-1494-use-old-style-on-legacy-links
Project web-mapviewer
Branch Review develop
Run status status check passed Passed #5009
Run duration 01m 39s
Commit git commit 0073b6c1a7: Merge pull request #1290 from geoadmin/fix-PB-1494-use-old-style-on-legacy-links
Committer Martin Künzi
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 1
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 48
View all changes introduced in this branch ↗︎

@pakb
Copy link
Contributor

pakb commented Apr 14, 2025

can you add a test somewhere in Cypress so that we cover that?

ltkum added 2 commits April 14, 2025 11:26
Issue: When parsing a legacy link, KML layers would use the standard style. Those
KMLs were most likely designed on the old viewer, where they were rendered with the
`geoadmin` style. Users would like their KMLs to still have the same style as they used to.

Fix: When loading a legacy KML layer, we set its style to geoadmin.
@ltkum ltkum force-pushed the fix-PB-1494-use-old-style-on-legacy-links branch from 488e34c to 4416859 Compare April 14, 2025 09:26
@ltkum ltkum merged commit 0073b6c into develop Apr 14, 2025
6 checks passed
@ltkum ltkum deleted the fix-PB-1494-use-old-style-on-legacy-links branch April 14, 2025 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants