This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

TableOfContents

Introduction#

GoogleMapsPlugin is a plugin for embedding a Google Maps into a JSPWiki page.

Please visit the project page for more detail.

Installation#

  1. Download and place the GoogleMapsPlugin.jar(info) file in your JSPWiki's WEB-INF/lib directory.
  2. Edit WEB-INF/jspwiki.properties file and add com.msb0b.jspwiki.plugin to the property jspwiki.plugin.searchPath.
  3. Obtain an API key from Google Maps. Your Web URL will depend on your configuration. Usually, it should be your jspwiki.baseURL property value.
  4. Edit WEB-INF/jspwiki.properties file add the key to the property jspwiki.Google.maps.key.
  5. Edit your template's CSS file and define a map id such as
#map {
    min-width: 400px;
    min-height: 400px;
}

Usage#

Place the following line anywhere in a JSPWiki page.

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

Due to the nature of Google Maps, only one map is permitted per page.

Parameters#

key
Google Maps API key, now deprecated and the value is loaded from properties file
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

To get the coordinate, you can use Google Maps to navigate to the point you want to display, double click it so it is centered, and make note of the ll=xx.xxxx,yy.yyyy value in "Link to this page" link. They are the latitude and longitude values respectively.

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
jpg
001.jpg 162.7 kB 1 28-May-2009 17:01 94.25.4.114
png
GoogleMaps.png 269.0 kB 3 15-Jun-2006 10:25 Christoph Sauer
jar
GoogleMapsPlugin.jar 2.3 kB 1 12-Jun-2006 13:45 msb0b
java
GoogleMapsPlugin.java 5.0 kB 1 12-Jun-2006 13:45 msb0b
zip
googlemaps-plugin-2.4.64.zip 59.2 kB 1 03-Oct-2006 12:10 213.96.121.208
64
java1.4_patch_for_googlemaps-p... 2.9 kB 1 03-Dec-2006 01:24 203.206.126.157 patch against googlemaps-plugin-2.4.64.zip to support java1.4
« This particular version was published on 12-Jun-2006 13:45 by msb0b.