Groups are shown again as Layers

3 messages Options
Embed this post
Permalink
Bernhard Schneider

Groups are shown again as Layers

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hello users and experts,

 

Using MapServer and specifying layers and groups in a map file, I have a problem with the display of the legend:

All groups are not only shown as such, but again at the bottom of the list as regular layers, but disabled. The metadata I specify in the map file for layers and groups such as “groupLegendLabel” or “displayInLegend” are working fine.

Furthermore, although I specified “<ShowRootFolder>false</ ShowRootFolder>” and  “<ShowMapFolder>false</ ShowMapFolder >” in the extensions of the legend widget in  ApplicationDefnition.xml, the map folder is still shown as the root of my legend tree.

Any hints on where I may be doing something wrong?

I am using Fusion 2 beta, by the way.

 

Thank you

Bernhard

 


_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Bernhard Schneider

Groups are shown again as Layers

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Problem solved:

The map file I use had a LAYER defined for each group. I deleted these layers and moved the METADATA information to the first LAYER belonging to the group, as described in the MapServer HowTo on configuring legend and layer behaviour.

Still trying to figure out how to remove the Map folder in the legend tree though.

Bernhard


_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Nolte, Tim

RE: Groups are shown again as Layers

Reply Threaded More More options
Print post
Permalink
Bernhard,

This is what you need to remove the Map folder from your legend:

ApplicationDefinition.xml:

                <!-- LEGEND -->
                <Widget xsi:type="WidgetType">
                        <Name>Legend</Name>
                        <Type>Legend</Type>
                        <StatusText/>
                        <Extension xsi:type="CustomContentType">
       
<HideInvisibleLayers>true</HideInvisibleLayers>
                                <ShowRootFolder>false</ShowRootFolder>
                                <ShowMapFolder>false</ShowMapFolder>
                                <GroupInfoIcon/>
                        </Extension>
                </Widget>

Specifically '<ShowMapFolder>' is what you are after.

- Tim

----
Timothy J Nolte - [hidden email]
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Bernhard
Schneider
Sent: Monday, June 15, 2009 1:34 PM
To: [hidden email]
Subject: [fusion-users] Groups are shown again as Layers

Problem solved:
The map file I use had a LAYER defined for each group. I deleted these
layers and moved the METADATA information to the first LAYER belonging
to the group, as described in the MapServer HowTo on configuring legend
and layer behaviour.
Still trying to figure out how to remove the Map folder in the legend
tree though.
Bernhard
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users