wiki:GoogleMapMacro

Version 4 (modified by Martin Scharrer, 15 years ago) (diff)

--

Inserts a dynamic Google Map into wiki pages

Description

This macro lets the user insert a full dynamic Google Map. Because a lot of javascript is used (by Google) a Google Map compatible browser is needed. Newer version of Firefox and MS Internet Explorer are compatible.

For javascript-less static maps use the similar GoogleStaticMapMacro.

Please note that this is an alpha version which still lacks a lot of functionality. Especially the geocoding, i.e. address-to-coordinates conversion, is not implemented yet, so longitude and latitude coordinates must be given. These can be taken from the Google Maps website.

Multiple Google Maps on the same wiki page are actively supported but are more likely to cause trouble.

Bugs/Feature Requests

Existing bugs and feature requests for GoogleMapMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:googlemapmacro here].

Source

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

Installation & Configuration

Just copy the python file in the plugin directory of your trac installation.

A different Google Map API key is needed for every web domain which can be get for free from Google.

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)>

Example

[[GoogleMap(center=50.0:10.0,zoom=10,size=400x400)]]

Recent Changes

17140 by rjollos on 2018-04-16 20:16:26
TracGoogleMapMacro 0.6: Fix unintended name change
17139 by rjollos on 2018-04-16 20:14:38
TracGoogleMapMacro 0.6: Conform to PEP8
15265 by rjollos on 2016-02-11 04:29:08
Remove unnecessary svn:mime-type on js and html files

svn:mime-type was set to "plain" for many files.

(more)

Author/Contributors

Author: martin_s
Contributors: