[fusion-users] RE: [mapserver-users] Zoom Level Layer Changes

Dominic Gervais dominicgervais at hotmail.com
Mon Jun 8 09:30:43 EDT 2009


Hi Tim,

 

here's an Idea...

 

In your applicationdefinition file, add the <HideInvisibleLayers>true</HideInvisibleLayers> to the extension of your Legend Widget.

 

like this -->

 

<Widget xsi:type="WidgetType">
      <Name>Legend</Name>
      <Type>Legend</Type>
  <Extension xsi:type="CustomContentType">    
      <ShowMapFolder>false</ShowMapFolder>
      <ShowRootFolder>false</ShowRootFolder>
      <HideInvisibleLayers>true</HideInvisibleLayers>
  </Extension>
      <StatusItem/>
    </Widget>

 

AND IN YOUR MAPFILE:

 

In your FIRST coverage layer

 

    STATUS ON

    MINSCALEDENOM 120000

    MAXSCALEDENOM YOURMAXSCALE

 

In your SECOND coverage layer

 

    STATUS OFF

    MINSCALEDENOM 0

    MAXSCALEDENOM 120000

 

In your Propagations layer

 

    STATUS ON

    MINSCALEDENOM 0

    MAXSCALEDENOM 120000

 

Hope this helps!

 

Dominic


 

_________________________________________________________________
Internet explorer 8 lets you browse the web faster.
http://go.microsoft.com/?linkid=9655582
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fusion-users/attachments/20090608/6381df81/attachment.html


More information about the fusion-users mailing list