Wp-osm-plugin
The wordpress OSM plugin inserts maps (OpenStreetMap and Google Maps) and adds geo meta tags to posts / pages of WordPress blogs. You can add several maps within one post / page.
Contents |
Status
- released as version 1.1.0 @ jan 09th 2012
- released as version 1.0.0 @ nov 03th 2011
- released as version 0.9.6 @ may 07th 2011
- released as version 0.9.5 @ mar 10th 2011
- released as version 0.9.4 @ oct 28th 2010
- released as version 0.9.3 @ sept 19th 2010
- released as version 0.9.2 @ june 27th 2010
- released as version 0.9.1 @ may 24th 2010
- released as version 0.9 @ mar 29th 2010
- released as version 0.8.7 @ dec 24th 2009
- released as version 0.8.6 @ dec 7th 2009
- released as version 0.8.5 @ may 29th 2009
Wordpress Versions Supported
at least:
- WP-Version 2.5.1
tested on:
- WP-Version 3.3.1
- WP-Version 3.2.1
- WP-Version 3.1
- WP-Version 3.0.1
- WP-Version 3.0
- WP-Version 2.9.2
- WP-Version 2.9
- WP-Version 2.8.6
- WP-Version 2.8.5
- WP-Version 2.8
- WP-Version 2.7.1
- WP-Version 2.5.1
Install / Upgrade / Uninstall
Install
- copy the osm folder to your plugin folder
- activate the plugin at admins plugin page in your blog
- that's it!
Upgrade
Automatically upgrade
will delete all your personal files in the osm-folder (gpx, txt, icons, ...)
Only use this if you did not copy any files of your own the osm folder!
Manually upgrade
- deactivate the plugin
- Copy the new version via FTP client to the plugin folder of your blog (overwrite the old files)
- activate the plugin
Uninstall
- deactivate the plugin
- delete the osm-folder
Features
- insert an OSM map into posts and pages simply by using shortcodes within the text of your post / page
- visualize your route / track in the map by adding a (gpx and kml file)
- visualize html-popup-markers (POIS)
- visualize geocaches from gcStats plugin
- add geo meta tags to Wordpress posts and pages
- insert an OSM map with markers at all geo data of your wordpress posts
- visitor can add a marker by the comment field
Screenshots

WordPress OpenStreetMap Plugin

WordPress OpenStreetMap Plugin - mark all tagged posts in the map

