post a photo
about
home

Fotomobil.at

Shortcode arguments for

OSM wordpress plugin

There is a shortcode generator in the settingspage of OSM plugin. Just click on the map to get the shortcode for the current map. You can extend this shortcode manually:

name choise description sample
long -180 to 180 center of the map
if not set customfiedvalue
long=”-124.43345″
lat -90 to 90 center of the map
if not set customfiedvalue
lat=”24.43345″
type Osmarender or Mapnik or CycleMap or All
default is all
if this is set explicitely, the map-type-switcher is disabled. type=”Osmarender”
zoom 1 to 17; default = 10 sets the zoomlevel of the map zoom=”11″
width > 0; default = 450 sets the width of the map zoom=”333″
height > 0; default = 300 sets the height of the map zoom=”100″
gpx_file abs. address of the file; default = NoFile includes a gpx track to the map gpx_file=”http://www.MyDomain.com/MyTrack.gpx”
gpx_colour red | blue | black | green; default = blue defines the colour of the track gpx_colour=”red”
kml_file abs. address of the file; default = NoFile includes a kml track to the map kml_file=”http://www.MyDomain.com/MyTrack.kml”
kml_colour red | blue | black | green; default = blue defines the colour of the track kml_colour=”black”
marker_file abs. address of the file; default = NoFile adds a marker text file marker_file=”http://www.MyDomain.com/MyTrack.txt”
import gcstats | wpgmg | osm | ecf; default = No * osm: adds a marker for each tagged post of your blog
* wpgmg: adds a marker for each tagged post of wpgmg plugin
* gcstats: adds a popup-marker for geocaches of the gcStats plugin
* ecf: adds a marker for each comment on this site using ecf plugin.
import=”osm”
ov_map 0 to 17; default = -1 adds overview map ov_map=”0″
marker_name see at setttings page; default = blue dot defines the marker icon marker_name=”BikeLogo.png”
marker_height defines the marker height marker_height=”23″
marker_width defines the marker width marker_width=”20″

argumentsample for osm_map shortcode of the coverpage, showing all tagged posts in the blog:

- – - – - – - – - – - – - – - – - – - Feedback - – - – - – - – - – - – - – - – - – -

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

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