Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
catmorales opened this issue Jan 23, 2023 · 3 comments
Open

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

catmorales opened this issue Jan 23, 2023 · 3 comments

Comments

@catmorales
Copy link
Collaborator

catmorales commented Jan 23, 2023

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):

  • OS: [e.g. iOS]
  • Browser tested on chrome and Mozilla Firefox
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@tdipisa
Copy link
Collaborator

tdipisa commented Jan 24, 2023

@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
Copy link
Collaborator Author

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
Copy link
Collaborator

tdipisa commented Jan 30, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants