|Version 6 (modified by martin_s, 5 years ago) (diff)|
Inserts a dynamic Google Map into wiki pages
Please note that this is an alpha version which still lacks a lot of functionality.
Multiple Google Maps on the same wiki page are actively supported but are more likely to cause trouble.
If you have any issues, create a new ticket.
Download the zipped source from here.
Installation & Configuration
Just copy the python file in the plugin directory of your trac installation.
To enable the macro put the following into your trac.ini file, which is located in the config directory of your trac installation. You need to restart trac to reread the macro file and the configuration file.
[components] googlemap.* = enabled [googlemap] api_key = <Your Google API key (long hex number)>
Using geographic coordinates
Please use a colon, not a comma, as separator for the coordinates.
Using an address
Please use semicolons, not commas, as separators in the address.
[[GoogleMap(address="Street; City; County",zoom=10,size=400x400)]]
[[GoogleMap("Street; City; County",zoom=10,size=400x400)]]
Doesn't make this much sense, but is supported anyway. This could be used as failsafe if you aren't sure if the address resolution will be successful.
[[GoogleMap(center=50.0:10.0,address="Street; City; County",zoom=10,size=400x400)]]
The given coordinates will be shown until the address is resolved, which can take a little when the user has a slow internet connection. After (and if) the address is resolved the map will be centered on it.
-  by martin_s on 2010-09-06 12:08:31
- Added support for mulit-line wiki processor syntax. Ref: 7628.
-  by martin_s on 2010-09-06 12:07:24
Added stylesheet file.
-  by martin_s on 2010-08-30 23:57:36
Added encoding meta-comment and declared SVN keywords as unicode to avoid issues with non-english locales.