wiki : googleMap (plugin)

Renders a google map within the wiki page. Google maps require you to be registered, so you will need to get a key from google. You can specify this key in two ways.

  1. Set it in the configuration file
  2. Specify it using the key parameter every time you use the googleMap plugin.

Option 1 is easier in the long run, here's what you need to add to your config file :

wikiEngine.getAttributes().setAttribute( "googleMap_key", "YOUR KEY HERE" );

Parameters longitude, latitude are main focus for the map. You can set a label for this location using the target parameter.

In addition, you can specify a start location, to produce a route to be drawn from the start location to the destination. The start location can either be defined by startLongitude and startLatitude, or you can use a place name using the start parameter. Google will perform geolocation on the start to find the coordinates.

Using just start, is oviously easier than startLongitude and startLatitude, but the former sometimes goes wrong, and you are forced to use the latter.

See also googleMapLink (plugin).

Details

Plugin Name : googleMap

Body type : wiki markup

Parameters

Name Details Default Required
startLongitude regex : .* false
startLatitude regex : .* false
start regex : .* false
zoom regex : [0-9]* 15 false
target regex : .* false
longitude regex : .* false
latitude regex : .* false
key regex : .* false

Administrator Notes

The resulting html makes use of the following css classes :

  • googleMap_map
  • googleMap_caption
  • googleMap_directions

It is vital that you define googleMap_map with a width and a height, as that is how the map size is determined.

Dependencies :
wiki:plugins index }