Difference between revisions of "Template:Show gpx"
Jump to navigation
Jump to search
| (13 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
see e.g. https://www.gpsvisualizer.com/atlas/map?url=https://www.topografix.com/fells_loop.gpx | see e.g. https://www.gpsvisualizer.com/atlas/map?url=https://www.topografix.com/fells_loop.gpx | ||
| − | + | = Usage = | |
<pre> | <pre> | ||
| − | {{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx|zoom=13|viewer=gpsvisualizer}} | + | {{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx|zoom=13|viewer=gpsvisualizer|debug=true}} |
| + | {{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx|zoom=13|viewer=bitplan}} | ||
</pre> | </pre> | ||
| − | Parameters | + | == Parameters == |
* gpx: URL to GPX file (required, defaults to the value of Has_gpx if set) | * gpx: URL to GPX file (required, defaults to the value of Has_gpx if set) | ||
* zoom: Zoom level (optional, default: 11) | * zoom: Zoom level (optional, default: 11) | ||
* viewer: Which viewer to use: "gpsvisualizer" or "bitplan" (optional, default: bitplan) | * viewer: Which viewer to use: "gpsvisualizer" or "bitplan" (optional, default: bitplan) | ||
| + | * debug: Show debug links (optional, default: false) | ||
| − | + | = Examples = | |
| − | {{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx|zoom=13|viewer= | + | == gpsvisualizer.com == |
| + | {{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx|zoom=13|viewer=gpsvisualizer|debug=true}} | ||
| + | == gpx.bitplan.com == | ||
| + | {{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx|zoom=13|viewer=bitplan}} | ||
</noinclude> | </noinclude> | ||
| − | <includeonly> | + | <includeonly>{{#if:{{{debug|}}}|* [https://www.gpsvisualizer.com/atlas/map?url={{urlencode:{{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx}}}}}}} gpsvisualizer.com {{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx|link=none}}}}}] |
| − | * [https://www.gpsvisualizer.com/atlas/map?url={{urlencode:{{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx}}}}}}} | + | * [https://gpx.bitplan.com/?gpx={{urlencode:{{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx|link=none}}}}}}}&auth_token=39f40ac94615c72d709310ce gpx.bitplan.com {{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx|link=none}}}}}] |
| − | * [https://gpx.bitplan.com/?gpx={{urlencode:{{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx}}}}}}}&auth_token=39f40ac94615c72d709310ce gpx.bitplan.com {{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx}}}}}] | + | }}{{#ifeq:{{{viewer|bitplan}}}|gpsvisualizer |
| − | + | |{{#tag:html| | |
| − | {{#ifeq:{{{viewer|bitplan}}}|gpsvisualizer | ||
| − | |||
<iframe | <iframe | ||
width="800" | width="800" | ||
| Line 30: | Line 33: | ||
marginheight="0" | marginheight="0" | ||
marginwidth="0" | marginwidth="0" | ||
| − | src="https://www.gpsvisualizer.com/atlas/map?url={{urlencode:{{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx}}}}}}}&zoom={{{zoom|11}}}"> | + | src="https://www.gpsvisualizer.com/atlas/map?url={{urlencode:{{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx|link=none}}}}}}}&zoom={{{zoom|11}}}"> |
| − | </iframe> | + | </iframe>}} |
| − | }} | + | |{{#tag:html| |
| − | |||
<iframe | <iframe | ||
width="800" | width="800" | ||
| Line 41: | Line 43: | ||
marginheight="0" | marginheight="0" | ||
marginwidth="0" | marginwidth="0" | ||
| − | src="https://gpx.bitplan.com/?gpx={{urlencode:{{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx}}}}}}}&auth_token=39f40ac94615c72d709310ce&zoom={{{zoom|11}}}"> | + | src="https://gpx.bitplan.com/gpx/?gpx={{urlencode:{{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx|link=none}}}}}}}&auth_token=39f40ac94615c72d709310ce&zoom={{{zoom|11}}}"> |
| − | </iframe> | + | </iframe>}}}}</includeonly> |
| − | }} | ||
| − | }} | ||
| − | </includeonly> | ||
Latest revision as of 16:26, 1 February 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|debug=true}}
{{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx|zoom=13|viewer=bitplan}}
Parameters
- gpx: URL to GPX file (required, defaults to the value of Has_gpx if set)
- zoom: Zoom level (optional, default: 11)
- viewer: Which viewer to use: "gpsvisualizer" or "bitplan" (optional, default: bitplan)
- debug: Show debug links (optional, default: false)
Examples
gpsvisualizer.com
- gpsvisualizer.com https://www.topografix.com/fells_loop.gpx
- gpx.bitplan.com https://www.topografix.com/fells_loop.gpx
gpx.bitplan.com