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 Editor plugin - selected Tile format is not set from configuration #10481

Open
1 task done
ale-cristofori opened this issue Jul 19, 2024 · 0 comments
Open
1 task done

Comments

@ale-cristofori
Copy link
Contributor

ale-cristofori commented Jul 19, 2024

Description

There are a few configuration for the services available in map widgets in the DashboardEditor plugin to create new dashboard and have some pre-selected settings by default. In case of WMS service Advanced settings the format setting in the localConfig.json should pre-select the format indicated in the configuration but this does not happen, the dropdown list is not pre-selected to the indicated format, it is empty.

How to reproduce

Create a new empty dashboard.
Select a map widget to include
In the map widget add any map (empty or existing does not matter)
proceed to include a layer on the map, clicking on the plus button
Go into the WMS services settings
Notice that the setting for the Tile format is not selected despite being set on the localConfig.json

Expected Result
in the format dropdown list the indicated format in locaConfig.json should be preselected.

Current Result
in the format dropdown list the pre-selected item is empty.

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

As initially assessed the issue is due to the default format format options cannot be sent from DashboardEditor. We need to modify the catalogEditorEnhancer to pass down formatOptions from config of selected service

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

No branches or pull requests

1 participant