Customize a gpx with its shortcode

You can customize the gpx by changing its attributes and its content.

Example

[lfh-gpx src=url_to.gpx title="My trail" color=blue button=false]Beautiful place[/lfh-gpx]

The content

The content is all is written between the tags [lfh-gpx] and [/lfh-gpx].
You can add html with image, list or link in the content. It's placed in the description section.

All the attributes

  1. url
  2. title
  3. color
  4. width
  5. button
  6. unit
  7. unit_h
  8. step_min

url

  • value : must have the same domain than your website
  • required: yes

title

  • value : must be text
  • required: no

color

  • possible values : must be one of this colors or any other hexadecimal color:
    •   red
    •   blue
    •   purple
    •   orange
    •   darkred
    •   darkblue
    •   darkgreen
    • black
  • required: no
  • default: blue

width

  • value : integer between 1 and 10
  • required: no
  • default: 5

button

Use it to display or hide the download button.

  • value : false or true
  • required: no
  • default: depends of plugin configuration

unit

Distance unit use for profile elevation.

  • value : km or mi
  • required: no
  • default: depends of plugin configuration

unit_h

Altitude unit use for profile elevation.

  • value : m or ft
  • required: no
  • default: depends of plugin configuration

step_min

Step of 50 meters on profile elevation

Step minimum (in meters) on elevation axis.

  • value : integer between 10 and 500
  • required: no
  • default: depends of plugin configuration
This entry was posted in Tutorials. Bookmark the permalink.