@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
  function styleInject(css, ref) {
3
3
  if ( ref === void 0 ) ref = {};
4
4
  var insertAt = ref.insertAt;
@@ -18867,12 +18867,16 @@ function fetchNgwLayerItems(options) {
18867
18867
  ...options,
18868
18868
  filters,
18869
18869
  }).then((data) => {
18870
+ var _a;
18871
+ const clientFilterValidate = (_a = options.clientFilterValidate) !== null && _a !== void 0 ? _a : true;
18870
18872
  // Additional client-side filter check
18871
- data = data.filter((y) => {
18872
- const fields = prepareNgwFieldsToPropertiesFilter({ ...y.fields });
18873
- const result = propertiesFilter(fields, filters);
18874
- return result;
18875
- });
18873
+ if (clientFilterValidate) {
18874
+ data = data.filter((y) => {
18875
+ const fields = prepareNgwFieldsToPropertiesFilter({ ...y.fields, id: y.id });
18876
+ const result = propertiesFilter(fields, filters);
18877
+ return result;
18878
+ });
18879
+ }
18876
18880
  return data;
18877
18881
  });
18878
18882
  }