Difference between revisions of "Template:Show gpx"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
Line 18: Line 18:
 
= Examples =
 
= Examples =
 
== gpsvisualizer.com ==
 
== gpsvisualizer.com ==
{{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=gpsvisualizer}}
 
== gpx.bitplan.com ==
 
== gpx.bitplan.com ==
{{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx|zoom=13|viewer=bitplan|debug=true}}
+
{{Show_gpx|gpx=https://www.topografix.com/fells_loop.gpx|zoom=13|viewer=bitplan}}
 
</noinclude>
 
</noinclude>
 
<includeonly>{{#if:{{{debug|}}}|* [https://www.gpsvisualizer.com/atlas/map?url={{urlencode:{{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx}}}}}}} gpsvisualizer.com {{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx}}}}}]
 
<includeonly>{{#if:{{{debug|}}}|* [https://www.gpsvisualizer.com/atlas/map?url={{urlencode:{{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx}}}}}}} gpsvisualizer.com {{{gpx|{{#show:{{FULLPAGENAME}}|?Has_gpx}}}}}]

Revision as of 11:04, 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}}
{{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

gpx.bitplan.com