3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
254 stars 143 forks source link

LWC tools should respect the layers order defined by the plugin #491

Closed josemvm closed 1 year ago

josemvm commented 7 years ago

it seems to me that the layers order is random within the respective tools dock...

josemvm commented 7 years ago

moreover, in the case of the tooltip the first layer of the list could be the default layer (*) to be displayed on the tool dock

(*) or there is a possibility in the plugin to set the default layer (or no default layer)

mdouchin commented 7 years ago

order respected for

josemvm commented 6 years ago

hi

please, could you fix the next item (attribute table)? it's very useful for organizing the layers list by themes

thanks in advance

josemvm commented 6 years ago

just for remember you @rldhont @mdouchin :-)

nboisteault commented 5 years ago

@josemvm layers order in attribute table works ok for me. Can you test ?

josemvm commented 5 years ago

hi @nboisteault

look at montpellier project:

imagem

imagem

thanks

nboisteault commented 5 years ago

@josemvm You're right. "attribute table" fixed by https://github.com/3liz/lizmap-web-client/pull/978. Can you test it ?

nboisteault commented 5 years ago

Locate by layer works thanks to this : https://github.com/3liz/lizmap-web-client/blob/bcf2a63e5ec552a46163cf2b5da851233fd867c9/lizmap/www/js/map.js#L2592

nboisteault commented 5 years ago

Layer order in every tools has been fixed. @josemvm : please test and tell us if it is ok. Thanks.

josemvm commented 5 years ago

thank you so much @nboisteault everythin works fine!!! :-)

if you can take a look at time manager tool and dataviz...

nboisteault commented 5 years ago

@josemvm : I'm glad you enjoy this fix :-) Time manager and dataviz... are there any other tool that need to be sorted ?

josemvm commented 5 years ago

hi @nboisteault

no, that's all! go ahead on time manager and dataviz module 👍

thanks

rmarzocchi84 commented 4 years ago

There is a problem in the edition tool because of the order key is interpreted as string and not as numeric value.

So if you have 0, 1, 2 [..], 10 in the txt file

the online order is 0,1,10,11..,2,20, etc.

josemvm commented 4 years ago

@nboisteault you have a regression here https://github.com/3liz/lizmap-web-client/pull/1552

nboisteault commented 4 years ago

@josemvm please be more explicit...

josemvm commented 4 years ago

@nboisteault sorry in your enhanced selection tool, the layers list appears in a random order and not as given by creation order in lizmap plugin

nboisteault commented 4 years ago

@josemvm I can't reproduce your issue.

josemvm commented 4 years ago

@nboisteault please try here http://pdm-revisao.municipioarraiolos.pt/index.php/view/map/?repository=ma&project=queimasQueimadas

compare the layers order in table attributes with layers order in selection tool

check your mmailbox for credentials

nboisteault commented 4 years ago

@josemvm Can you update Lizmap plugin and save your project ? The order should be updated in the cfg and be correct in LWC.

nboisteault commented 4 years ago

@josemvm forget what I said I see the problem.

nboisteault commented 4 years ago

@josemvm The issue should not happen when saving with the new version of Lizmap plugin but I added some code to assert correct behavior : https://github.com/3liz/lizmap-web-client/commit/75de4a38fcbb7094472e02f217fae1c617c97ef1

josemvm commented 4 years ago

@nboisteault thanks can you update the unstable release here https://packages.3liz.org/pub/lizmap/unstable/3.4/

josemvm commented 4 years ago

everything is ok now! 👍

nboisteault commented 4 years ago

@josemvm It seems order is respected for dataviz at least in master, can you confirm?

Gustry commented 1 year ago

I'm closing as lack of feedback, it seems implemented.