Skip to content

PB-2224: Fix KMZ loading on 3D viewer#1571

Merged
pakb merged 2 commits intodevelopfrom
fix-PB-2224-kmz-load-on-3d-viewer
Feb 24, 2026
Merged

PB-2224: Fix KMZ loading on 3D viewer#1571
pakb merged 2 commits intodevelopfrom
fix-PB-2224-kmz-load-on-3d-viewer

Conversation

@pakb
Copy link
Contributor

@pakb pakb commented Feb 23, 2026

KMZ Parsing

Pass the KMZ "content" along when parsing providing an ArrayBuffer on the whole archive (not the underlying KML file only), so that the 3D viewer can pick it up and load the KMZ file correctly.

2D Viewer

In 2D, add warning message when we detect unsupported KML tags
OpenLayers has a limited support of KML/KMZ tags (in contrast to Cesium)
I've started detecting the missing ones coming through our helpdesk/user feedback and showing a warning to the user when one is found: a bit of expectation management never hurts.

Test link

@github-actions github-actions bot added the bug label Feb 23, 2026
@cypress
Copy link

cypress bot commented Feb 23, 2026

web-mapviewer    Run #6476

Run Properties:  status check passed Passed #6476  •  git commit 64918292ae: PB-2224: add warning message when we detect unsupported KML tags in 2D
Project web-mapviewer
Branch Review fix-PB-2224-kmz-load-on-3d-viewer
Run status status check passed Passed #6476
Run duration 06m 52s
Commit git commit 64918292ae: PB-2224: add warning message when we detect unsupported KML tags in 2D
Committer Pascal Barth
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 20
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 261
View all changes introduced in this branch ↗︎

@pakb pakb requested review from ltkum, schtibe and sommerfe February 23, 2026 14:33
@pakb pakb force-pushed the fix-PB-2224-kmz-load-on-3d-viewer branch from a1bbddd to 56f2da2 Compare February 23, 2026 14:50
Copy link
Contributor

@sommerfe sommerfe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, i can see KMZ files now in the 3D viewer. There might be a problem with the height of the elements being shown. Some part of the relief is being shown above the points. I can DM you the files so you can test as well.

Image

Also is there a reason, that these KMZ files do currently not work on the 2D viewer? If they work on 3D i would also expect them to work on 2D but i can not see anything

@pakb
Copy link
Contributor Author

pakb commented Feb 23, 2026

I can DM you the files so you can test as well.

Please do 👍

Also is there a reason, that these KMZ files do currently not work on the 2D viewer? If they work on 3D i would also expect them to work on 2D but i can not see anything

OpenLayers has a limited support for the KML spec, many tags aren't supported (hence the warning message I've added)
If you happen to know more tags that aren't supported with OL, please let me know

@pakb
Copy link
Contributor Author

pakb commented Feb 24, 2026

There might be a problem with the height of the elements being shown. Some part of the relief is being shown above the points. I can DM you the files so you can test as well.

As explained through DMs, we don't "clamp to ground" external KML/KMZ by default (to let people load flight path without ignoring the Z coordinate). This can be set through the layer's settings in the menu.

@pakb pakb requested a review from sommerfe February 24, 2026 07:42
pakb added 2 commits February 24, 2026 08:42
providing an ArrayBuffer on the whole archive (not the underlying KML file only), so that the 3D viewer can pick it up and load the KMZ file correctly.
OpenLayers has a limited support of KML/KMZ tags (in contrast to Cesium, see CesiumGS/cesium#873 )

I've started detecting the missing ones coming through our helpdesk/user feedback and showing a warning to the user when one is found: a bit of expectation management never hurts.
@pakb pakb force-pushed the fix-PB-2224-kmz-load-on-3d-viewer branch from 56f2da2 to 6491829 Compare February 24, 2026 07:42
@sommerfe
Copy link
Contributor

not sure if related, but the icons on the right are not visible anymore
Screenshot from 2026-02-24 09-04-58

@pakb
Copy link
Contributor Author

pakb commented Feb 24, 2026

not sure if related, but the icons on the right are not visible anymore

It's unrelated, it's the same on every test link. Maybe has to do with a bad ServiceWorker config in this regard.
I'll look into it if it pops up after merging on master and we still have that on productive-ready code (INT)

@pakb pakb merged commit dffe8b6 into develop Feb 24, 2026
6 checks passed
@pakb pakb deleted the fix-PB-2224-kmz-load-on-3d-viewer branch February 24, 2026 08:21
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