GPX Viewer

描述

Displays a GPX track as segmented polylines, the way points and the elevation profile.
Open Street Map (OSM) is used as background which can be switched between a plane view and a topographic one.
The view can be changed to full screen mode. Moving the cursor over the elevation profile the corresponding point is marked on the path interactively.

GPX tracks uploaded to the server in advance are stored into separate repositories that are ordered according to the categories setup in wordpress.
Thus different collections of tracks can be handled and the tracks choosen from.

During upload a GPX track can be smoothed and/or its elevation data replaced by MapQuest Service data.
The latter is provided because many elevation data tracked by mobiles are not quite correct.

GPX trackpoints can be edited on the map interactively.

Features

  • Admin page GPX Files for uploading tracks
    – Selecting category for repository
    – Replacing the description of the track (tag <name> in the GPX file)
    – Smoothing tracks during upload, thus reducing track points
    – Replacing elevation data of track points using MapQuest Service during upload (key necessary)
  • Display of a specific, uploaded GPX track
    – PHP-function for inserting the view into a page
    – Selecting full screen mode and scaling the map
    – Switching between plane and topographic view
  • Editing trackpoints on the map
    – Adding, moving, deleting track points
    – creating, splitting polylines
  • Display of a list of GPX files from which a track can be selected
    – separated list for each category
    – Setting width and color of the path
    – Shortcode for inserting the list into a page
  • Elevation profile
    – Interactive path marker
    – Name of the track
    – Distance of the track
    – Maximum/minimum elevation
    – Elevation loss/gain
    – Trail duration

螢幕截圖

  • Track selected from a file list
  • Editing trackpoints

安裝

Installation and Settings:

  1. Upload the plugin files to the /wp-content/plugins/<my-plugin-name> directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the Plugins screen in WordPress
  3. Use the Settings->GPX Viewer screen to configure the plugin at least one time (MapQuest Key, Measure Units, …)

Uploading GPX files:

  • Goto GPX Files in the admin menu
  • Choose category for repository: Uploaded file will be stored in directory ~/wp-content/uploads/gpx/<mycategory>/.
  • Choose GPX file to upload
  • Optionally replace description of track (tag <name> in the GPX file)
  • Optionally smooth track during upload, i.e. reducing track points and smoothing elevation data
  • Optionally replace elevation data using MapQuest Service

Basic usage:

  • Calling the viewer for a specific GPX track:

    <?php 
        echo gpx_view(array('src'  => $filepath                $filepath = <absolute path>/wp-content/uploads/gpx/<mycategory>/<file>.gpx 
                        [, 'title' => $track_name]
                        [, 'color' => $track_color]
                        [, 'width' => $track_width] ));
    ?>
    
  • Shortcode to include the list of the GPX files for a given category into a WordPress-page. From this list a track can be selected and displayed.

    [gpx-view category="<mycategory>"]
    
  • Shortcode to open a gpx track locally for editing. The result can be stored again locally.

    [gpx-view]
    

評價

2021年1月22日
Perhaps interesting plugins. Unfortunetely, just one map type. I would like to use it with open Topo Map for trekking. Possible to Improve it ? Thanks a lot.
閱讀全部2個評價

貢獻者及開發者

“GPX Viewer” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

GPX Viewer 外掛目前已有 3 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 GPX Viewer 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0.1

  • Added: Scrollbar for gpx file list

1.0.2

  • Handling of missing fields improved

1.0.3

  • Update problem solved

1.0.7

  • Keeping given gpx attributes and extension elements

2.0.0

  • Editable trackpoints
  • Handling of GPX segments as separated polylines
  • Full screen mode using the whole screen

2.1.0

  • Editing trackpoints of locally opened gpx files

2.1.1

  • corrections for editing trackpoints of locally opened gpx files
  • correction of missing return value in shortcode function

2.1.2

  • scalebar added to maps

2.1.3

  • In shortcode procedure the function for searching category terms corrected

2.1.4

  • Topographic map view added

2.1.5

  • Error correction: Edited gpx tracks couldn’t be updated or stored

2.1.6

  • Error correction: Error when displaying categories in admin screen

2.1.7

  • Error correction: Error when displaying categories in admin and edit screen

2.1.8

  • Code review

2.1.9

  • Enhanced trackpoint reduction for decending slopes

2.1.10

  • Working search function for track list