geosolutions-it / MapStore2

The solution to create and share maps, dashboards, geostories with 3D support on the web. And it is open-source too!
https://mapstore.geosolutionsgroup.com/
Other
503 stars 388 forks source link

Normalize layers/groups management in TOC #10247

Open tdipisa opened 4 months ago

tdipisa commented 4 months ago

Description

To maintain retro-compatibility with old maps, as reported here in https://github.com/geosolutions-it/MapStore2/issues/10246, with the new TOC there are still a few inconsistent but not blocking behaviors due to how the 'default group' is managed.

Loading a Map in one of the following scenarios:

a logic should intervene to automatically update the TOC internal structure to definitely fix retro-compatibility issues.

What kind of improvement you want to add? (check one with "x", remove the others)

Other useful information

mahmoudadel54 commented 2 months ago

What I understood from the description, for some old maps, it is requested to handle the logic of adding layer without group in case not selecting any existing group on TOC before adding. is it correct ?

The current implemented code is Ok with any new created map based on this PR: https://github.com/geosolutions-it/MapStore2/pull/10278, right ?