This plugin isn't bundled with any XWiki product by default.
Plugin contributed by Yasser Ganjisaffar and Cristina Lopes.
This plugin can be downloaded.

GoogleMap Plugin

A plugin that shows the location of a given point on a Google Map.

Installation

Apply for a Google Map API Key.

Edit your WEB-INF/xwiki.cfg file as follows:

xwiki.plugins=[...],edu.uci.ics.mondego.wiki.plugin.map.MapPlugin
GoogleMapAPIKey=ABQIAAAAr49IzmOYGFMU4Y9yosQssxQLFvgphtu0uU9uKgDGzM3LXgn_VRQaZh4SI5A0OVhzYMpxpnC-PBeWrQ

(Note that the above key is a fake API key).

Copy the plugin jar to the %xwikipath%/WEB-INF/lib/ directory of your xwiki installation.

Restart your XWiki instance

Usage

$xwiki.MapPlugin.getPointMap($latitude, $longitude, $zoom, $title)

The first parameter specifies the latitude of the location, the second parameter specifies the longitude of the location, the third parameter specifies the zoom level (a value between 1 and 19), and finally the last parameter specifies the title of the location.

Example

$xwiki.MapPlugin.getPointMap(33.655016, -117.844766, 8, "Irvine, CA, USA")

Result

(The following is only an image, the real result would be interactive)

irvine.jpg

Acknowledgment

The development of this plugin was in part supported by award no. OCI-0724806 from the National Science Foundation.

Version 14.1 last modified by ganji on 07/03/2008 at 06:39

Comments 0

No comments for this document

Attachments 1

Image
irvine.jpg 1.1
PostedBy: ganji on 17/01/2008 (69kb )

Creator: ganji on 2008/01/17 07:54
This wiki is licensed under a Creative Commons license
1.4.1.10194