Thanks to these changes, supplemental layers can be managed through the "Layer Manager" widget, together with the other layers. Therefore, once they have been added to the map, they can be shown/hidden through checkboxes and they can be moved towards the top or bottom of the stack of layers.
Thanks to these changes, supplemental layers can be managed through the "Layer Manager" widget, together with the other layers. Therefore, once they have been added to the map, they can be shown/hidden through checkboxes and they can be moved towards the top or bottom of the stack of layers.
Fixes https://github.com/gem/oq-platform/issues/567 Fixes https://github.com/gem/oq-platform/issues/525 (the solution is still sub-optimal, but it is probably acceptable as it is)
Before this PR, supplemental layers were managed outside the hrde app, although they were used only by hrde. So I moved the corresponding code inside.
Tests are running: https://ci.openquake.org/job/zdevel_oq-platform/247/