I made some test to combine groups/layers together in thematical categories. The categories are not used in the printing and the legend (in case of the flat table of contents), just in the layer (TOC) view.
The changes have applied in the legend.php where there are now 2 functions for flat and tree view, like writeTocDTree() and writeTocDTree_cat(). The categories are defined in custom.php in the '$categories' array. The keys of this array have to included in the language files, otherwise you will just see the key name instead of the real name. This file needs to be included in the toc_flat.phtml or toc_tree.phtml. I will continue on that and also implement it into the 2 version and will probably set this function on/off via the config.ini. For interested folks, you can download a snapshot at http://www.pmapper.de/dl/pmapper1_2005-12-04.zip Armin Claudio Leani wrote: > Hi, > I'm using pmapper 1.0.8 with mapserver 4.4.2...does exist a way to group > some themes under a group name, showing something like a tree-list? > Using the option GROUP, provided in layer object, pmapper visualize only > the first theme of the group in the theme list, although on the map are > displayed all the themes in the group. > I wish to be able separately turn on/off each theme in the group, in > order to preserve them under a branch of the list. > Is there anyone who can help me? > Thanks. >
