You need to log in before you can comment on or make changes to this bug.
You can do this by changing the opt_flags in the leg_layer_html block to be 14 which will hide out of scale layers. But this won't work with Context documents until the next revision of the spec, which will support scale hints -- If I use this option the scale dependent layer turns up at the rights point, but has a STATUS OFF (using option 15 this layer is visible). This is caused by the following lines of LegendTemplate code: else $oLayer->set("status", MS_OFF); -- The existing solution to track new layers should be applied to scale-dependent layers. I think we need a new mapscript function to return a list of layers that are included in the legend when using mapscript's processlegendtemplate function.
I agree we should have some function that gives the list of layers or a function that can tell you if a certain layer is used in the legend or not. I have checked the processlegendtemplate code and It is not an abvious (5 minutes :) change to get that info. It needs to be restructured a bit to achieve this.
excellent, I'll file a mapserver bug to request this new feature.
this was recorded as bug 539 in the MapServer bugzilla. This will likely not be fixed for the 1.99 release
updated version to 1.99
Changed target to 2.1.
Has this issue not become unimportant cq fixed because a new keyword was added to the Mapscript legend template? http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=648
Bart is right, this bug should be marked INVALID because it was addressed by the MapServer html legend fix. anyone object?
oops, i'll leave open for now..
no this is a different issue. The mapserver bug addressed the need to determine if a layer is in/out of scale as part of the HTML legend template processor, but it doesn't fix the HTML Template widget's problem of knowing when the layer is in/out of scale.
Changed Target Milestone to FUTURE. (Enhancements may be moved from this target to specific "versioned" targets after product design review cycles.)
Changed Severity to enhancement.