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

Different symbols

Manard replied the topic: Different symbols

7 years 3 days 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 to join the conversation.

fingeradmin replied the topic: Different symbols

7 years 3 days 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 to join the conversation.

Manard replied the topic: Different symbols

7 years 4 days 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: 7 years 4 days ago by Manard.

Please Log in to join the conversation.

fingeradmin replied the topic: Different symbols

7 years 4 days 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: 7 years 4 days ago by fingeradmin.
The following user(s) said Thank You: Manard

Please Log in to join the conversation.

Manard created the topic: Different symbols

7 years 5 days 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 to join the conversation.

Powered by Kunena Forum