-
Notifications
You must be signed in to change notification settings - Fork 11
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
PB-1121: compare slider support for COGtiffs #1122
PB-1121: compare slider support for COGtiffs #1122
Conversation
web-mapviewer Run #3858
Run Properties:
|
Project |
web-mapviewer
|
Branch Review |
fix-PB-1121-support-compare-slider-for-COGTIFFs
|
Run status |
Passed #3858
|
Run duration | 05m 13s |
Commit |
5779d5fa92: PB-1121: using pre compose event to handle COG slider
|
Committer | Martin Künzi |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
21
|
Skipped |
0
|
Passing |
212
|
View all changes introduced in this branch ↗︎ |
cc06929
to
087aec6
Compare
a99adc1
to
5e9770d
Compare
5e9770d
to
f96b7fc
Compare
If you load (import) https://data.geo.admin.ch/ch.swisstopo.rapidmapping/data/2024-012-MISOX/RM_2024_MISOX_DOPmosaic_25cm_20240628_RGB8BIT_LV95_COG.tif while the compare slider is active, the newly created layer isn't cut. |
Sure |
1041d06
to
cae50e8
Compare
Issue : COGTiffs are rendered as a webGL layer, which has a different graphical context than other OpenLayers layers. This causes the compare slider to not work on them. Fix : when we deal with a COGtiff layer, we instead use the webgl context tools to make the slice.
- refactored the slicing mechanism to reduce the number of event assignations - we clear the webGL context before rendering, to avoid artifacts - we set the id directly in the COGTIFF layer
- Issue : When importing through the menu, the watchers in the compare slider caught the layer on top being modified before the layer was added to the OpenLayers Map object itself - Fix : when importing through the menu, we now send a signal that we should force a compare slider update once the import is finished
Issue : When importing or toggling visibility on WebGL layers, the layerconfig was updated before the map, and the new layer would not have the prerender and postrender events set. Fix : OpenLayers Map fire precompose events when webGL layers are involved. This allows us to add a precompose event on the map to add the prerender events just before the first rendering is supposed to happen.
5fea931
to
5779d5f
Compare
Issue : COGTiffs are rendered as a webGL layer, which has a different graphical context than other OpenLayers layers. This causes the compare slider to not work on them.
Fix : when we deal with a COGtiff layer, we instead use the webgl context tools to make the slice.
Test link