@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
|
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
|
-
|
|
18872
|
-
|
|
18873
|
-
|
|
18874
|
-
|
|
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
|
}
|