Template:Trail Map: Difference between revisions
Jump to navigation
Jump to search
m test |
m test |
||
| Line 187: | Line 187: | ||
}} | }} | ||
[[GeoJson:{{#titleparts:{{#arrayprint:maintrail}}}}|GeoJson Page]]{{#ifexist:GeoJson:{{#titleparts:{{#arrayprint:maintrail}}}}| / [{{Create Profile Link|KML={{fullurl:GeoJson:{{#titleparts:{{#arrayprint:maintrail}}}}}}?action=raw|Title={{#arrayprint:maintrail}}}} Create Profile Chart] / [{{Create Map Link|KML={{fullurl:GeoJson:{{#titleparts:{{#arrayprint:maintrail}}}}}}?action=raw}} gpsvisualizer Map]}}{{#if:{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}}| / Legacy: [{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}} Download KML] / [[:File:{{#arrayprint:maintrail}}.kml|KML File Page]]}}<br /> | [[GeoJson:{{#titleparts:{{#arrayprint:maintrail}}}}|GeoJson Page]]{{#ifexist:GeoJson:{{#titleparts:{{#arrayprint:maintrail}}}}| / [{{Create Profile Link|KML={{fullurl:GeoJson:{{#titleparts:{{#arrayprint:maintrail}}}}}}?action=raw|Title={{#arrayprint:maintrail}}}} Create Profile Chart] / [{{Create Map Link|KML={{fullurl:GeoJson:{{#titleparts:{{#arrayprint:maintrail}}}}}}?action=raw}} gpsvisualizer Map]}}{{#if:{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}}| / Legacy: [{{filepath:{{#titleparts:{{#arrayprint:maintrail}}}}.kml}} Download KML] / [[:File:{{#arrayprint:maintrail}}.kml|KML File Page]]}}<br /> | ||
{{#arrayprint:GJpages}} | {{#arrayprint:GJpages}}<br /> | ||
{{#arrayprint:alltrailnames|{{!}}{{!}}}} | {{#arrayprint:alltrailnames|{{!}}{{!}}}}<br /> | ||
{{#ask: [[{{#arrayprint:alltrailnames|{{!}}{{!}}}}||Report:{{PAGENAME}}]] | {{#ask: [[{{#arrayprint:alltrailnames|{{!}}{{!}}}}||Report:{{PAGENAME}}]] | ||
| ?Has GeoJson Page | | ?Has GeoJson Page | ||
| pagetitle = hide | | pagetitle = hide | ||
}}</includeonly> | }}<br /></includeonly> | ||
Revision as of 11:19, 3 October 2026
This returns a map of the page's trail (or as set). This version uses/requires Leaflet for the maps and GeoJson for the trail routes.
It should be called in the following format:
{{Trail Map Leaflet|Main Trail={{PAGENAME}}|Other Trails=|Zoom=[any whole number to override zoom]}}
Parameter Main Trail is optional and will default to the pagename. Optionally, additional trails can be requested to have the GeoJson be shown by listing Trail page names separated by semicolons.
Future features could allow specifying map settings.
Edit the page to see the template text.