Welcome to J-TrackGallery Discussions! #15
Replies: 4 comments 3 replies
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Hi Marco,
Thanks for the answer.
I updated the component and the plugin. Now I can see the popup of a
waypoint. That's good.
But what do you mean by "where the code looks for icon files with a name
that matches the name of the way point"? I always get the unknown_WP.png
icon. I added some other icons, like hiker1.png and gr.png. The code of the
waypoint in the gpx file looks like this:
<wpt lat="50.647851834073663" lon="5.646839216351509">
<ele>156.40000000000001</ele>
<name>Bois Sauvage</name>
<desc>Kruising met GR 412</desc>
<sym>gr</sym>
<type>Generic</type>
</wpt>
So, how do I get the gr.png icon to display instead of the unknown_WP.png ?
Regards,
Luc
Op ma 27 feb. 2023 om 22:59 schreef Marco van Leeuwen <
***@***.***>:
… Hi,
Thanks for your suggestion. The latest versions of the code does provide
popups for the waypoints. Could you check whether you are using the latest
version from here:
https://github.com/mastervanleeuwen/J-TrackGallery/releases/tag/0.9.34-rc28
Please update both the component com_jtg.zip and the plugin
plg_jtrackgallery_maps.zip.
The marker style for waypoints is chosen based on the name of the
waypoint. The current selection is unfortunately somewhat small
(incomplete) and the small pin symbol is used for 'unknown markers'. I
would like to extend the selection, but have not been able to find a
suitable collection of open source icons for this purpose. If you have any
suggestions for this, I would be happy to look into it. You can also
customise the icons by placing files in this directory:
https://github.com/mastervanleeuwen/J-TrackGallery/tree/master/components/com_jtg/assets/template/default/images
where the code looks for icon files with a name that matches the name of
the way point. The xml files indicate the 'anchor point' of the marker icon
(bottom left, bottom right, bottom middle, etc).
Best regards, Marco.
—
Reply to this email directly, view it on GitHub
<#15 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6D3WI67HVX2YRKJ7JC64ELWZUPSNANCNFSM5NCUUZVA>
.
You are receiving this because you are subscribed to this thread.Message
ID: <mastervanleeuwen/J-TrackGallery/repo-discussions/15/comments/5129527@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Hi Marco,
I still don't succeed in showing my own waypoint icons on the map/track.
I have moved my icons to the map you indicated.
For the gr icon I also made a xml file. Now I don't get the "Error loading
icon xml file" anymore. But on the map it still shows your unknown waypoint
icon. The funny thing is that when I use the name Residence.png (one of
your icons), that one does show on the map.
Obviously, something is wrong here.
What is it?
Regards,
Luc
Op za 4 mrt 2023 om 14:34 schreef Marco van Leeuwen <
***@***.***>:
… Hi Luc,
Apologies, I gave the wrong directory name. Additional icons should be
stored in the components/com_jtg/assets/images/symbols directory. For the
waypoint above, the code will look for a file 'gr.xml' and 'gr.png'.
Best regards, Marco.
—
Reply to this email directly, view it on GitHub
<#15 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6D3WI27OZLF44KPHECZS3TW2NAETANCNFSM5NCUUZVA>
.
You are receiving this because you are subscribed to this thread.Message
ID: <mastervanleeuwen/J-TrackGallery/repo-discussions/15/comments/5201960@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
A million thanks Marco for your patience with non-technical people like me.
I made sure the file names respected the case sensitivity rule, and I
corrected a stupid syntax error in the xml files.
AND I SAW MY ICONS ON THE MAP!
After that I used the possibilities your extension offers, from showing the
altitude profile and the track info, to adapting to a multilanguage
website. Now I'm convinced I can continue with your extension. Perfect !
Thanks. See http://wittest1.be/index.php/nl-be/gr-57-barchon.
Just one more question.
I understand that in your overview map you can show icons to identify
several tracks on a map and the links to them. Unfortunately I can't use
that feature.
Can't you display a map with only waypoints? The waypoints are identified
in a single gpx file, but there's no track. For each waypoint there is a
link in the description to a page showong a track. Is that possible?
Thanks again for a great extension,
Luc
Op zo 12 mrt 2023 om 01:13 schreef Marco van Leeuwen <
***@***.***>:
… Hi Luc,
The file name is case sensitive. It looks like you have uploaded an icon
Gr.png, while the symbol name in the gpx file is lower case gr. Could you
try whether changing this, fixes the problem? Looking at the source of your
page
<http://wittest1.be/index.php/nl-be/gr-routes/gr-57-overzicht/gr-57-barchon>,
I also noticed that the icon hiker1.png is found correctly, but the xml
file is either not found or not fully correct, since the icon size and
anchor are not correctly set:
wpIcons.set('hiker1', new ol.style.Icon({src: 'http://wittest1.be/components/com_jtg/assets/images/symbols/hiker1.png',
| size: [, ],
| anchorXUnits: 'pixels', anchorYUnits: 'pixels',
| anchor: [, ]}));
I can look into changing the code to remove the 'size' and 'anchor'
arguments when they are not given in the xml file, but for now you have to
specify these (see the other xml files as examples).
Marco.
—
Reply to this email directly, view it on GitHub
<#15 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6D3WI4E7KCSJXAWAONILOLW3UII5ANCNFSM5NCUUZVA>
.
You are receiving this because you are subscribed to this thread.Message
ID: <mastervanleeuwen/J-TrackGallery/repo-discussions/15/comments/5278605@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions