<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi List!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have some layers which should always be available
and on top of any other layer.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have made a map file, adding a meta tag for these
layers such as:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>LAYER<BR> CONNECTIONTYPE
postgis<BR> CONNECTION "user=elu password=pw dbname=db
host=localhost"<BR> DATA "the_geom from
lineup"<BR> FILTER "state = 'T'"<BR> NAME
"Timed-out Stations"<BR> TYPE POINT<BR>
STATUS OFF<BR> TRANSPARENCY ALPHA<BR>
METADATA<BR>
"isStation" "true"<BR> END<BR>
CLASS<BR>
STYLE<BR> SYMBOL
'TimeOutStation'<BR> COLOR 0 0
0<BR> OUTLINECOLOR 0 0
0<BR> END<BR> END #
Class<BR> PROJECTION<BR>
"init=epsg:4326"<BR> END<BR>END</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Using the chameleon example, I modified
the "legend_template.html" file such as:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[leg_layer_html order=ascending opt_flag=15]<BR>[if
name=isStation oper=isnull]<BR> <div id='[leg_layer_name]_t'><tr
bgcolor="#ffffff" ID='[leg_layer_name]'><BR> <td
valign="top" width="10"><input type="radio" style="margin-top:1px;
margin-bottom:1px; height:14px;" name="my_legend"
onclick="CWCSelectLayer('[leg_layer_name]', true)"[if name=selected value=1]
CHECKED[/if] ></td><BR> <td nowrap valign="top"
width="18"><input type="checkbox" style="margin-top:1px;
margin-bottom:1px; height:14px;" name="legendlayername[]"
value="[leg_layer_name]"<BR> [if name=layer_status
oper=eq value=1]CHECKED[/if]<BR> [if name=layer_status
oper=eq value=2]CHECKED[/if]></td><BR> <td
valign="top" align="middle" width="15"><img border="0"
style="margin-top:0px; margin-bottom:0px; margin-right:0px;" src="[leg_icon
width=16 height=17]"></td><BR> [if name=wms_name
oper=isnull]<BR> <td valign="top" nowrap><a href="#"
onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');"><span
class="label">[leg_layer_name]</span></a></td></tr><BR>
[/if]<BR> [if name=wms_name oper=isset]<BR>
<td valign="top" nowrap><a href="#"
onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');"><span
class="label">[metadata
name=WMS_TITLE]</span></a></td></tr><BR>
[/if]</div><BR>[/if]<BR>[/leg_layer_html]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I duplicated the LegendTemplate widget so as to
have 2 different versions of it in the same page. One of them showing all the
layers without that meta data and the other one the layers with it.</FONT></DIV>
<DIV><FONT face=Arial size=2>This works great, but if I add dynamically a layer,
this gets on top of all the others, even the "static ones", but in the legend
the new layer is together with the other ones. If I want to put the new layer
down, I have to demote it as many times as I have static layers before it
actually demotes as it should.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am wondering if it is possible to define layers
in the map file which would NOT be handled by the automatic layer functions in
chameleon. I want to be able to show or hide them but NOT promote/demote or
delete them.</FONT></DIV>
<DIV><FONT face=Arial size=2>All the other layers must work as
usual.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Carlo Tronnberg</FONT></DIV></BODY></HTML>