The grid (core) ยท console.warn
filter condition on column "{col}" uses op "...
Printed by The grid (core), prefixed [lattice], since 1.73.0.
Warnings reference › filter:operand:*:*
- Identifier
filter:operand:*:*- Raised by
- The grid (core)
- Since
- 1.73.0
What happened
filters.set() or state.apply() was handed a condition using an operator a column's type declares (a geometry column's spatial operators) with an operand the type cannot use. It is dropped from the filter set rather than installed as a filter that matches nothing while looking applied; the rest of a compound filter still applies.
The fix
withinBbox takes [minLon, minLat, maxLon, maxLat]; withinPolygon a Polygon or MultiPolygon; intersects any geometry or a box; withinDistance { lon, lat, metres }.
The smallest fix
grid.filters.set({ col: 'site', op: 'withinDistance', value: { lon: -0.1278, lat: 51.5074, metres: 5000 } });
Reference
Covered in full at the API reference.