feat: add GPX route rendering to trip map via leaflet-gpx
Adds leaflet-gpx@2.1.2 CDN script to map template, collects *.gpx media files from the trip page, and renders them as teal polylines beneath entry pins. Also fixes user/config/media.yaml to use the required types: key so Grav's Media class correctly discovers .gpx files. Map remains functional when no GPX files are present.
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
gpx:
|
||||
types:
|
||||
gpx:
|
||||
type: file
|
||||
extensions: ['gpx']
|
||||
mime: application/gpx+xml
|
||||
|
||||
Reference in New Issue
Block a user