Difference between revisions of "Template:Show gpx"
Jump to navigation
Jump to search
| Line 6: | Line 6: | ||
'''Usage:''' | '''Usage:''' | ||
<pre> | <pre> | ||
| − | {{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx|zoom=13}} | + | {{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx|zoom=13|viewer=gpsvisualizer}} |
</pre> | </pre> | ||
Parameters: | Parameters: | ||
* gpx: URL to GPX file (required) | * gpx: URL to GPX file (required) | ||
| − | * | + | * zoom: Zoom level (optional, default: 11) |
| + | * viewer: Which viewer to use: "gpsvisualizer" or "bitplan" (optional, default: bitplan) | ||
'''Example:''' | '''Example:''' | ||
| − | {{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx}} | + | {{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx|zoom=13|viewer=gpsvisualizer}} |
</noinclude> | </noinclude> | ||
| − | <includeonly>* [https://www.gpsvisualizer.com/atlas/map?url={{urlencode:{{{gpx|}}}}} gpxvisualizer.com {{{gpx|}}}] | + | <includeonly> |
| − | *[https://gpx.bitplan.com/?gpx={{{gpx|}}}&auth_token=39f40ac94615c72d709310ce gpx.bitplan.com {{{gpx|}}}] | + | * [https://www.gpsvisualizer.com/atlas/map?url={{urlencode:{{{gpx|}}}}} gpxvisualizer.com {{{gpx|}}}] |
| − | {{#tag:html| | + | * [https://gpx.bitplan.com/?gpx={{{gpx|}}}&auth_token=39f40ac94615c72d709310ce gpx.bitplan.com {{{gpx|}}}] |
| + | |||
| + | {{#ifeq:{{{viewer|bitplan}}}|gpsvisualizer | ||
| + | |{{#tag:html| | ||
| + | <iframe | ||
| + | width="800" | ||
| + | height="500" | ||
| + | frameborder="0" | ||
| + | scrolling="no" | ||
| + | marginheight="0" | ||
| + | marginwidth="0" | ||
| + | src="https://www.gpsvisualizer.com/atlas/map?url={{urlencode:{{{gpx|}}}}}&zoom={{{zoom|11}}}"> | ||
| + | </iframe> | ||
| + | }} | ||
| + | |{{#tag:html| | ||
<iframe | <iframe | ||
width="800" | width="800" | ||
| Line 29: | Line 44: | ||
</iframe> | </iframe> | ||
}} | }} | ||
| − | + | }} | |
</includeonly> | </includeonly> | ||
Revision as of 10:24, 18 January 2025
This template embeds a GPX track viewer.
see e.g. https://www.gpsvisualizer.com/atlas/map?url=https://www.topografix.com/fells_loop.gpx
Usage:
{{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx|zoom=13|viewer=gpsvisualizer}}
Parameters:
- gpx: URL to GPX file (required)
- zoom: Zoom level (optional, default: 11)
- viewer: Which viewer to use: "gpsvisualizer" or "bitplan" (optional, default: bitplan)
Example:
- gpxvisualizer.com https://www.topografix.com/fells_loop.gpx
- gpx.bitplan.com https://www.topografix.com/fells_loop.gpx