WordPress OpenStreetMap Plugin - GPX-Track and overview map
Adding a map to your posts / pages
Simply place the shortcode [osm_map] within your thext, where the map should be displayed:
[osm_map Lat="36.5665" Long="126.9779"]
This will generate a map of Korea with standard zoom level and standard size.
Add a map with personal markers
Place the shortcode [osm_map] within your thext, where the map should be displayed and add the information about the textfile like:
[osm_map Lat="26.8828" Long="100.2255" marker_file="http://www.MyDomain.at/wp-content/uploads/MyMarkers.txt"]
Upload the textfile with "Media"=>"Add new" at your blog-Admin section and copy the Url (not in the OSM-plugin folder since all data within OSM-folder will be deleted at "automatically upgrade" of the OSM-plugin).
lat lon title description icon iconSize iconOffset 37.566535 126.9779692 Seoul Start capital of Korea. http://www.MyDomain.at/wp-content/uploads/MyIcon.png 20,20 0,-20 35.1795543 129.0756416 Busan End Harbour. http://www.MyDomain.at/wp-content/uploads/MyIcon.png 20,20 0,-20
Upload MyIcon.png with "Media"=>"Add new" and copy the Url.
Note: few free hosting service don't allow files with a .txt extension to be read (000webhost.com at least), as a workaround you can call the file with a .dat extension instead.
Add a map with personal routes and tracks
Place the shortcode [osm_map] within your thext, where the map should be displayed and add the information about the track like:
[osm_map Lat="26.8828" Long="100.2255" gpx_file="http://www.MyDomain.at/wp-content/uploads/sample.gpx"]
If you want to add multiple tracks within one map just use the gpx_file_list tag:
[osm_map Lat="26.8828" Long="100.2255" gpx_file_list="http://www.MyDomain.at/wp-content/uploads/sample01.gpx,http://www.MyDomain.at/wp-content/uploads/sample02.gpx,http://www.MyDomain.at/wp-content/uploads/sample03.gpx" gpx_colour_list="green,red,blue"]
The track-file should be stored in the upload folder! These formats are supported:
- GPX
- KML
If you do not have any GPS device, you can use a genereated / converted gpx-file or simply create it by your own:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <gpx version="1.0" creator="Turbo GPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/0" xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd"> <trk> <name>My Tour in Boulgaria</name> <number>1</number> <trkseg> <trkpt lat="42.6985" lon="23.3212"> <name>Sofia</name> <time>2009-05-16T00:00:00Z</time> <cmt> Start of the Track </cmt> </trkpt> <trkpt lat="42.2793" lon="23.1179"> <name>Dupnitsa</name> <time>2009-05-16T03:00:00Z</time> <cmt> Start of the Track </cmt> </trkpt> </trkseg> </trk> </gpx>
Add geo meta tags to Wordpress posts and pages
You can add geo meta tags to your posts by using the wordpress custom field when you edit your posts / pages. You can choose any name in your post, but it has to be unique to all posts of your blog. Set this name in the Osm seetings are. The format to add the geo data to the custom field is:
42.6985,23.3212
for Sofia. So like Lat,Long
Add a map showing all places there is a post on your blog with geo data
Place the shortcode [osm_map] within your text, where the map should be displayed and add the information about the textfile like:
[osm_map Lat="36.5665" Long="126.9779" import="osm"]
Arguments fot the [osm_map] Shortcode
general map info
- width...the width of the map [osm_map ... width="450"]
- height...the heigth of the map [osm_map ... height="600"]
- lat...center latitude address of the map [osm_map ... lat=23.6565]
- long...center long address of the map [osm_map ... long="32"]
- zoom...zoomlevel of the map [osm_map ... zoom="13"]
- type...which maptyp to include (Osmarender, Mapnik, CycleMap, GoogleStreet, GooglePhysical, GoogleSatellite, GoogleHybrid, All, AllOsm, AllGoogle, Ext) [osm_map ... type="All"] if it is set to all, LayerSchwith is enabled
- map_border...border around the the map [osm_map ... map_border="medium solid blue"]
adding a track / route
- gpx_file...absolute address of the gpx-file[osm_map ... gpx_file="http://www.Domain.com/blog/sample.gpx"]
- gpx_colour...colour of the gpx-route [osm_map ... gpx_colour="black"]
- gpx_file_list...absolute address of the gpx-files [osm_map ... gpx_file="http://www.Domain.com/blog/sample01.gpx,http://www.Domain.com/blog/sample02.gpx"]
- gpx_colour_list...colour of the gpx-routes [osm_map ... gpx_colour_list="black,green"]
- kml_file...absolute adress of the kml-file [osm_map ... kml_file="http://www.Domain.com/blog/sample.kml"]
- kml_colour...colour of the kml-file [osm_map ... kml_colour="black"]
sample: Adding gps logger data to map
adding a single marker
- marker...adds a marker [osm_map ... marker="33.54,85.333,Customfieldname"]
- marker_name...defines the marker icon. [osm_map ... marker_name="../../../uploads/BikeLogo.png"]
- marker_height...defines the marker height. [osm_map ... marker_height="23"]
- marker_width...defines the marker width. [osm_map ... marker_width="23"]
- marker_focus...defines the marker orientation(0...center, 1...left bottom, 2...left top, 3...right top, 4...right bottom). [osm_map ... marker_focus="1"]
sample: add a single marker to the map
adding a list of markers
- marker_file...absolute address of the marker-file [osm_map ... marker_file="http://www.Domain.com/blog/sample.txt"]
sample: add a list of marker by txt-file
import data
- import...adds marker from gcStat, wpgmg, ecf or osm plugin [osm_map ... import="osm"]
"osm" will insert just a marker, "osm_l" inserts a marker with a link to the post.
sample: add tagged posts of the blog
sample: add geocaches
loading an external map
You have to set: type=”Ext” and use these arguments:
- extmap_type...the layertype []
- extmap_name...any name for the map []
- extmap_address...URL to find the map []
- extmap_init...some more details for loading/init the maplayer []
sample:[osm_map long="-0.163" lat="51.483" control="scaleline,scale" zoom="14" width="500" height="450" extmap_type="OSM" extmap_name="UK_Map" extmap_address="http://b.ooc.openstreetmap.org/os1/${z}/${x}/${y}.jpg" extmap_init="numZoomLevels: 17, transitionEffect: 'resize', sphericalMercator: true" type="ext"]
adding controls an overviewmap in your map
- ov_map...adds the overviewmap with zoomlevel 0..17 [osm_map ... ov_map="0"]
- control...adds various controls to your map [osm_map ... control="scaleline,scale,mouseposition"]
WordPress issues
Themes
Atahualpa 3.4.4
you have to change the settings like this:
Atahulpa Theme Options => Style IMAGES => Images in Posts:
padding: 0px;
border: solid 0px #dddddd;
Plugins
Plugin Sites
Info & Tutorials on wordpress OSM plugin
Download
http://wordpress.org/extend/plugins/osm/
Author Blog
Sites using the OSM-WordPress-Plugin
Simple Map
- Show map with marker Loopingstar
- Show map with marker GPSMap
- Show map with marker exe (JP)
- Show map with marker Barlett Parkgarage
- Show map with marker NECCFL
- Show map with marker FM-Arch
- Show map with marker Weberweber
- Show map with marker Tattoo FreeYourMind
- Show map with marker Berlin Sound Map
- Show map with marker Gruener Markt
- Show map with marker Northside Lounge
- Show map Evolvica
- Show map with marker Nessmersiel
- Show map with marker Egelstrasse
- Show map with marker Geogis
- Show map with marker Buffalo tool library
- Show map with marker Alpenradtouren
- Show map Das Fonduehaus
- Show map Brnonakalo
- Show map with marker Yeshe Khorlo Deutschland
- Show map with marker erbylgjufelagid
- Show map Purble Dot
- Show map with marker sdis03
- Show map Jorge Sanz
- Show map with marker BHKW-Forum e.V.
- Show map with marker Bike Blog
- Show map with marker NotizBlog
- Show map with marker SC Sölden
- Show map with marker CoWorking Neunnkirchen
- Show map with marker Nomadas
- Show map My brain is here
- Show map with marker der IT-Bayer
- Show map with marker Empost
- Show map with marker Glaikit
- Show map with marker Huili Warrior
- Show marker on map for impressum Netzschichten
- Show map with marker Joint Law Office
- Show Marker Friday Evening
- Photomap with popup Chrisduran
- Simple map Free and OpenSource
- Show map with marker WL-7 Blog
- Show map Casa
- Show Marker muhpagesv20
- Photomap with popup La Tierra vista desde el suelo
- Simple map Subjektive Wahrnehmung
- Map with marker Walter Hupfeld
- Map with marker Ken Guest's
- Map with marker Leuchtfeuer
- Simple map rrr-Blog
- Show Map with Marker felipe
- Installed on a WordPress MU System Linux.ie
- Simple Map with marker Parderborner Hundefreunde
- Map with marker Babion.net
- Map with marker Uni Köln ASta
- Simple map Unser Bautagebuch
- Simple map Knobbly Tarmac
- Simple map whosit
- Simple map Herschdurfer Karneval
- Simple map Zip-Codes
- Show map with marker Centralontario Geocahers
- Show map with marker Fuena
- Show map Zenica-Online
- Show map with marker Photi
- Show map with marker Salinas 8
- Show map with marker Galerijakevic
- Show map with marker BBoy
- Show map with marker Ufer-Projekt
- Show Map Deusto
- Show Map with marker Technolex
Map with Markerfile
- Show map with markerfile Fame2012
- Show map with markerfile BHKW-Forum e.V.
- Show map with markerfile Reiseland Brandenburg
- Show map with markerfile Numpty's Progress
- Show map with markerfile vitebsk
- show map with markerfile Kindergeocaches
- show map with markerfile clivdev
- Show map with markerfile Consorziomontello
- Show map with markerfile SkyOne
Map with geotagged posts
- Show map with tagged posts palmexpanama
- Show map with tagged posts Singold-Bote
- Show map with tagged posts Mediale Pfade
- Mark all tagged posts Fotomobil
- Mark all tagged posts USmith Blog
- Show map with tagged posts Reisen mit Kindern
- Show map with tagged posts Classic pub toilets
- Show map with tagged posts Livem
- Show map with tagged posts Gueba
- Show map with tagged posts UmweltCacher
Map with GPX Track
- Map with GPX Track Jessys Website
- Map with GPX Track OliverWinkler
- Map with GPX Track Caar-Bike
- Map with GPX Track Burn to run
- Map with GPX Track Karuseit
- Map with GPX Track Zastoupil
- Map with GPX Track CAAR
- Map with GPX Track Willkommen bei Susi & Björn
- Show Map with GPX file OpenStreetMap Days (jp)
- Map with GPX Track annoyances
- Show GPX Track Points of Interest
- Show GPX Track and marker Suedkorea.at
- Show GPX Track and photos on the map HanBlog.net
- Show GPX Track Einspuriges
- Show GPX Track SilentBS
- Show GPX Track …here's a whosit
- Show GPX Track Borniert.com
- Show GPX Track gelPlog
- Show GPX Tracks. markers and photos on the map lanterna.net84.net (it)
- Show GPX Track Karuseit.de
- Show GPX Track Terlinden
- Show GPX Track Shaun
- Show GPX Tracks Albtips
- Show GPX Tracks Trailtracker
- Show GPX Track with marker Albtips
Map with GPX / KML Track and Markerfile
- Show GPX Track and marker file Mountaudtrail
- Show a mpa with GPX Track and Marker file Tamaralex
- Show GPX Track and marker OSMBlog - WordPress: Bloogen mit OpenStreetMap Landkarten
- Show GPX Track and marker Raphael Mack
- Map with track, and popup marker PMT's Homepage
- Show GPX Track and Marker-Txt Lindas und Pacos Reiseblog
- Show a map with a Marker-Txt freeroute Contrôles automatiques
- Show a map with KML file Piers Hobson
- Show a map with KML file Go Yuri
- Show a map with GPX Track Valeurdusage
- Show a map with GPX Track and Marker file Lanerna
- Show a map with GPX Track Labradeen
External Map
- External Map with marker Mapping The Wall
Map with Geocaches
- Show Geocaches Schmolzi.de
Theme using Template Tag
- Link to OpenStreetMap Keichi
- Tamplatetag to show map Singold Bote