Skip to content

Commit

Permalink
Wfnews 1930 (#1813)
Browse files Browse the repository at this point in the history
* view full map in dashboard
  • Loading branch information
yzlucas authored Apr 19, 2024
1 parent cb7bc38 commit 0f53807
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
<img height="17" width="17" src="/assets/images/svg-icons/under-control.svg" alt="Under Control" class="icon"><span class="checkbox-label">Under Control</span>
</div>
</div>
<div (click)="showViewMapButton = !showViewMapButton" (mouseenter)="showViewMapButton = true" (mouseleave)="showViewMapButton = false" id="dashboard-map" class="dashboard-map-container">
<div (click)="toggleMapView()" (mouseenter)="showViewMapButton = true" (mouseleave)="showViewMapButton = false" id="dashboard-map" class="dashboard-map-container">
<div class="map-overlay" *ngIf="showViewMapButton">
<a class="link" routerLink="../map">View Full Map</a>
<a class="link">View Full Map</a>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {
import * as L from 'leaflet';
import { AppConfigService } from '@wf1/core-ui';
import { HttpClient } from '@angular/common/http';
import { Router } from '@angular/router';
import { ResourcesRoutes } from '@app/utils';

@Component({
selector: 'overview-widget',
Expand All @@ -24,6 +26,7 @@ export class OverviewWidget implements OnInit, AfterViewInit {
private cdr: ChangeDetectorRef,
private httpClient: HttpClient,
private el: ElementRef,
private router: Router,
) {}

ngOnInit(): void {
Expand Down Expand Up @@ -165,4 +168,9 @@ export class OverviewWidget implements OnInit, AfterViewInit {
console.error('Feature data not loaded. No data found.');
}
}

toggleMapView(){
this.showViewMapButton = !this.showViewMapButton;
this.router.navigate([ResourcesRoutes.ACTIVEWILDFIREMAP]);
}
}

0 comments on commit 0f53807

Please sign in to comment.