show hovered point on elevation profile

This commit is contained in:
vcoppe committed 2026-11-08 15:06:03 +01:00
1 parent b80fa7d942
commit 21e27a4416
15 files changed
+260 -106

No files matched your search

@@ -18,3 +18,9 @@ engine.statistics.subscribe(() => slicedStatistics.set(undefined));
/** The point of the elevation profile that the pointer is over, shown on the map. */
export const hoveredPoint: Writable<Coordinates | null> = writable(null);
/** The trackpoint of the selection that the pointer is over on the map, shown on the profile. */
export const hoveredTrackpoint: Writable<number | null> = writable(null);
// its index only makes sense for the selection it was found in
engine.statistics.subscribe(() => hoveredTrackpoint.set(null));