Canadian-Geospatial-Platform/geoview

[BUG] Data-Table filter on field name with /

Opened this issue · 0 comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When we have field name with /, there is a bug with filtering

geoview-renderer.ts:594 Uncaught Error: Invalid vector layer filter (/ operator error).
    at featureIsNotVisible (geoview-renderer.ts:594:11)
    at String.processSimplePoint (geoview-renderer.ts:801:9)
    at getAndCreateFeatureStyle (geoview-renderer.ts:1548:45)
    at Function.calculateStyleForFeature (abstr

Expected Behavior

We should manage field with / in name

Steps To Reproduce

  1. https://canadian-geospatial-platform.github.io/geoview/public/demos-navigator.html?config=./configs/navigator/23-csv.json
  2. Select Data Table then click on NPRI .... layer
  3. Apply filter on first column
  4. See error

Anything else?

No response