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
515 stars 402 forks source link

Enhancing MapViews Layer Options #10633

Open tdipisa opened 3 weeks ago

tdipisa commented 3 weeks ago

Description

The MapViews tool has a couple of limitations that make it difficult to use with complex maps with specific needs. When a user adds a Map View, the visibility of the layers will be kept in sync with the visibility of the layers in the TOC; when a layer is activated in the TOC, the change is also applied to the Map View. It is possible to partially or completely disconnect the visibility of the layer in a Map View by toggling the visibility of the layer in the Layer Options settings of the Map View. After this action, a reset symbol appears.

This means that when you want to completely unlink the visibility of TOC layers from the visibility of Map View layers , you need to toggle all layers individually in the Layer Options settings of the Map View. For maps with a limited number of layers, this is not a big problem, but this is a big limitation in the user experience for complex maps with many layers (maybe also with similar names) in different groups.

In order to address the above, this task should include following basic actions:

In addition, due to the above, clipping options for both Terrain and 3D Tiles layers should be differently handled moving them to Globe settings or enhancing the TOC component respectively.

As for the unlink logic, the header should include the following components:

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

### Tasks
- [ ] Refactor of Layer Settings UI using the TOC components and review the merge workflow
- [ ] Persist the support for clipping for Terrain layer
- [ ] Persist the support for clipping for 3D Tiles layers
- [ ] Include a TOC header in Layer Options with filter and toolbar

Other useful information