WordPress.org

Ready to get started?Download WordPress

Plugin Directory

OS OpenSpace Maps

A plugin to display UK Ordnance Survey maps with markers and tracks.

A plugin to display UK Ordnance Survey OpenSpace maps with markers and tracks.

This plugin works using the [osmap] shortcode anywhere in your post, page or custom post type content. It allows maps with markers and gpx or kml files to be shown. Examples are available at ButNoIdea.co.uk and my blog.

The following parameters can be passed:

  • height="xxx" sets the height of the map div
  • width="xxx" sets the width of the map div
  • colour="red" or colour="#ff0000" (color is also acceptable) sets the colour of the track shown from a file.
  • gpx="http://www.example.com/myfile.gpx" specifies a gpx file to be displayed
  • kml="http://www.example.com/myfile.kml" specifies a kml file to be displayed
  • markers="NY1234512345;Marker 1|54.454198,-3.211527;Marker 2" a list of positions and labels separated by | with a ; between the position and label. Positions can be 6, 8 or 10 figure grid references or decimal lat long.

To upload a kml or gpx file just use the WordPress media uploader and then copy the address of the uploaded file into the shortcode.

Examples

  • [osmap height="300" width="300" color="yellow" gpx="http://www.example.co.uk/myfile.gpx"] displays a 300px by 300px window containing a yellow track from the file specified.

  • [osmap markers="NY2000008000;Wasdale"]shows a default size and zoom window with a marker placed and the popup text "Wasdale"

Requires: 3.0 or higher
Compatible up to: 3.5.2
Last Updated: 2013-1-24
Downloads: 1,224

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1 100,1,1 100,2,2 100,2,2
100,2,2
100,1,1