This object is in archive! 

Custom icon listing order in icon chooser

ta-ka shared this problem 6 years ago
Solved

Up to Locus version 3.22.x, my custom icons in the icon chooser can be seen as shown in the first image. The icon listing order was as same as the icon file order in zip archive. This meant that it was possible to sort the icons yourself when you created the zip file.


But since Locus version 3.23.x, it seems that the listing order algorithm have been changed to "sort by name". As you can see in the second image, it becomes much harder to find the icon you need.


If there is no particular reason on this change, may I ask to revert it? Actually I really miss previous ordering.

Replies (9)

photo
1

Good day ta-ka,

quite interesting problem. You wrote "it was possible to sort the icons yourself when you created the zip file". How did you did this when not by the name?

In previous versions, Locus Map indeed loaded icons from zip file in "random" order, now they are sorted by name. Revert back is something I really do not want to do, but a) we may improve auto-sort logic or in worst case b) add option how to sort icons.

May you please share with me your "Google Earth Pins" pack, so I have something to test? Thanks

photo
1

I've sent "Google Earth Pins" pack by e-mail. When I created that, I repeated zip command to each png file one by one in the order I want and created the final archive file.

photo
1

Good evening,

Locus Map on some places use so-called "info" files that carry additional metadata for other files (maps, etc).

Icon packs already has support for these files, so I've just improved it little bit.


Please pack attached "info" file into your ZIP icon packs. It's simple XML file and I'm sure you won't need explanation. Important is new "sort" parameter. In next Locus Map version (even Beta), Locus will correctly handle zip file with icons and this file and based on this existing "sort" parameter, sorting won't happen.

Files: info.xml
photo
1

Hi Menion!

Ist here also a "hidden option" to group icons with this XML, like the groups Locus shows for the built-in Garmin icons? There's also an idea for that: http://help.locusmap.eu/topic/own-icon-pack-icons-divided-into-groups - but the mentioned forum discussion is over a year old and there an XML file is only an idea, but now it's obviously there. So I thought I'd ask, if you perhaps "clandestinely" ;) implemented something like this internally?

photo
1

Good morning,

Thank you very much for very fast fix. I look forward next beta version.

photo
1

Good day ta-ka,

new version is published and new issue appear. It is not possible to choose custom icons anymore, sorry. Will be fixed in tomorrow version!


@Ingo : more in topic. Nothing for this task was prepared ... till this night ;).

photo
1

Hi Menion,

I've installed the fixed version of Locus 3.24.1 and recreated my "Google Earth Pins" pack with info.xml based on the one from http://help.locusmap.eu/topic/own-icon-pack-icons-divided-into-groups. My pack looks like an image attached below now. Excellent improvement! Thank you very much Menion and also Ingo.

photo
1

Hello,

you are fast. Glad it works for you without an issues now, perfect. I consider this as a nice tool for users who wants to play with icons :). And as I wrote in second topic, if someone will feel that his pack may be useful for more users, it is possible to share it also over Locus Store ;).

photo
1

Thanx, Menion, great stuff! I'll be checking it out asap.

@ta-ka: Could you please post your new Google Icons file? Would also be a good example...

photo
1

@Ingo: For my Google Earth Icons/Pins pack, please see my post on Locus forum.

http://forum.locusmap.eu/index.php?topic=5731.msg47923

photo
1

Thx, will try that out asap

Replies have been locked on this page!