From f807b6ada9c053385f1018bd0622af2acb39ce93 Mon Sep 17 00:00:00 2001 From: Andrew Anderson Date: Wed, 11 Dec 2024 11:24:33 -0800 Subject: [PATCH] WIP Coordinated Highlights for Displacement --- src/app/components/map/map.component.ts | 6 ++++-- .../timeseries-chart/timeseries-chart.component.html | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/components/map/map.component.ts b/src/app/components/map/map.component.ts index c9e2d8f75..dfd72bbe8 100644 --- a/src/app/components/map/map.component.ts +++ b/src/app/components/map/map.component.ts @@ -246,18 +246,20 @@ export class MapComponent implements OnInit, OnDestroy { this.subs.add( this.mapService.newSelectedDisplacement$.subscribe(point => { let format = new WKT(); - let wktRepresenation = format.writeGeometry(point); + let wktRepresentation = format.writeGeometry(point); let pointIndex = this.pointHistoryService.getHistory().findIndex((thing) => { if(thing.point === point) { console.log('map existing point:', point); + console.log('map existing wktRepresentation:', wktRepresentation); + this.store$.dispatch(new uiStore.SetActiveWkt(wktRepresentation)); return true } }) this.pointHistoryService.selectedPoint = pointIndex; console.log('map selected pointIndex:', pointIndex); - this.mapService.loadPolygonFrom(wktRepresenation.toString()) + this.mapService.loadPolygonFrom(wktRepresentation.toString()) }) ) diff --git a/src/app/components/timeseries-chart/timeseries-chart.component.html b/src/app/components/timeseries-chart/timeseries-chart.component.html index 0af1ba0d6..6d45dfe0d 100644 --- a/src/app/components/timeseries-chart/timeseries-chart.component.html +++ b/src/app/components/timeseries-chart/timeseries-chart.component.html @@ -32,7 +32,7 @@ -
+