@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
|
@@ -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
|
import { EventEmitter } from 'events';
|
|
3
3
|
import CancelablePromise from '@nextgis/cancelable-promise';
|
|
4
4
|
import { deepmerge, deprecatedWarn, defined, isObject } from '@nextgis/utils';
|
package/lib/ngw-map.global.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 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
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
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
|
}
|