Changes between Version 46 and Version 47 of GoogleMapMacro
- Timestamp:
- Aug 8, 2015, 2:45:08 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GoogleMapMacro
v46 v47 3 3 = Insert a dynamic Google Map into wiki pages 4 4 5 {{{6 #!NewsFlash7 '''Nov. 4th 2008''':: Support for '''driving directions''' with multiple targets as been added. Use like this: {{{[[GoogleMap(from="here",to="there",to="there too")]]}}}. The map will automatically be zoomed to make the driving directions full visible. Please be warned that there isn't yet any error handling implemented, so wrong addresses etc. will just get you a normal map.8 '''Nov. 3rd 2008''':: GoogleMapMacro is now implementing `IEnvironmentSetupParticipant` to create and update the needed DB table. Use `trac-admin `''<trac path>''` upgrade` to update the Trac DB after installing GoogleMapMacro >[4732].9 }}}10 11 5 == Description 12 6 13 7 This macro lets the user insert a full dynamic [http://maps.google.com/ Google Map]. Because a lot of javascript is used (by Google) a [http://local.google.com/support/bin/answer.py?answer=16532&topic=1499 Google Map compatible browser] is needed. Newer version of Firefox and MS Internet Explorer are compatible. 14 8 15 For javascript-less static maps use the similar GoogleStaticMapMacro.16 17 Multiple Google Maps on the same wiki page are activelysupported.9 For Javascript-less static maps use the similar GoogleStaticMapMacro. 10 11 Multiple Google Maps on the same wiki page are supported. 18 12 19 13 '''Feedback''': I would like to get some [mailto:martin@scharrer-online.de?subject=Feedback%20GoogleMapMacro user feedback] for this macro. 20 Tell me if you like it or not and what could be better. Feel free to request additional features as long there are supported by the [http://code.google.com/apis/maps/ Google Maps API] 21 by opening a [http://trac-hacks.org/newticket?component=GoogleMapMacro&owner=martin_s&type=enhancement&release=0.11 feature request]. 22 23 The macro should work both with Trac 0.11 and 0.12. At the moment there is only a 0.11 directory which can also be used for Trac 0.12. 14 Tell me if you like it or not and what could be better. Feel free to request additional features as long there are supported by the [https://developers.google.com/maps/?csw=1&safe=on Google Maps API] by opening a [/newticket?component=GoogleMapMacro&owner=martin_s&type=enhancement&release=0.11 feature request]. 15 16 The macro should work both with Trac 0.11 and 0.12. There is only a 0.11 directory which can also be used for Trac 0.12. 24 17 The AdvParseArgsPlugin is used to allow for quoted argument values and must also be installed. 25 18 … … 34 27 35 28 If you have any issues, create a 36 [ http://trac-hacks.org/newticket?component=GoogleMapMacro&owner=martin_s&release=0.11new ticket].29 [/newticket?component=GoogleMapMacro new ticket]. 37 30 38 31 [[TicketQuery(component=GoogleMapMacro&group=type,format=progress)]] … … 62 55 == Configuration ==#config 63 56 64 A different [http ://code.google.com/apis/maps/signup.htmlGoogle Map API key] is needed for every web domain which can be obtained for free from Google.57 A different [https://developers.google.com/maps/signup?csw=1&safe=on Google Map API key] is needed for every web domain which can be obtained for free from Google. 65 58 '''Please check if the Google Map API Terms of Use apply for your Trac project.''' They apply to free and openly accessible Trac projects. 66 59 67 60 To enable the macro put the below text into your `trac.ini` file, which is located in the `config` directory of your Trac installation. 68 61 You can define project wide default values for some arguments and also whether the geocoding (address-to-coordinates conversion) is done on by the Trac server or by the client's web browser. 62 69 63 Google recommends server side geocoding with caching which is now implemented and can be enabled using `geocoding = server`. 70 64 Please note that this creates a table `googlemapmacro` in your Trac database which is used for the caching. … … 92 86 93 87 The macro knows the following arguments, which can be used in the normal `key1=value1,key2=value2,...` syntax. If a value includes one or more comma then it must be set in double quotes (`" "`). 94 If a key-less value is given it will be taken as `center` coordinates if it's in the proper format otherwise it's taken as an `address`. Unknown (or misspelled) keys or key-less values except the first are silently ignored.88 If a key-less value is given it will be taken as `center` coordinates if it's in the proper format, otherwise it's taken as an `address`. Unknown (or misspelled) keys or key-less values except the first are silently ignored. 95 89 96 90 `address`:: Sets the center of the map to the given address. The value must be surrounded by quotes if it includes commas, e.g. `"Street, City, Country"`. … … 170 164 [[GoogleMap(Street; City; Country,zoom=10,size=400x400)]] 171 165 }}} 166 172 167 Please note that the address is converted into coordinates by user-side Javascript every time the wiki page is loaded. 173 168 If this fails, then no map will be shown, only an empty gray rectangle. … … 215 210 [[GoogleMap("Street, City, Country",zoom=10,size=400x400,markers=center;A|"Next street, City, Country";B|10.243:23.343;C)]] 216 211 }}} 212 217 213 The same with hyperlinked markers: 218 214 {{{