@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.
- package/lib/ngw-leaflet.esm-browser.js +10 -6
- package/lib/ngw-leaflet.esm-browser.js.map +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js.map +1 -1
- package/lib/ngw-leaflet.esm-bundler.js +1 -1
- package/lib/ngw-leaflet.global.js +10 -6
- package/lib/ngw-leaflet.global.js.map +1 -1
- package/lib/ngw-leaflet.global.prod.js +1 -1
- package/lib/ngw-leaflet.global.prod.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-leaflet; version: 1.11.
|
|
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
|
-
|
|
19402
|
-
|
|
19403
|
-
|
|
19404
|
-
|
|
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
|
}
|