× Forum for the GPXTrackMap Content Plugin for Joomla! 2.5 and 3.x

Different symbols

Manard replied the topic: Different symbols

11 months 4 weeks ago

Hello Frank,

With the right syntax, I managed to display different symbols for several hundred waypoints, it works as desired, very good plugin. A big thank you for the development of this plugin

Have a nice evening

Bernard

Please Log in or Create an account to join the conversation.

fingeradmin replied the topic: Different symbols

11 months 4 weeks ago

Hi Bernard,

yes, the syntax is a bit tricky - you have to follow it exactly, otherwise it's not going to work.

Anyway, glad to hear you have it sorted out now! :)

cheers, Frank

Please Log in or Create an account to join the conversation.

Manard replied the topic: Different symbols

11 months 4 weeks ago

Hello Frank,

Thank you very much for your answer.

I just chose two different symbols "icon1.png" and "icon2.png"
I have just done a test with three waypoints by inserting for the first

<sym>Repere1</sym>
and the second
<sym>Repere2</sym>

In the symbol mappings I wrote
Repere1=%PLUGINDIR%/markers/icon1.png,25,30|Repere2=%PLUGINDIR%/markers/icon2.png,25,30

Icons do not display

Code of the page for the first waypoint
var wptsize0 = new OpenLayers.Size(25,30|Repere2);
 var wptoffset0 = new OpenLayers.Pixel(-(wptsize0.w/2), -wptsize0.h/2);
 var wpticon0 = new OpenLayers.Icon("http://192.168.0.3/site/plugins/content/gpxtrackmap/markers/icon1.png",
       wptsize0,wptoffset0)

new OpenLayers.Size is wrong...

Edit :
I did not understand the role of the "|" pipe : the same icon for several names of waypoints

This morning reading again the tutorial, I deleted the "|" pipe and replaced it with a line break or carriage return, it works, great!
Repere1=%PLUGINDIR%/markers/icon1.png,25,30
Repere2=%PLUGINDIR%/markers/icon2.png,25,30

Thank you for your help

Bernard

Last Edit: 11 months 4 weeks ago by Manard.

Please Log in or Create an account to join the conversation.

fingeradmin replied the topic: Different symbols

1 year 2 hours ago

Hi Bernard,

have a look here and here in the workflow tutorial, that should get you started.

If you still have problems with the symbol mapping,
post your mapping here and i'll have a look.

Hope this helps!
cheers, Frank

Last Edit: 1 year 2 hours ago by fingeradmin.
The following user(s) said Thank You: Manard

Please Log in or Create an account to join the conversation.

Manard created the topic: Different symbols

1 year 1 day ago

Hello,

Is it possible in the presets to change symbols for waypoints? I would like to be able to display different symbols. I tried several syntaxes but I do not succeed

Thanks for your help

Bernard

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum