|There are many plugins available just to display a map in your WordPress blog. One of them is the WordPress OSM plugin (OpenStreetMap) which was published one year ago. Originally it was developed to display geotagged posts within a map in the Fotomobil project.
Several feedbacks made this plugin a general plugin which can be used just to display a map on your contact page or even use it in your travelblog with template tags in your wordpress theme – showing the map with the postlocation automatically.
After one year the version Version 0.9 has been released and up to now there are about 2.000 downloads of this plugin at the official WordPress plugin page. Most people choose this plugin since you do not need any registration (no API-key) and the map is under CC by SA license.
What’s new in WordPress OSM-plugin Version 0.9?
One year ago the first release was posted on OpenGeoData Blog which coverd only some main features. Meanwhile there has been many feedback. To get an overview about all features visit the plugin site. The latest plugin version has got these features:
- Display several GPX tracks with individual colours
- Templatetags to display a map with the geodata of the post or page
feedback: Bernhard Reiter
- Extented zoomlevel to 18
Display several GPX tracks with individual colours
Display several tracks with individual colours is usefull if you want to split your track. As sample you can see our China tour some years ago:
[osm_map width=“450″ height=“300″ zoom=“6″ Lat=“28″ Long=“102″ gpx_file_list=“http://www.hanblog.net/wp-content/uploads/osm_map/China_Airplane_01.gpx,http://www.hanblog.net/wp-content/uploads/osm_map/China_Bus_01.gpx,http://www.hanblog.net/wp-content/uploads/osm_map/China_Motorbike_01.gpx“ gpx_colour_list=“blue,green,red“]
from Chengdu to Lijiang by airplane (blue line in the map)
from Lijiang to Zhongdian by bus (green line in the map)
from Zhongdian to Benzilan by motorbike (red line in the map)
If you want to add a map in your post or page you simple have to write a „shortcode“ within your text. This is recognized by the OSM-plugin which is generating the map. The shortcode for this map looks like this:[*osm_map width=“450″ height=“300″ zoom=“6″ Lat=“28″ Long=“102″ gpx_file_list=“http://www.hanblog.net/wp-content/uploads/osm_map/China_Airplane_01.gpx,http://www.hanblog.net/wp-content/uploads/osm_map/China_Bus_01.gpx,http://www.hanblog.net/wp-content/uploads/osm_map/China_Motorbike_01.gpx“ gpx_colour_list=“blue,green,red“]
* the star is just to avoid another map.
These two arguments are new in Version 0.9 and they have been added in the sample:
every gpx-file has to be specified with a colour and the files have to be separated by „,“.
Important: Do not copy your GPX-files to the plugins/osm folder but into the upload folder!
Template Tags to be used in your WordPress Theme
If you want to use the OSM-plugin for a travelblog the new template tag is be usefull:
OSM_displayOpenStreetMap($a_widht, $a_hight, $a_zoom, $a_type)
Zoomlevel extented to 18
As Mapnik can be zoomed up to 18 the limit was extented.
Download the WordPress OSM plugin [en]
DemoPage of the WordPress OSM plugin [en]
WikiPage of the WordPress OSM plugin [en]
OpenStreetMap Blog [en]
OpenGeoData Blog [en]
Compare Google and OpenStreetMap[en]
GeoCaching in Korea with OpenStreetMap [kor]
Including StreetView by Ordnancy Survey at Micah Bunny [en]
Other map plugins for WordPress: WP Geo, GoogleMaps, GeoPress, SmartMap