mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-11-15 07:07:07 +00:00
show hovered point on elevation profile
This commit is contained in:
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));
|
||||
Reference in new issue
Block a user