Generate static HTML pages with interactive Leaflet maps for GPX file collections
Project description
GPX Collection Viewer
A Python tool that generates beautiful static HTML pages with interactive Leaflet maps to visualize collections of GPX files. Perfect for organizing and sharing GPS tracks from hiking, cycling, running, or any GPS-recorded activities.
Features
- Interactive Maps: View GPX tracks and waypoints on beautiful interactive maps powered by Leaflet
- Collection Organization: Organize GPX files into collections using folder structure
- Multiple Map Layers: Support for Mapbox outdoor and satellite map layers (optional)
- Responsive Design: Mobile-friendly interface with collapsible sidebars
- Markdown Content: Add descriptions and content to collections using markdown files
- File Downloads: Direct download links for original GPX files
- Track Highlighting: Click on filenames to zoom and highlight specific tracks
- Overview Map: Master overview page showing all collection locations
Quick Start
-
Install dependencies:
pip install jinja2 markdown
-
Organize your GPX files:
input/ \x00\x00 hiking-trails/ \x00\x00 trail1.gpx \x00\x00 trail2.gpx \x00\x00 index.md (optional description) \x00\x00 cycling-routes/ \x00\x00 route1.gpx \x00\x00 route2.gpx \x00\x00 running-tracks/ \x00\x00 morning-run.gpx -
Generate the static site:
python run.py input/ output/
-
Open the result: Open
output/index.htmlin your web browser
Usage
Basic Usage
python run.py INPUT_DIR OUTPUT_DIR
With Mapbox Tokens (Recommended)
For enhanced map layers, obtain Mapbox access tokens and use:
python run.py input/ output/ --mapbox_outdoor_token YOUR_TOKEN --mapbox_satellite_token YOUR_TOKEN
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gpxcollection-0.1.0.tar.gz.
File metadata
- Download URL: gpxcollection-0.1.0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.26
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2184e17f893bc6c8d494ccd81520cd7ffbe7409928fbe35e49ccfa6d595c1340
|
|
| MD5 |
fcb8ac6d1ec2bfcf6a1f24bf89696ff2
|
|
| BLAKE2b-256 |
969eb2a5c22b19e1b861580615726d7a20697c6ce4004e4a4cdfb40d96d12c16
|
File details
Details for the file gpxcollection-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gpxcollection-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.26
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13f8f1bbccb778597c7a6bbd6c47d3c76a1c51b575d8c18a3d0364a071399bd7
|
|
| MD5 |
0d29eb43526a8e46885757423358dda8
|
|
| BLAKE2b-256 |
71b6942347f1cc7c8c5ed7f464a552c40b5c95be8dac8de75292b57bcdd2249e
|