refresh markers on style load

This commit is contained in:
vcoppe committed 2026-03-27 19:21:25 +01:00
1 parent c1dbd984e6
commit f3d18f09a0
1 file changed
+1 -1
@@ -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));