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
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
coloris 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
;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.
[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"