Skip to content

Commit

Permalink
WIP Coordinated Highlights for Displacement
Browse files Browse the repository at this point in the history
  • Loading branch information
artisticlight committed Dec 11, 2024
1 parent 56498e1 commit f807b6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/app/components/map/map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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())
})
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</div>
</div>

<div #tsChartWrapper class="chart-wrapper" (resized)="onResized()" style="display: initial;">
<div #tsChartWrapper class="chart-wrapper" (resized)="onResized()">
<div #timeseriesChart id="timeseriesChart" [contextMenuTriggerFor]="menu" [contextMenuTriggerData]="{'tooltipData': hoveredData}">
</div>
<app-timeseries-chart-export class="ts-chart-export-button" [timeSeriesData]="exportableData"></app-timeseries-chart-export>
Expand Down

0 comments on commit f807b6a

Please sign in to comment.