mrmap-community / Mapbender2.8

Other
4 stars 1 forks source link

Display order problem in legend #124

Open armin11 opened 1 year ago

armin11 commented 1 year ago

The order of the sublayers of a group layer are reverse to the order of the layer in treegde module. Both orders can be configured - it has to be tested, if some element_vars may work as they should.

See:

https://documents.geoportal.rlp.de/mediawiki/index.php/Legend https://github.com/mrmap-community/Mapbender2.8/blob/master/http/javascripts/mod_legendDiv.php

element_var: reverseLegend

and

https://documents.geoportal.rlp.de/mediawiki/index.php/TreeGDE2 https://github.com/mrmap-community/Mapbender2.8/blob/master/http/html/mod_treefolderPlain.php https://github.com/mrmap-community/Mapbender2.8/blob/master/http/html/mod_treefolderPlain2019.php

element_var - reverse: true

example: https://www.geoportal.rlp.de/map?LAYER[zoom]=1&LAYER[id]=49565&gui_id=Geoportal-RLP_2019 ![Bildschirmfoto von 2023-06-23 13-29-00] (https://github.com/mrmap-community/Mapbender2.8/assets/1188234/064a5866-1a6b-4f26-b4b7-a449b2bacd50)