refresh markers on style load

This commit is contained in:
vcoppe
2026-03-27 19:21:25 +01:00
parent c1dbd984e6
commit f3d18f09a0

View File

@@ -31,7 +31,7 @@ export class StartEndMarkers {
unsubscribes: (() => void)[] = [];
constructor() {
map.onLoad(() => this.update());
map.onLoad((map_) => map_.on('style.load', this.updateBinded));
this.unsubscribes.push(gpxStatistics.subscribe(this.updateBinded));
this.unsubscribes.push(slicedGPXStatistics.subscribe(this.updateBinded));
this.unsubscribes.push(hoveredPoint.subscribe(this.updateBinded));