2024-07-09 17:49:18 +02:00
---
title: Files and statistics
---
2025-05-19 23:35:56 +02:00
<script lang="ts">
2025-11-12 17:45:55 +01:00
import { ChartNoAxesColumn } from '@lucide/svelte';
2024-07-09 17:49:18 +02:00
import DocsNote from '$lib/components/docs/DocsNote.svelte';
2025-10-20 20:17:47 +02:00
import ElevationProfile from '$lib/components/elevation-profile/ElevationProfile.svelte';
2025-05-19 23:35:56 +02:00
import GPXStatistics from '$lib/components/GPXStatistics.svelte';
import { exampleGPXFile } from '$lib/assets/example';
import { writable } from 'svelte/store';
let gpxStatistics = writable(exampleGPXFile.getStatistics());
let slicedGPXStatistics = writable(undefined);
let additionalDatasets = writable(['speed', 'atemp']);
2025-10-22 19:05:20 +02:00
let elevationFill = writable(undefined);
2024-07-09 17:49:18 +02:00
</script>
# { title }
## File list
Once you have [opened](./menu/file) files, they will be shown as tabs in the file list located at the bottom of the map.
2024-07-10 15:09:52 +02:00
You can reorder them by dragging and dropping the tabs.
And when many files are open, you can scroll through the list of tabs to navigate between them.
2024-07-09 17:49:18 +02:00
2024-07-16 12:48:12 +02:00
<DocsNote>
2024-07-23 13:01:46 +02:00
2024-07-23 18:58:31 +02:00
When using a mouse, you need to hold <kbd>Shift</kbd> to scroll horizontally.
2024-07-23 13:01:46 +02:00
2024-07-16 12:48:12 +02:00
</DocsNote>
2024-07-09 17:49:18 +02:00
### File selection
2024-09-23 19:03:50 +02:00
By clicking on a tab, you can switch between the files to inspect their statistics, and apply [edit actions](./menu/edit) and [tools](./toolbar) to them.
2024-07-09 22:15:05 +02:00
By holding the <kbd>Ctrl/Cmd</kbd> key, you can add files to the selection or remove them, and by holding <kbd>Shift</kbd>, you can select a range of files.
2024-09-23 19:03:50 +02:00
Most of the [edit actions](./menu/edit) and [tools](./toolbar) can be applied to multiple files at once.
2024-07-09 17:49:18 +02:00
<DocsNote>
2024-07-23 13:01:46 +02:00
2024-07-23 19:02:14 +02:00
You can also navigate through the files using the arrow keys on your keyboard, and use <kbd>Shift</kbd> to add files to the selection.
2024-07-23 13:01:46 +02:00
2024-07-09 17:49:18 +02:00
</DocsNote>
### Edit actions
By right-clicking on a file tab, you can access the same actions as in the [edit menu](./menu/edit).
2024-12-28 15:52:29 +01:00
### Tree layout
2024-07-09 17:49:18 +02:00
2024-12-28 15:52:29 +01:00
As mentioned in the [view options section](./menu/view), you can switch to a tree layout for the files list.
This layout is ideal for managing a large number of open files, as it organizes them into a vertical list on the right side of the map.
2024-12-28 19:30:58 +01:00
In addition, the file tree view enables you to inspect the [tracks, segments, and points of interest](./gpx) contained inside the files through collapsible sections.
2024-07-09 17:49:18 +02:00
2024-09-23 19:03:50 +02:00
You can also apply [edit actions](./menu/edit) and [tools](./toolbar) to internal file items.
2024-07-09 17:49:18 +02:00
Furthermore, you can drag and drop the inner items to reorder them, or move them in the hierarchy or even to another file.
2024-07-18 19:10:34 +02:00
<DocsNote>
2024-07-23 13:01:46 +02:00
2024-07-23 19:02:14 +02:00
The size of the file list can be adjusted by dragging the separator between the map and the file list.
2024-07-23 13:01:46 +02:00
2024-07-18 19:10:34 +02:00
</DocsNote>
2024-07-09 17:49:18 +02:00
## Elevation profile and statistics
At the bottom of the interface, you can find the elevation profile and statistics for the current selection.
2024-07-18 19:10:34 +02:00
<DocsNote>
2024-07-23 13:01:46 +02:00
2024-07-23 19:02:14 +02:00
The size of the elevation profile can be adjusted by dragging the separator between the map and the elevation profile.
2024-07-23 13:01:46 +02:00
2024-07-18 19:10:34 +02:00
</DocsNote>
2024-07-09 17:49:18 +02:00
### Interactive statistics
When hovering over the elevation profile, a tooltip will show statistics at the cursor position.
2024-08-12 12:42:16 +02:00
2024-07-09 17:49:18 +02:00
To get the statistics for a specific section of the elevation profile, you can drag a selection rectangle on the profile.
Click on the profile to reset the selection.
2024-08-12 14:38:03 +02:00
You can also use the mouse wheel to zoom in and out on the elevation profile, and move left and right by dragging the profile while holding the <kbd>Shift</kbd> key.
2024-08-12 12:42:16 +02:00
2025-05-19 23:35:56 +02:00
<div class="h-48 w-full">
<ElevationProfile
{gpxStatistics}
{slicedGPXStatistics}
2025-10-22 19:05:20 +02:00
{additionalDatasets}
{elevationFill}
2025-05-19 23:35:56 +02:00
/>
</div>
<div class="flex flex-col items-center -mt-6">
<div class="h-10 w-fit">
<GPXStatistics
{gpxStatistics}
{slicedGPXStatistics}
panelSize={120}
orientation={'horizontal'}
/>
</div>
</div>
2024-07-09 17:49:18 +02:00
### Additional data
2024-10-03 18:14:01 +02:00
Using the <kbd><ChartNoAxesColumn size="16" class="inline-block" style="margin-bottom: 2px"/></kbd> button at the bottom-right of the elevation profile, you can optionally color the elevation profile by:
- **slope** information computed from the elevation data, or
- **surface** or **category** data coming from <a href="https://www.openstreetmap.org/" target="_blank">OpenStreetMap</a>'s <a href="https://wiki.openstreetmap.org/wiki/Key:surface" target="_blank">surface</a> and <a href="https://wiki.openstreetmap.org/wiki/Key:highway" target="_blank">highway</a> tags.
2024-07-10 17:49:41 +02:00
This is only available for files created with **gpx.studio**.
2024-07-09 17:49:18 +02:00
2024-10-03 18:14:01 +02:00
If your selection includes it, you can also visualize: **speed**, **heart rate**, **cadence**, **temperature** and **power** data on the elevation profile.