New Version 1.2.2 - Beta with Dutch translation
sergio replied the topic: New Version 1.2.2 - Beta with Dutch translation
- sergio
- Offline
- Posts: 48
- Thank you received: 1
oki Frank
everything works fine
Thank you
Please Log in to join the conversation.
fingeradmin replied the topic: New Version 1.2.2 - Beta with Dutch translation
- fingeradmin
- Topic Author
- Offline
- Posts: 249
- Thank you received: 44
Hi Sergio,
i finally managed to find out what's wrong !
i'm sorry it took me so long... i had been searching for an error in my plugin all the time, but the plugin is working just fine. It has to do with the way you use the Tabs plugin in combination with my plugin. Let me try to explain this:
- let's say your default elevation line color is green (set in the plugin parameters)
- now you have two calls for the same gpx track in the same article, but on different tabs, like this:
{tab 1}
{gpxtrackmap}mytrack.gpx,edlinecolor=yellow{/gpxtrackmap}
-- this will render a svg file for the elevation diagram with yellow line color. So far, so good. Then you have another all for the next tab like this:
{tab 2}
{gpxtrackmap}mytrack.gpx,spdlinecolor=red{/gpxtrackmap}
-- this will render a speed diagram with red line color (which is fine), BUT(!!):
it will ALSO render a NEW elevation diagram(!) with the settings from this 2nd call - and, since no edlinecolor was passed here, it will use the default (green color) and overwrite the svg file from the first call...
So, what can you do to fix this?
Two ways will work:
1) use the same set of colors (speed diagram AND elevation diagram) in your presets for ALL calls in the article
-or-
2) stop the plugin from re-rendering the elevation diagram in the 2nd call (where you just want the SPEED diagram) by using:
...
{tab 2}
{gpxtrackmap}mytrack.gpx,spdlinecolor=red,ed=0{/gpxtrackmap}
...this way the elevation diagram will only be rendered ONCE, in the first call (with the settings you pass there), and in the second call it will ONLY render the speed diagram and leave the speed diagram as it is.
For the same reason, (and for speed!,) it would be a good idea to use ",spd=0" in the FIRST call.
Otherwise, the speed diagram that will be rendered in the first call will be overwritten by the one created in the second call anyway, so it just eats up server time to create it in the first place.
I hope this description was somewhat clear and understandable... in case not, please ask and i will try to explain it better
cheers, Frank
Please Log in to join the conversation.
fingeradmin replied the topic: New Version 1.2.2 - Beta with Dutch translation
- fingeradmin
- Topic Author
- Offline
- Posts: 249
- Thank you received: 44
Hi Sergio,
i have sent you a private mail.
I hope we can work this out together!
cheers, Frank
Please Log in to join the conversation.
sergio replied the topic: New Version 1.2.2 - Beta with Dutch translation
- sergio
- Offline
- Posts: 48
- Thank you received: 1
I'm sorry but it does not work
I rewrote everything but it does not work
the diagram is still blue
Please Log in to join the conversation.
fingeradmin replied the topic: New Version 1.2.2 - Beta with Dutch translation
- fingeradmin
- Topic Author
- Offline
- Posts: 249
- Thank you received: 44
Hi Sergio,
ok, we're getting closer. So the parameters do work. That leaves your Preset definition as the only possible cause of the problem.
Could it be that you have line breaks in your presets? I mean if you have:
tab8:ed=1,edfillmode=2,edlinecolor=black,edupcolor=red,
eddowncolor=red
...instead of:
tab8:ed=1,edfillmode=2,edlinecolor=black,edupcolor=red,eddowncolor=red
...then the parameters on the second line will not be "seen" by the plugin(!)
(Note that the Joomla text box in the plugin parameters will wrap the lines for display. That can be confusing, because these are no "real" line breaks, but just the text control doing "display word wrapping")
To check this, try to drag the text box as wide as possible (using the drag control in the lower right corner). If the lines still wrap, then there is a "real" line break in there, that you should remove.
Or you can try this instead:
tab8:ed=1,edfillmode=2,edlinecolor=black
tab8:edupcolor=red,eddowncolor=red
...so the lines will be short enough not to wrap around.
hth & cheers, Frank
Please Log in to join the conversation.
sergio replied the topic: New Version 1.2.2 - Beta with Dutch translation
- sergio
- Offline
- Posts: 48
- Thank you received: 1
with the parameters directly in the invocation code in my article, that works
then i renamed the preset tab8 in tab18
speed and altitude does not work
Please Log in to join the conversation.