From 86e0b4870ae836b4559b767d6c971063c0b2c568 Mon Sep 17 00:00:00 2001 From: Adam Kariv Date: Wed, 22 Nov 2023 10:39:36 +0200 Subject: [PATCH] Fix style issue + use different map source --- projects/srm/src/app/map/map.component.ts | 2 +- .../srm/src/app/results-drawer/results-drawer.component.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/srm/src/app/map/map.component.ts b/projects/srm/src/app/map/map.component.ts index 4801c2f6..bac6a61f 100644 --- a/projects/srm/src/app/map/map.component.ts +++ b/projects/srm/src/app/map/map.component.ts @@ -597,7 +597,7 @@ export class MapComponent implements OnChanges, AfterViewInit, OnDestroy { const layerIndex = oldLayers.findIndex(l => l.id === layerId); const layerDef: any = oldLayers[layerIndex]; const before = oldLayers[layerIndex + 1] && oldLayers[layerIndex + 1].id; - layerDef['source-layer'] = accurate ? 'geo_data_staging' : 'geo_data_inaccurate_staging'; + layerDef['source-layer'] = accurate ? 'point_data_staging' : 'point_data_inaccurate_staging'; map.removeLayer(layerId); map.addLayer(layerDef, before); } diff --git a/projects/srm/src/app/results-drawer/results-drawer.component.html b/projects/srm/src/app/results-drawer/results-drawer.component.html index 4ac6dd15..ac91e1cb 100644 --- a/projects/srm/src/app/results-drawer/results-drawer.component.html +++ b/projects/srm/src/app/results-drawer/results-drawer.component.html @@ -1,7 +1,7 @@
+ [style.height]='layout.desktop ? null : calcedHeight + "px"'>