This object is in archive! 
How to set special icons during import of gpx
Answered
Hi,
I have a special gpx file from munzee. The import of this gpx works fine but all points have the same icon. But there are diffenent types of munzees like geocaching. A import of geocaches shows different icons on the map.
Is there a possibility to set for each point/category a special icon during import?
thanx
Hello Loiblinger,
yes it`s possible, anyway it`s one of undocumented features.
Best to check how it works, is to
1) add some custom icons into Locus icons folder (for example from Locus store)
some more information about custom icons is here http://docs.locusmap.eu/doku.php/manu...
2) select any icon from this own icon pack to any of your point
this may be done by tapping on icon in "edit point dialog"
http://docs.locusmap.eu/doku.php/manu...
3) export this point to gpx file and check result
I wrote this little bit short. So if it`s too "complicated", let me know where you`re stuck, and I`ll improve answer
Hello Loiblinger,
yes it`s possible, anyway it`s one of undocumented features.
Best to check how it works, is to
1) add some custom icons into Locus icons folder (for example from Locus store)
some more information about custom icons is here http://docs.locusmap.eu/doku.php/manu...
2) select any icon from this own icon pack to any of your point
this may be done by tapping on icon in "edit point dialog"
http://docs.locusmap.eu/doku.php/manu...
3) export this point to gpx file and check result
I wrote this little bit short. So if it`s too "complicated", let me know where you`re stuck, and I`ll improve answer
I think it is too complicated. If I have a waypoint with embedded image I get a link for the image (and a {table} with the image inside).
But no icon.
I created a new waypoint with name and icon from my own set.
This is the exported file: (wpt tag)
{wpt lat="60.0" lon="24.4"}
{time}2012-11-01T19:55:38Z{/time}
{name}{![CDATA[Icon test]]}{/name}
{desc}{![CDATA[{font color="#ff000000"}{table width="100%"}{tr}{td}{table width="100%"}{/table}{/td}{/tr}{/table}{/font}]]}{/desc}
{/wpt}
No icon?
I think it is too complicated. If I have a waypoint with embedded image I get a link for the image (and a {table} with the image inside).
But no icon.
I created a new waypoint with name and icon from my own set.
This is the exported file: (wpt tag)
{wpt lat="60.0" lon="24.4"}
{time}2012-11-01T19:55:38Z{/time}
{name}{![CDATA[Icon test]]}{/name}
{desc}{![CDATA[{font color="#ff000000"}{table width="100%"}{tr}{td}{table width="100%"}{/table}{/td}{/tr}{/table}{/font}]]}{/desc}
{/wpt}
No icon?
As stebu already wrote... There is no icon tag?!
{wpt lat="48.558476" lon="9.237938"}
{time}2012-11-03T20:51:22Z{/time}
{name}{![CDATA[Munzee Icon Test]]}{/name}
{desc}{![CDATA[{font color="#ff000000"}{table width="100%"}{tr}{td}{table width="100%"}{/table}{/td}{/tr}{/table}{/font}]]}{/desc}
{/wpt}
I tried then different imports and exports with a munzee gpx file and i saw then
{sym}Pin, Green{/sym}
{extensions}
{locus:icon}Pin, Green{/locus:icon}
{/extensions}
But the import doesn`t work then. Always the same "i" icon on the map.
As stebu already wrote... There is no icon tag?!
{wpt lat="48.558476" lon="9.237938"}
{time}2012-11-03T20:51:22Z{/time}
{name}{![CDATA[Munzee Icon Test]]}{/name}
{desc}{![CDATA[{font color="#ff000000"}{table width="100%"}{tr}{td}{table width="100%"}{/table}{/td}{/tr}{/table}{/font}]]}{/desc}
{/wpt}
I tried then different imports and exports with a munzee gpx file and i saw then
{sym}Pin, Green{/sym}
{extensions}
{locus:icon}Pin, Green{/locus:icon}
{/extensions}
But the import doesn`t work then. Always the same "i" icon on the map.
Hi,
as Stebu wrote, I can only confirm that it`s complicated. Well, at least not documented. I had no reason to discuss somewhere about it till now ...
So, when you import any point by GPX file, there are these possibilities
you may use
1) name of one of internal Locus icons
2) relative URL to icons file included in Locus/icons directory
3) http url to symbol
ad 1) here is list of supported icons
administration-atm.png, administration-bankeuro.png, administration-findajob.png, administration-military.png, administration-police.png, administration-postal.png, culture-museum-historical.png, culture-music-classical.png, culture-music-rock.png, culture-theater.png, culture-zoo.png, education-daycare.png, friends-dates.png, friends-girlfriend.png, friends-home.png, media-audio.png, media-photo.png, media-video.png, misc-cluster.png, misc-disability.png, misc-info.png, misc-recycle.png, misc-smokingarea.png, misc-sunny.png, misc-telephone.png, misc-toilets.png, misc-trash.png, misc-wifi.png, restaurant-bar.png, restaurant-coffee.png, restaurant-fastfood.png, restaurant-hotel.png, restaurant-icecream.png, restaurant-pizza.png, restaurant-restaurant.png, restaurant-teahouse.png, restaurant-winery.png, sport-cyclingsport.png, sport-doctor.png, sport-firstaid.png, sport-golf.png, sport-hiking.png, sport-hospital.png, sport-kayak.png, sport-motorbike.png, sport-racing.png, sport-sailboat-sport.png, sport-skiing.png, sport-swim-outdoor.png, stores-clothes.png, stores-convenience.png, stores-flowers.png, stores-gifts.png, stores-pets.png, stores-tools.png, tourism-beach.png, tourism-bigcity.png, tourism-campingsite.png, tourism-castle.png, tourism-cemetary.png, tourism-drinkingwater.png, tourism-forest.png, tourism-fortress.png, tourism-glacier.png, tourism-chapel.png, tourism-monument.png, tourism-ruins.png, tourism-tower.png, transport-accident.png, transport-airport.png, transport-bus.png, transport-car.png, transport-gazstation.png, transport-parking.png, transport-steamtrain.png, var-world.png, z-favorites.png, z-google.png, z-ico01.png, z-ico02.png, z-ico03.png, z-ico04.png, z-ico05.png, z-ico06.png, z-ico07.png, z-ico08.png, z-ico09.png, z-ico10.png, z-ico11.png, z-ico12.png, z-ico13.png, z-ico14.png, z-ico15.png, z-ico16.png, z-ico17.png, z-ico18.png, z-ico19.png, z-ico20.png
heh, quite a long list, sorry :). When you define one of this names as below, it will work
<wpt>
...
<name>...</name>
<extensions>
<locus:icon>culture-theater.png</locus:icon>
</extensions>
</wpt>
ad 2) if you want to define icon from own file, for example you have an file my_icons.zip in Locus/icons directory, just define symbol as
<wpt>
...
<name>...</name>
<extensions>
<locus:icon>file:my_icons.zip:icon.png</locus:icon>
</extensions>
</wpt>
ad 3) it`s probably clear. Here you may simply put whole absolute url directly into <sym> tag and it should works correctly
Note: I thanks to creating this post, discovered few issues with export after icon change etc. If you`ll also have ideas on improvements, let me know .. doors are open as usually
Hi,
as Stebu wrote, I can only confirm that it`s complicated. Well, at least not documented. I had no reason to discuss somewhere about it till now ...
So, when you import any point by GPX file, there are these possibilities
you may use
1) name of one of internal Locus icons
2) relative URL to icons file included in Locus/icons directory
3) http url to symbol
ad 1) here is list of supported icons
administration-atm.png, administration-bankeuro.png, administration-findajob.png, administration-military.png, administration-police.png, administration-postal.png, culture-museum-historical.png, culture-music-classical.png, culture-music-rock.png, culture-theater.png, culture-zoo.png, education-daycare.png, friends-dates.png, friends-girlfriend.png, friends-home.png, media-audio.png, media-photo.png, media-video.png, misc-cluster.png, misc-disability.png, misc-info.png, misc-recycle.png, misc-smokingarea.png, misc-sunny.png, misc-telephone.png, misc-toilets.png, misc-trash.png, misc-wifi.png, restaurant-bar.png, restaurant-coffee.png, restaurant-fastfood.png, restaurant-hotel.png, restaurant-icecream.png, restaurant-pizza.png, restaurant-restaurant.png, restaurant-teahouse.png, restaurant-winery.png, sport-cyclingsport.png, sport-doctor.png, sport-firstaid.png, sport-golf.png, sport-hiking.png, sport-hospital.png, sport-kayak.png, sport-motorbike.png, sport-racing.png, sport-sailboat-sport.png, sport-skiing.png, sport-swim-outdoor.png, stores-clothes.png, stores-convenience.png, stores-flowers.png, stores-gifts.png, stores-pets.png, stores-tools.png, tourism-beach.png, tourism-bigcity.png, tourism-campingsite.png, tourism-castle.png, tourism-cemetary.png, tourism-drinkingwater.png, tourism-forest.png, tourism-fortress.png, tourism-glacier.png, tourism-chapel.png, tourism-monument.png, tourism-ruins.png, tourism-tower.png, transport-accident.png, transport-airport.png, transport-bus.png, transport-car.png, transport-gazstation.png, transport-parking.png, transport-steamtrain.png, var-world.png, z-favorites.png, z-google.png, z-ico01.png, z-ico02.png, z-ico03.png, z-ico04.png, z-ico05.png, z-ico06.png, z-ico07.png, z-ico08.png, z-ico09.png, z-ico10.png, z-ico11.png, z-ico12.png, z-ico13.png, z-ico14.png, z-ico15.png, z-ico16.png, z-ico17.png, z-ico18.png, z-ico19.png, z-ico20.png
heh, quite a long list, sorry :). When you define one of this names as below, it will work
<wpt>
...
<name>...</name>
<extensions>
<locus:icon>culture-theater.png</locus:icon>
</extensions>
</wpt>
ad 2) if you want to define icon from own file, for example you have an file my_icons.zip in Locus/icons directory, just define symbol as
<wpt>
...
<name>...</name>
<extensions>
<locus:icon>file:my_icons.zip:icon.png</locus:icon>
</extensions>
</wpt>
ad 3) it`s probably clear. Here you may simply put whole absolute url directly into <sym> tag and it should works correctly
Note: I thanks to creating this post, discovered few issues with export after icon change etc. If you`ll also have ideas on improvements, let me know .. doors are open as usually
Wow - what a helpful answer! Thank you very much...
2.) helped me to answer my question/solve my problem.
I wrote a small perl script that inserts the extensions and locus:icon tags in the gpx files.
And now my munzee gpx files are imported with the correct icon on the map.
great...
THANK YOU VERY MUCH!
Wow - what a helpful answer! Thank you very much...
2.) helped me to answer my question/solve my problem.
I wrote a small perl script that inserts the extensions and locus:icon tags in the gpx files.
And now my munzee gpx files are imported with the correct icon on the map.
great...
THANK YOU VERY MUCH!
OK, now it is simple :)
Thanks for sharing this, *.GPX is simpler to create and update than *.KMZ. And these icons re-size according to the settings ;)
OK, now it is simple :)
Thanks for sharing this, *.GPX is simpler to create and update than *.KMZ. And these icons re-size according to the settings ;)
fine. Also one small tip
when you prepare directory where will be
my_file.gpx
my_file.png
then all imported points from GPX file, should have my_file icon ;)
fine. Also one small tip
when you prepare directory where will be
my_file.gpx
my_file.png
then all imported points from GPX file, should have my_file icon ;)
Replies have been locked on this page!