Canadian-Geospatial-Platform / geoview

Canadian Geospatial Platform Viewer / Visualiseur de la Plateforme Géospatiale Canadienne
Other
22 stars 31 forks source link

[BUG] Layer filter management #2234

Open jolevesq opened 1 month ago

jolevesq commented 1 month ago

Is there an existing issue for this?

Current Behavior

At the moment there is no global management for layer filter and every component reset them in their own way. This is creating confusion.

Expected Behavior

We need a global management

For datatable this would be complicated to sync the filter with the one from other component. Plus UI synching may be hard and confuding for users. Because data table is closed when user switch tabs we should create the table with only the already filtered record instead of the whole table. So fiest getAllFEature info grabs everything and on each creation this is filtered from layer filter.

Steps To Reproduce

Layers panel filter vs Time slider panel filter

  1. https://canadian-geospatial-platform.github.io/geoview/public/demos-navigator.html?config=./configs/navigator/10-package-time-slider.json
  2. Go to time slider and apply filter
  3. Go to layer HFE then change classes visibility
  4. See layer filter is modified and thing are added to the map

Default layer filter vs data table filter

  1. https://canadian-geospatial-platform.github.io/geoview/public/demos-navigator.html?config=./configs/navigator/21-ogc-feature-api.json
  2. See there is 3 lakes on the map
  3. Go to Data Table and select it
  4. See more lake are on the map and default filter is removed

Anything else?

Related to: #2179 #2108 No response