Modify ↓
Opened 14 years ago
Last modified 14 years ago
#7628 assigned enhancement
Why not use the same macro syntax of GoogleStaticMap
Reported by: | jrovegno | Owned by: | Martin Scharrer |
---|---|---|---|
Priority: | normal | Component: | GoogleMapMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Hi martin_s: I'm probing GoogleMapMacro plugin and some features are missing. I'm gonna create an issue about that.
But the current issue is like a wish list:
- Change the GoogleMapMacro syntax to the same macro syntax of GoogleStaticMapMacro, It would be nice only have to change
GoogleMap
forGoogleStaticMap
and vice versa, and have the best of the both worlds :P - Enable the same wiki processor syntax of GoogleStaticMapMacro on GoogleMapMacro, I love this feature, is clear and simple.
I'm planning to make in the future on TracGoogleMapTicket
can be enable use syntax like this:
{{{ #!GoogleStaticMap center=#1.coodinates path="#1.coodinates|#12.coodinates|#3.coodinates|#4.coodinates" markers="label:M|Munich" markers="label:B|#1.components.coodinates" markers="label:K|Cologne" markers="label:H|color:orange|Hamburg|Hannover" markers="size:small|color:green|Mannheim|Straubing|Münster" size=250x300 }}}
to create dynamics maps on the wiki, reports and descriptions. What do you think about this?
Regards Javier
Attachments (0)
Change History (3)
comment:1 Changed 14 years ago by
Status: | new → assigned |
---|
comment:3 Changed 14 years ago by
Note: See
TracTickets for help on using
tickets.
The reason why this two macros have a different syntax is because they both depend on the underlying syntax of the Google APIs. GoogleStaticMapMacro only builds a image URL out of the given values. The wiki processor syntax is also very new, so I didn't had time to implement it in the other macro.
To 1.
But you are right, both macros should accept the same syntax for be more user friendly. Also the GoogleMapMacro could have a
static
switch to only create a static map. This would render GoogleStaticMapMacro unnecessary or call for an integration of both.To 2.
The wiki processor syntax is easy enough and I will go and implement it in GoogleMapMacro soon.