@nextgis/ngw-map 1.11.9 → 1.11.10

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.
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-map; version: 1.11.9; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 1.11.10; author: NextGIS */
2
2
  import { EventEmitter } from 'events';
3
3
  import CancelablePromise from '@nextgis/cancelable-promise';
4
4
  import { deepmerge, deprecatedWarn, defined, isObject } from '@nextgis/utils';
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-map; version: 1.11.9; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 1.11.10; author: NextGIS */
2
2
  var NgwMap = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -5336,12 +5336,16 @@ var NgwMap = (function (exports) {
5336
5336
  var filters = options.filters;
5337
5337
  if (filters) {
5338
5338
  return createFeatureFieldFilterQueries(__assign(__assign({}, options), { filters: filters })).then(function (data) {
5339
+ var _a;
5340
+ var clientFilterValidate = (_a = options.clientFilterValidate) !== null && _a !== void 0 ? _a : true;
5339
5341
  // Additional client-side filter check
5340
- data = data.filter(function (y) {
5341
- var fields = prepareNgwFieldsToPropertiesFilter(__assign({}, y.fields));
5342
- var result = propertiesFilter(fields, filters);
5343
- return result;
5344
- });
5342
+ if (clientFilterValidate) {
5343
+ data = data.filter(function (y) {
5344
+ var fields = prepareNgwFieldsToPropertiesFilter(__assign(__assign({}, y.fields), { id: y.id }));
5345
+ var result = propertiesFilter(fields, filters);
5346
+ return result;
5347
+ });
5348
+ }
5345
5349
  return data;
5346
5350
  });
5347
5351
  }