georchestra / mapstore2-georchestra

geOrchestra newest viewer
Other
6 stars 23 forks source link

[Dashboard Changing the style of a map layer does not apply #590

Open catmorales opened 1 year ago

catmorales commented 1 year ago

Describe the bug In a dashboard with a widget "map", we want to change the style of a layer on the map using the parameters tool of the layer , but the style doesn't apply

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://portail-test.sig.rennesmetropole.fr/mapstore/#/home'
  2. Open 'Dashboard Test FC'
  3. Edit the widget Map "Localisation des panneaux"
  4. The current style in the map is a blue point
  5. Change the style using the layer tools on "Panneaux d'entrée-sortie d'agglomération sur Rennes Métropole" , to Panneau à contrôler (hors zone d'agglomération), the style does not apply.

Expected behavior Ability to change the style of a layer of the map widget

Screenshots Layer : https://portail-test.sig.rennesmetropole.fr/geoserver/trp_rout/v_panneau_agglo/wfs?service=WMS&version=1.3.0&request=GetCapabilities Style 1: https://portail-test.sig.rennesmetropole.fr/geoserver/trp_rout/v_panneau_agglo/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=v_panneau_agglo image

Style2: Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

tdipisa commented 1 year ago

@catmorales thank you for reporting. The style is not changing because the layer you mentioned has been added from the WFS service. The problem to fix here is that the style selector, that's the one for WMS layers, should not appear for a WFS layer and the vector style editor should be available instead. The problem is only affecting dashboards, in the map viewer it is working as expected. The support should be included for dashboard too.

catmorales commented 1 year ago

The style is not changing because the layer you mentioned has been added from the WFS service.

OK , sorry, I saw that this dashboard has been created badly

The problem to fix here is that the style selector, that's the one for WMS layers, should not appear for a WFS layer and the vector style editor should be available instead. The problem is only affecting dashboards, in the map viewer it is working as expected. The support should be included for dashboard too.

Yes I Agree. @tobia do you want I change the description in the first comment ?

tdipisa commented 1 year ago

@catmorales it is not necessary now, I think, since we have my comment above to clarify. Thank you