@provoly/dashboard 0.14.4 → 0.14.5

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.
@@ -1090,13 +1090,11 @@ class WidgetMapComponent extends DataWidgetComponent {
1090
1090
  .map((layer) => layer);
1091
1091
  }));
1092
1092
  this.wmsCapabilities$ = combineLatest([
1093
- this.manifest$.pipe(map((manifest) => (manifest.options ?? { layers: [] }).layers?.filter((layer) => ['wms', 'geoserver'].includes(layer.type)))),
1093
+ this.manifest$.pipe(map((manifest) => (manifest.options ?? { layers: [] }).layers?.filter((layer) => ['wms'].includes(layer.type)))),
1094
1094
  this.geoServerLayerDescriptions$
1095
- ]).pipe(map(([wmsLayers, geoServerLayerDescriptions]) => wmsLayers.map((layer) => ({
1096
- ...layer,
1097
- // @ts-ignore
1098
- ...geoServerLayerDescriptions.find((layerDescr) => layerDescr.key === layer.key)
1099
- }))), distinctUntilChanged((p, c) => equal(p, c)), switchMap((wmsLayers) => combineLatest(wmsLayers.map((layer) => wmsService.getCapabilities(layer)))), startWith([]));
1095
+ ]).pipe(map(([wmsLayers, geoServerLayerDescriptions]) => {
1096
+ return [...wmsLayers, ...geoServerLayerDescriptions];
1097
+ }), distinctUntilChanged((p, c) => equal(p, c)), switchMap((wmsLayers) => combineLatest(wmsLayers.map((layer) => wmsService.getCapabilities(layer)))), startWith([]));
1100
1098
  this.options$ = combineLatest([
1101
1099
  this.manifest$,
1102
1100
  this.resultSet$,