No description
  • Python 52.4%
  • JavaScript 33.4%
  • CSS 7.1%
  • HTML 7.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-03 20:34:46 +00:00
css Logo click recentres map 2026-05-16 17:55:50 +01:00
data Add Raven Crag 2026-09-24 21:33:19 +01:00
js Build elevation profiles from recorded distances and heights 2026-12-03 20:25:55 +00:00
tests Consolidate hike tests and strengthen regression coverage 2026-12-03 20:31:59 +00:00
.gitignore Determine summits based on gpx tracks 2026-07-12 18:05:39 +01:00
AGENTS.md Rename repository guidance to AGENTS.md and correct build notes 2026-12-03 20:33:45 +00:00
build.py Fail the build before packaging incomplete hike data 2026-12-03 20:24:12 +00:00
build_hikes.py Build elevation profiles from recorded distances and heights 2026-12-03 20:25:55 +00:00
favicon.svg Add favicon 2025-06-03 17:50:31 +01:00
index.html Determine summits based on gpx tracks 2026-07-12 18:05:39 +01:00
logo.png Fix logo 2025-06-06 13:30:23 +01:00
README.md Document the local preview and GPX contribution workflow 2026-12-03 20:26:29 +00:00
Taskfile.yml Determine summits based on gpx tracks 2026-07-12 18:05:39 +01:00

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

  1. Install Task and uv, then run task serve from the repository root. On systems that package Task as go-task, use go-task serve.
  2. Open http://localhost:8000 to see the recorded hikes.
  3. Click on any route to see detailed information about the hike
  4. 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

  1. Add a GPX track to data/, for example data/my-hike.gpx.

  2. 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"
    }
    
  3. Run task build to regenerate js/data.js and the static site in dist/, or restart task serve to rebuild and preview your changes.