Introduction#

OSM Plugin is a plugin for embedding OpenSteetMaps into a JSPWiki page. you do not need "key" like GoogleMap.

Installation#

  1. Download the OSM.zip and unzip it, and you can get OSM.class so put into your JSPWiki's WEB-INF/classes directory.
  2. Edit WEB-INF/jspwiki.properties file and add org.braincopy.jspwiki.plugin to the property jspwiki.plugin.searchPath.

Usage#

Place the following line anywhere in a JSPWiki page.

[{OSM lat='coordinate latitude' lng='coordinate longitude'}]

Parameters#

lat
Coordinate Latitude value from -90 to 90, must be enclosed in single quotation marks
lng
Coordinate Longitude value from -180 to 180, must be enclosed in single quotation marks
zoom
Zoom value from 0 to 19, where 0 is widest and 19 is closest
width
plugin width
height
plugin height

Heres an example of how the above image was created:

[{OSM lat='35.707214' 
      lng='139.619895'
      zoom='17' 
      width='400'
      height='400'
}]
usage example: http://www.braincopy.org/JSPWiki/Wiki.jsp?page=Location

Known Issues#

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-8) was last changed on 12-Sep-2011 01:20 by hiro