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 @@ -