No description
- Python 52.4%
- JavaScript 33.4%
- CSS 7.1%
- HTML 7.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| css | ||
| data | ||
| js | ||
| tests | ||
| .gitignore | ||
| AGENTS.md | ||
| build.py | ||
| build_hikes.py | ||
| favicon.svg | ||
| index.html | ||
| logo.png | ||
| README.md | ||
| Taskfile.yml | ||
Forty Fells by Forty - Hiking Map
An interactive web application that displays recorded hikes on an OpenStreetMap-based map with topographical data. Hiking routes are shown as colored lines where colors represent elevation.
Features
- Interactive map showing hiking routes with elevation-based coloring
- Detailed information drawer for each hike that appears when clicking on routes
- Elevation profile charts for each hike
- Responsive design that works on desktop and mobile devices
- Lightweight implementation using plain HTML, CSS and JavaScript
Technologies Used
- HTML5, CSS3, and JavaScript
- Leaflet.js for the interactive map
- OpenStreetMap and OpenTopoMap for base map tiles
- Chart.js for elevation profile visualization
How to Use
- Install Task and uv, then run
task servefrom the repository root. On systems that package Task asgo-task, usego-task serve. - Open
http://localhost:8000to see the recorded hikes. - Click on any route to see detailed information about the hike
- The information drawer will show distance, duration, elevation gain, and an elevation profile chart
Data Structure
The application uses a simple data structure for hikes, where each hike has:
- Name and description
- GPS coordinates with elevation data
- Distance, duration, and elevation metadata
Customizing the Application
-
Add a GPX track to
data/, for exampledata/my-hike.gpx. -
To supply a description or override the recording date, add a JSON file with the same base name, such as
data/my-hike.json. Both fields are optional.{ "description": "An afternoon walk up the fell.", "date": "2026-09-24" } -
Run
task buildto regeneratejs/data.jsand the static site indist/, or restarttask serveto rebuild and preview your changes.