[Geomoose-users] controlling items in the legend GM 2.2

Len Kne lkne at houstoneng.com
Wed Apr 7 12:34:12 EDT 2010


Hi Mark

Check that the layer status in the map file is set to "ON", not "DEFAULT".  In your example below, the mapsource ("Boundaries") does not match with the call in the catalog ("AllLayers").

Len

From: Mark Volz [mailto:MarkVolz at co.lyon.mn.us]
Sent: Wednesday, April 07, 2010 10:50 AM
To: geomoose-users at lists.sourceforge.net
Subject: [Geomoose-users] controlling items in the legend GM 2.2


Hello.

I have map setup where multiple layers are pointing to a single map source file.  I would like to do it this way so I can draw all of my layers on a single image.  When I turn on the legend on for any layer the legend for all the layers shows up.  I am assuming this is the case as if I am not mistaken legends are drawn at the .map level and not layer by layer?  Anyways, is there any way to make sure that only relevant items show up on the legend?  For example if I click on the legend for my parcel layer, I would only like only parcels to show up in that legend, and if I click on my section layer I would like only the sections to draw on the layer.

<map-source name="Boundaries" type="mapserver">

<file> ./Boundaries.map</file>

        <layer name="parcels">

        <layer name="sections">

        ....

</map-source>

...

<catalog>

        ...

<layer title="Parcels" src="AllLayers/parcels " status="on" legend="true" />

<layer title="Sections" src="AllLayers/sections" status="on" legend="true" />

...

</catalog>

Thanks

Mark Volz

GIS Specialist

Lyon County, MN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20100407/530dcb93/attachment.html


More information about the Geomoose-users mailing list