User Tools

Site Tools


res:plugins:gpxviewer

This is an old revision of the document!


Table of Contents

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.

Author: Arvid Zimmermann

Download

Usage

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

[gpx="attachs/file.gpx"]

HTML+CSS

The plugin's output consists of two parts: The map itself and a height profile plot. The map is displayed as

, the height profile plot as

. Those two are packed together in a

.

<div class="gpx">
    <div class="gpxmap"></div>
    <div class="gpxheightprofile"></div>
</div>

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

res/plugins/gpxviewer.1604229503.txt.gz · Last modified: 2020/11/01 12:18 by arvid

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki