@nextgis/ngw-leaflet 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-leaflet; version: 1.11.9; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-leaflet; version: 1.11.10; author: NextGIS */
2
2
  import 'leaflet/dist/leaflet.css';
3
3
  import { Icon } from 'leaflet';
4
4
  import { NgwMap } from '@nextgis/ngw-map';
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-leaflet; version: 1.11.9; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-leaflet; version: 1.11.10; author: NextGIS */
2
2
  var NgwLeaflet = (function () {
3
3
  'use strict';
4
4
 
@@ -19397,12 +19397,16 @@ var NgwLeaflet = (function () {
19397
19397
  var filters = options.filters;
19398
19398
  if (filters) {
19399
19399
  return createFeatureFieldFilterQueries(__assign(__assign({}, options), { filters: filters })).then(function (data) {
19400
+ var _a;
19401
+ var clientFilterValidate = (_a = options.clientFilterValidate) !== null && _a !== void 0 ? _a : true;
19400
19402
  // Additional client-side filter check
19401
- data = data.filter(function (y) {
19402
- var fields = prepareNgwFieldsToPropertiesFilter(__assign({}, y.fields));
19403
- var result = propertiesFilter(fields, filters);
19404
- return result;
19405
- });
19403
+ if (clientFilterValidate) {
19404
+ data = data.filter(function (y) {
19405
+ var fields = prepareNgwFieldsToPropertiesFilter(__assign(__assign({}, y.fields), { id: y.id }));
19406
+ var result = propertiesFilter(fields, filters);
19407
+ return result;
19408
+ });
19409
+ }
19406
19410
  return data;
19407
19411
  });
19408
19412
  }