Skip to content

Commit

Permalink
Fix style issue + use different map source
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Nov 22, 2023
1 parent e85351f commit 86e0b48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/srm/src/app/map/map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class='map-window'
[class.gesture]='gesture'
[class.national]='state === DrawerState.National'
[style.height]='calcedHeight + "px"'>
[style.height]='layout.desktop ? null : calcedHeight + "px"'>
<app-area-search [areaSearchState]='areaSearchState' *ngIf='layout.desktop && state !== DrawerState.National'></app-area-search>
<ng-container *ngIf='nationalCount > 0'>
<a *ngIf='state === DrawerState.National' class='national-bg' [routerLink]='["."]' [queryParams]="{national: null}" [queryParamsHandling]='"merge"' [preserveFragment]="true" role='presentation' tabindex="-1">&nbsp;</a>
Expand Down

0 comments on commit 86e0b48

Please sign in to comment.