Embedding Google maps
Embedding Google maps is simple.
Default
All parameters have defaults, so the simplest call is:
By longitude and latitude
Use longitude and latitude to define your location:
By Address
Use an address (similar to what you enter on maps.google.com):
Define Size of Map on Page
Define the size of the map on your wiki page, in pixels:
Zoom the map
The default zoom is 15 (street level).
Markers
By default, the map has a marker at the specified lat/long or address. The marker can be turned off by setting :marker => false - see previous example.
In addition, other markers can be added to maps. In this case, the map has to be named using the :gmapid parameter. After that, multiple markers can be added by referring to the same :gmapid.
If :content is defined, a click on the marker will open a window with the content.
Boundaries
Boundaries can be added to a map using an array of long/lat pairs:
Multimedia Maps
A map with icons, photos and videos that are embedded in pop-ups can be added like this (a couple of youtube videos):