Bug 179 - [Chameleon Widgets] Scale-dependent layers in LegendTemplate widget: not visible
: [Chameleon Widgets] Scale-dependent layers in LegendTemplate widget: not visible
Status: REOPENED
: Chameleon
Widget
: 1.99
: PC Windows 2000
: P3 enhancement
: FUTURE
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-01-12 16:40 by
Modified: 2004-08-10 20:15 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-01-12 16:40:34
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.
------- Comment #1 From 2004-01-12 18:00:20 -------
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. 
------- Comment #2 From 2004-01-12 18:34:37 -------
excellent, I'll file a mapserver bug to request this new feature.
------- Comment #3 From 2004-04-05 13:58:51 -------
this was recorded as bug 539 in the MapServer bugzilla.  This will likely not be
fixed for the 1.99 release
------- Comment #4 From 2004-04-08 08:36:35 -------
updated version to 1.99
------- Comment #5 From 2004-07-08 10:54:42 -------
Changed target to 2.1.
------- Comment #6 From 2004-07-08 12:12:41 -------
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
------- Comment #7 From 2004-07-31 17:02:57 -------
Bart is right, this bug should be marked INVALID because it was addressed by the
MapServer html legend fix.  anyone object?
------- Comment #8 From 2004-07-31 17:03:40 -------
oops, i'll leave open for now..
------- Comment #9 From 2004-08-03 08:24:43 -------
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.
------- Comment #10 From 2004-08-10 16:02:37 -------
Changed Target Milestone to FUTURE. (Enhancements may be moved from this target 
to specific "versioned" targets after product design review cycles.)
------- Comment #11 From 2004-08-10 20:15:41 -------
Changed Severity to enhancement.