wiki:GoogleStaticMapMacro

Version 1 (modified by martin_s, 6 years ago) (diff)

New hack GoogleStaticMapMacro, created by martin_s

Inserts a static Google Map as image

Description

This macro uses the Google Map API to include static images of maps. At the moment the map location must be given in geographic coordinates, not as address, which must be separated by an colon ':'.

Bugs/Feature Requests

Existing bugs and feature requests for GoogleStaticMapMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out GoogleStaticMapMacro from here using Subversion, or browse the source with Trac.

Example

[[GoogleStaticMap(center=50.805935:10.349121,zoom=5,size=400x400)]]

See http://code.google.com/apis/maps/documentation/staticmaps/#URL_Parameters for all supported arguments. In addition the image title can be set using a 'title' argument.

Recent Changes

[8571] by martin_s on 2010-08-31 20:02:58
0.11/setup.py
Increaded version number to indicate major change due to Googles API change.
0.11/tracgooglestaticmap/macro.py
Fixed colon substitution for markers for api=1.
[8570] by martin_s on 2010-08-31 19:40:58
0.11/tracgooglestaticmap/macro.py
Made colon-to-comma substitution active only for API v1.
[8569] by martin_s on 2010-08-31 18:17:27
0.11/tracgooglestaticmap/macro.py
Added support for processor syntax, i.e. multi-line macro content.

Author/Contributors

Author: martin_s
Contributors: