Canadian-Geospatial-Platform / geoview

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

[BUG] Default Filter vs Data-Table Filter #2179

Open jolevesq opened 5 months ago

jolevesq commented 5 months ago

Is there an existing issue for this?

Current Behavior

When we have a default filter apply to a layer on creation, if we open data table, the filter is not applied by default and features are shown without a warning for the user

"layerFilter": "name in ('Lake Victoria', 'Lake Superior', 'L. Erie', 'L. Ontario')"

Expected Behavior

If there a default filter, this filter should be applied to the data table on creation. The problem is default filter can be something like name IN but table will be name CONTAINS. The problem is the type of filter are different and cannot be translated tone to the other easily.

Steps To Reproduce

  1. Go to https://canadian-geospatial-platform.github.io/geoview/public/demos-navigator.html?config=./configs/navigator/21-ogc-feature-api.json
  2. See on the map there is no lake in Manitoba
  3. Click Data Table in footer tabs
  4. Lake appear in Manitoba

Anything else?

No response

jolevesq commented 5 months ago

Related to #2108, need #1929