@provoly/dashboard 1.3.19 → 1.3.21
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/esm2022/lib/core/model/widget-map-manifest.interface.mjs +1 -1
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +1 -1
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +2 -2
- package/esm2022/lib/dashboard/store/wms.service.mjs +7 -6
- package/esm2022/widgets/widget-map/component/widget-map-layer.service.mjs +2 -1
- package/esm2022/widgets/widget-map/interaction/tooltip-manager.class.mjs +3 -2
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +3 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +7 -6
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/model/widget-map-manifest.interface.d.ts +1 -0
- package/lib/dashboard/store/dashboard.actions.d.ts +2 -0
- package/lib/dashboard/store/wms.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -11902,8 +11902,8 @@ class WmsService {
|
|
|
11902
11902
|
getWmsFeatures(url) {
|
|
11903
11903
|
return this.httpClient.get(url).pipe(map((json) => json));
|
|
11904
11904
|
}
|
|
11905
|
-
getWfsFeatures(wmsUrl, bbox) {
|
|
11906
|
-
const url = wfsUrlBuilder(wmsUrl, bbox);
|
|
11905
|
+
getWfsFeatures(wmsUrl, bbox, geomPropName) {
|
|
11906
|
+
const url = wfsUrlBuilder(wmsUrl, bbox, geomPropName);
|
|
11907
11907
|
return this.httpClient.get(url).pipe(map((json) => json));
|
|
11908
11908
|
}
|
|
11909
11909
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WmsService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -11915,14 +11915,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImpor
|
|
|
11915
11915
|
providedIn: 'root'
|
|
11916
11916
|
}]
|
|
11917
11917
|
}], ctorParameters: () => [{ type: i1$2.HttpClient }] });
|
|
11918
|
-
const wfsUrlBuilder = (wmsUrl, bbox, params) => {
|
|
11918
|
+
const wfsUrlBuilder = (wmsUrl, bbox, geomPropName, params) => {
|
|
11919
11919
|
const wfsFragments = {
|
|
11920
11920
|
service: 'WFS',
|
|
11921
11921
|
version: '2.0.0',
|
|
11922
11922
|
request: 'GetFeature',
|
|
11923
11923
|
outputFormat: 'application/json',
|
|
11924
11924
|
typeNames: undefined,
|
|
11925
|
-
cql_filter: `BBOX(
|
|
11925
|
+
cql_filter: `BBOX(${geomPropName},${bbox.join(',')})`,
|
|
11926
11926
|
srsName: undefined,
|
|
11927
11927
|
params: params ? `&${params.join('&')}` : ''
|
|
11928
11928
|
};
|
|
@@ -11936,7 +11936,8 @@ const wfsUrlBuilder = (wmsUrl, bbox, params) => {
|
|
|
11936
11936
|
return (base +
|
|
11937
11937
|
'?' +
|
|
11938
11938
|
Object.entries(wfsFragments)
|
|
11939
|
-
.map(([key, value]) => (value ? `${key}=${value}` :
|
|
11939
|
+
.map(([key, value]) => (value ? `${key}=${value}` : undefined))
|
|
11940
|
+
.filter((val) => !!val)
|
|
11940
11941
|
.join('&'));
|
|
11941
11942
|
};
|
|
11942
11943
|
|
|
@@ -12366,7 +12367,7 @@ class DashboardEffects {
|
|
|
12366
12367
|
wmsJson.features[0].properties.countunique === 1) {
|
|
12367
12368
|
let envBBOXCoords = [...wmsJson.features[0].properties.envBBOX.matchAll(/\d+.\d+/g)].map((m) => m[0]);
|
|
12368
12369
|
return this.wmsService
|
|
12369
|
-
.getWfsFeatures(action.url, envBBOXCoords)
|
|
12370
|
+
.getWfsFeatures(action.url, envBBOXCoords, action.geomProName)
|
|
12370
12371
|
.pipe(map$1((wfsJson) => ({ action, json: wfsJson })));
|
|
12371
12372
|
}
|
|
12372
12373
|
// if data is not a stack just add features without calling wfs service
|