@provoly/dashboard 0.22.11 → 0.22.13
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.
|
@@ -1433,7 +1433,7 @@ class WidgetMapComponent extends DataWidgetComponent {
|
|
|
1433
1433
|
})
|
|
1434
1434
|
.flat()));
|
|
1435
1435
|
this.subscriptions.add(this.manifest$
|
|
1436
|
-
.pipe(map((manifest) => ((manifest.options ?? { layers: [] }).layers
|
|
1436
|
+
.pipe(map((manifest) => ((manifest.options ?? { layers: [] }).layers ?? []).filter((layer) => ['wms'].includes(layer.type)).map((layer) => layer.url)))
|
|
1437
1437
|
.subscribe((urls) => urls.forEach((url) => this.store.dispatch(DashboardActions.getCapability({ url })))));
|
|
1438
1438
|
this.wmsCapabilities$ = this.store.select(DashboardSelectors.capabilities);
|
|
1439
1439
|
this.options$ = combineLatest([
|
|
@@ -1634,7 +1634,7 @@ class WidgetMapComponent extends DataWidgetComponent {
|
|
|
1634
1634
|
.filter(
|
|
1635
1635
|
// @ts-ignore
|
|
1636
1636
|
(layer) => this.widgetMapLayerService.dontNeedIntensity.includes(layer.type) || !!layer.intensityAttribute)
|
|
1637
|
-
.map((layer, idx) => {
|
|
1637
|
+
.map((layer, idx, array) => {
|
|
1638
1638
|
const attributesForClass = Object.keys(resultSet.items)
|
|
1639
1639
|
.map((classId) => ({
|
|
1640
1640
|
classId,
|
|
@@ -1667,7 +1667,8 @@ class WidgetMapComponent extends DataWidgetComponent {
|
|
|
1667
1667
|
resultLayer.set('type', layer.type);
|
|
1668
1668
|
resultLayer.set('slide', layer.slide);
|
|
1669
1669
|
resultLayer.set('order', layer.order);
|
|
1670
|
-
|
|
1670
|
+
const maxLayerOrder = Math.max(...array.map((l) => l.order ?? 0));
|
|
1671
|
+
resultLayer.setZIndex((maxLayerOrder + 1) - (layer.order ?? idx));
|
|
1671
1672
|
if (layer.type === 'relation') {
|
|
1672
1673
|
hasRelationLayer = resultLayer;
|
|
1673
1674
|
}
|