Open RicardCots opened 2 months ago
I think that this is a "feature" of API SITNA. @silmeUsil0001 , can you confirm this?
This issue implies a reevaluation of the background concept in SITMUN... we should discuss it.
If we maintain the background concept in SITMUN as a set of multiple layers, there are three main scenarios to consider:
Describe the bug In SITMUN 2 a base map can be made up of one or more layers. In SITMUN 3, if a background map is configured with several layers, the viewer interprets it as different background maps instead of joining the different layers that form it into a single one.
Let us explain it with an example: If we want to define a background map formed by a WMTS orthophoto layer and a toponym layer on top of it, this can be done in SITMUN 2 but not in SITMUN 3. The SITMUN 3 viewer will interpret each layer (the ortophoto and the toponym) defined as part of the same a background map as a separate background map.
To Reproduce Steps to reproduce the behavior:
Expected behavior Every 'Capa de fons' (background map) defined and assigned to a SITMUN aplication is listed in the 'Capes de fons' Div in the SITMUN viewer.
If a background map is made up of multiple layers, the viewer displays a single background map which will be the sum of the different layers. IMPORTANT: The name displayed in the viewer for a 'Mapa de Fons' has to be the one configured in the Mapes de fons form, not the name of the layers.
Screenshots