@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.
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # NgwMap
2
2
 
3
- Abstract map for ngw
3
+ ![size](https://img.shields.io/bundlephobia/minzip/@nextgis/ngw-map) ![version](https://img.shields.io/npm/v/@nextgis/ngw-map)
4
+
5
+ Abstract Map for NGW
4
6
 
5
7
  This library is not intended for using directly in the browser.
6
8
 
@@ -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
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -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 events = {exports: {}};
3
3
 
4
4
  var R = typeof Reflect === 'object' ? Reflect : null;
@@ -4842,12 +4842,16 @@ function fetchNgwLayerItems(options) {
4842
4842
  ...options,
4843
4843
  filters,
4844
4844
  }).then((data) => {
4845
+ var _a;
4846
+ const clientFilterValidate = (_a = options.clientFilterValidate) !== null && _a !== void 0 ? _a : true;
4845
4847
  // Additional client-side filter check
4846
- data = data.filter((y) => {
4847
- const fields = prepareNgwFieldsToPropertiesFilter({ ...y.fields });
4848
- const result = propertiesFilter(fields, filters);
4849
- return result;
4850
- });
4848
+ if (clientFilterValidate) {
4849
+ data = data.filter((y) => {
4850
+ const fields = prepareNgwFieldsToPropertiesFilter({ ...y.fields, id: y.id });
4851
+ const result = propertiesFilter(fields, filters);
4852
+ return result;
4853
+ });
4854
+ }
4851
4855
  return data;
4852
4856
  });
4853
4857
  }