Bild "misc:de.png" Bild "misc:gb.png"

GPX Viewer for FlatPress

This plugin adds Jürgen Berkemeier's free JavaScript library GPX Viewer to FlatPress.
It adds a BBCode tag "gpx" to include your uploaded GPX file into your blog entry or static page.

Important: The GPX Viewer library is free for non-commercial use. If you want to use it in a commercial environment, please contact its author.

Download: GPX Viewer for FlatPress (769.11 KB)


Upload a GPX file to your FlatPress instance. Then simply insert into your static page or blog entry:


The plugin's output consists of two parts: The map itself and a height profile plot.
The map is displayed as <div class="gpxmap">, the height profile plot as <div class="gpxheightprofile">.
Those two are packed together in a <div class="gpx">.
<div class="gpx">
    <div class="gpxmap"></div>
    <div class="gpxheightprofile"></div>

You find the default CSS defintions for these classes in res/gpxplugin.css.


The GPX Viewer library allows to change appearance of the map and height profile (such as colors and other behaviour) via JavaScript control variables.
The file res/costumsettings.js contains a few of them to start with; you find them all on the GPX Viewer documentation page.


GPX Viewer library by Jürgen Berkemeier: CC BY-NC-SA 4.0. If you want to use it for commercial purposes, please contact the author.
GPX Viewer uses the Leaflet API by Vladimir Agafonkin, which is licensed under BSD 2-Clause "Simplified" License.
The GPX data is shown on OpenStreetMap map material, licensed under ODbL.
The FlatPress plugin code around all this by Arvid Zimmermann is licensed under GPLv3.


2020-12-19: Version 1.0.1

  • Updated GPX Viewer library to version 6.10.1.
  • Bugfix: initializePluginTags() has to be public static.
  • Bugfix: Track was displayed with unwanted offset.
  • CSS: A little more spacing between map and height profile in the GPX plugin.

2020-11-01: Version 1.0

  • Initial plugin version.

About this website

Bild "Start:arvid.jpg"
Arvid Zimmermann, from Germany, doing computer stuff. More...



Issue 09/2019 of linuxUSER discusses FlatPress extensively.
Bild "linuxuser-logo.jpg"

Mix2Stix was shipped and reviewed with c't 14/2011.
Bild "Mix2Stix:ct-logo.jpg"

PC Praxis put Mix2Stix in no. 06/2008 into the "Top of the tools". Quote: "Good software can be so simple!"
Bild "Mix2Stix:pcpraxis-logo.gif"