@provoly/dashboard 1.3.20 → 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.
@@ -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(geom,${bbox.join(',')})`,
11925
+ cql_filter: `BBOX(${geomPropName},${bbox.join(',')})`,
11926
11926
  srsName: undefined,
11927
11927
  params: params ? `&${params.join('&')}` : ''
11928
11928
  };
@@ -12367,7 +12367,7 @@ class DashboardEffects {
12367
12367
  wmsJson.features[0].properties.countunique === 1) {
12368
12368
  let envBBOXCoords = [...wmsJson.features[0].properties.envBBOX.matchAll(/\d+.\d+/g)].map((m) => m[0]);
12369
12369
  return this.wmsService
12370
- .getWfsFeatures(action.url, envBBOXCoords)
12370
+ .getWfsFeatures(action.url, envBBOXCoords, action.geomProName)
12371
12371
  .pipe(map$1((wfsJson) => ({ action, json: wfsJson })));
12372
12372
  }
12373
12373
  // if data is not a stack just add features without calling wfs service