@igo2/geo 21.0.0-next.54 → 21.0.0-next.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/igo2-geo.mjs
CHANGED
|
@@ -1708,6 +1708,15 @@ class OGCFilterService {
|
|
|
1708
1708
|
}
|
|
1709
1709
|
buildAdvancedOgcFilters(options, ogcFilterWriter) {
|
|
1710
1710
|
const { ogcFilters, fieldNameGeometry } = options;
|
|
1711
|
+
if (!ogcFilters.interfaceOgcFilters?.length && ogcFilters.filters) {
|
|
1712
|
+
// First load (ex: from a context): seed the interface sequence from the
|
|
1713
|
+
// configured filters instead of rebuilding them from an empty sequence,
|
|
1714
|
+
// which would wipe them out.
|
|
1715
|
+
ogcFilters.filters = ogcFilterWriter.checkIgoFiltersProperties(ogcFilters.filters, fieldNameGeometry, undefined, true);
|
|
1716
|
+
ogcFilters.interfaceOgcFilters =
|
|
1717
|
+
ogcFilterWriter.defineInterfaceFilterSequence(ogcFilters.filters, fieldNameGeometry);
|
|
1718
|
+
return ogcFilterWriter.buildFilter(ogcFilters.filters, undefined, undefined, undefined, options);
|
|
1719
|
+
}
|
|
1711
1720
|
const currentFilters = ogcFilters.interfaceOgcFilters ?? [];
|
|
1712
1721
|
// Build the sequence using writer
|
|
1713
1722
|
const newFilterSequence = ogcFilterWriter.defineInterfaceFilterSequence(currentFilters, fieldNameGeometry);
|