@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 +3 -1
- package/lib/ngw-map.cjs.js +1 -1
- package/lib/ngw-map.esm-browser.js +10 -6
- package/lib/ngw-map.esm-browser.js.map +1 -1
- package/lib/ngw-map.esm-browser.prod.js +1 -1
- package/lib/ngw-map.esm-browser.prod.js.map +1 -1
- package/lib/ngw-map.esm-bundler.js +1 -1
- package/lib/ngw-map.global.js +10 -6
- package/lib/ngw-map.global.js.map +1 -1
- package/lib/ngw-map.global.prod.js +1 -1
- package/lib/ngw-map.global.prod.js.map +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
package/lib/ngw-map.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-map; version: 1.11.
|
|
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
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
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
|
}
|