[mapserver-users] RE: legend not visible with maxscaledenom set

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Fri May 25 11:50:46 PDT 2012


How are you creating the legend? One work-around would be to fake a map associated with a call to create a legend. That is, set EXTENT and SIZE to values that would generate a computed scale below your MaxScaleDenom. I've done that when using mode=legend where you set mapext and mapsize as needed. Otherwise we'd really need to implement an override parameter (perhaps a processing directive) to ignore scale when compiling the legend.

Steve

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob
Sent: Thursday, May 24, 2012 12:44 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] legend not visible with maxscaledenom set

This appears to be an old problem, but I am still having trouble with it in MapServer 6.0.2.   If I have a layer without a Maxscaledenom set, the layer legend displays properly.  But if I set the Maxscaledenom, the legend does not appear in my application.  This happens when Maxscaledenom is set at the layer level or the class level.

I've looked though the archives and have seen this problem since version 5, but don't see a resolution for MS 6.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120525/af71441e/attachment.html


More information about the mapserver-users mailing list