post a photo
about
home

Fotomobil.at

How to add your route
to OSM map manually

Demo
Preperation
Create GPX file with your geo data
Add route/track to your map
Known Limitations / planned featuresIf it doesn’t work

- – - Demo – - -

- – - – - – - – - – - – - – - – - – - Preperation - – - – - – - – - – - – - – - – - – -

1.) Follow the OSM plugin installation instructions to prepare your wordpress blog for adding a map with your track/route.

- – - – - – - – - – - – - – - – - – - Create GPX file with your geo data - – - – - – - – - – - – - – - – - – -

The easiest way to insert a route / track to your OSM map is to create a GPX file at this website. By clicking on a map you can download your personal gpx file and include this file into your blogs map.

If you want to create or modify your GPX file manually follow this chapter:

1.) Copy this gpx file to your local mashine.
2.) Open the file in a text-editor.
3.) Get the geo-data of your places here.
4.) Modify the geo data in the gpx-fil:

  <trkpt lat="37.566535" lon="126.9779692">
   <name>Seoul</name>
   <time>2009-05-16T00:00:00Z</time>
   <cmt> Start of the Track </cmt>
  </trkpt>

The name, time and cmt is optional, but to make the file readable you should use these fields, too.
5.) Upload the gpx-file to your OSM-plugin directory

- – - Add route/track to your map – - -

[*osm_map Lat="36.315" Long="128.01" gpx_file="http://www.YourDomain.at/wp-content/upload/sample.gpx"]

* <= remove the red star
Description to add a gpx-file:

  • osm_map: the shortcode to inform WP to print a osm-map
  • Lat / Long: set the center of the map
  • gpx_file: location of the (gpx_file="http://www.MyDomain.com/wp-content/upload/MyTrack.gpx")
  • gpx_colour: default: red

Additional optinal tags:

  • zoom: sample: zoom="3" (default 10)
  • width: sample: width="290" (default: 450)
  • height: sampel: height="120" (default: 300)

- – - – - – - – - If it doesn’t work – - – - – - – - – -

1.) The route is not shown in my map.
=> enter the URL you have given with “gpx_file” in your browser. If your gpx file is not shown, then the address is wrong.

- – - – - – - – - – - – - – - – - – - Form / Feedback - – - – - – - – - – - – - – - – - – -

- – - – - – - – - – - – - – - – - – - BACK to plugin page - – - – - – - – - – - – - – - – - – -

Share

Powered by faktor, based on free software, using OpenStreetMap data, included by WordPress OSM Plugin.