Difference between revisions of "Template:Show gpx"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
'''Usage:'''
 
'''Usage:'''
 
<pre>
 
<pre>
{{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx}}
+
{{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx|zoom=13}}
 
</pre>
 
</pre>
  
 
Parameters:
 
Parameters:
 
* gpx: URL to GPX file (required)
 
* gpx: URL to GPX file (required)
 +
* gpx: zoom (optional, default: 11)
  
 
'''Example:'''
 
'''Example:'''
Line 25: Line 26:
 
     marginheight="0"  
 
     marginheight="0"  
 
     marginwidth="0"  
 
     marginwidth="0"  
     src="https://gpx.bitplan.com/?gpx={{urlencode:{{{gpx|}}}}}&auth_token=39f40ac94615c72d709310ce">
+
     src="https://gpx.bitplan.com/?gpx={{urlencode:{{{gpx|}}}}}&auth_token=39f40ac94615c72d709310ce&zoom={{{zoom|11}}}">
 
</iframe>
 
</iframe>
 
}}
 
}}
  
 
</includeonly>
 
</includeonly>

Revision as of 10:20, 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}}

Parameters:

  • gpx: URL to GPX file (required)
  • gpx: zoom (optional, default: 11)

Example: