<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>GroupLayers_and_WMS_adding</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Dear list,</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">MS4W 1.6 Chameleon 2.4 </FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Sample: OGC-Widgets, with XML ThemeLegend</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Can someone help me please?</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">I have an application (modified sample:OGC Widgets, with XMLThemeLegend). There i added the CustomLegendTree widget. Because I need later on connection to Metadata of Layers I add Changes in </FONT><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">red</FONT> <FONT SIZE=2 FACE="Arial">(see later)!</FONT></SPAN></P>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Right now I face the problem of adding dynamically WMS. I thing the problem is that Mapserver do not know to which GROUP (defined in mapfile) the WMS layer to put.</FONT></SPAN></P>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Is there a chance to define in the mapfile something like:</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">GROUP "WMS"</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">where all dynamically added WMS get placed? If yes, how? Maybe modification of the LegendTemplate.html?</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Any ideas, suggestions would be very helpful,</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Robert</FONT></SPAN>
</P>
<BR>
<BR>
<BR>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">File: C:\ms4w\app\chameleon\samples\htdocs\LegendTemplate.html</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">[leg_group_html]</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"></div></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"><div></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> <div class="groupLabel"></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> <span style="width:22"><input type="checkbox" id="[leg_group_name]" name="[leg_group_name]" onclick="toggleGroup(this);"></span></FONT></SPAN></P>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> <span style="width:22"><img id="[leg_group_name]_folderImage" src="images/close.gif" onclick="toggleLayers('[leg_group_name]');"></span></FONT></SPAN></P>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> <span><a style="color:#333333; text-decoration: none;" href="javascript:void(0);" onclick="toggleLayers('[leg_group_name]');">[leg_group_name] </a></span></FONT></SPAN></P>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> </div></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"></div></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"><script language=javascript>initGroup('[leg_group_name]');</script></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">[/leg_group_html]</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">[leg_layer_html order=ascending opt_flag=15]</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> <div></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> [if name=SHOWINLEGEND oper=isnull]</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> <span style="width:22"></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> <input type="radio" name="my_legend" onclick="CWCSelectLayer('[leg_layer_name]', true)"[if name=selected value=1] CHECKED[/if] value="[leg_layer_name]"></FONT></SPAN></P>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> </span></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> <span style="width:22"></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> <input type="checkbox" id="layer-[metadata name=group]-[metadata name=layer_index]"</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> name='legendlayername[]' value="[leg_layer_name]"</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> [if name=layer_status oper=eq value=1]CHECKED[/if]</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> [if name=layer_status oper=eq value=2]CHECKED[/if]</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> onclick="toggleLayer(this);"></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> </span></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> <span style="width:22"><img src=[leg_icon]></span></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> [if name=wms_title oper=isnull]</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"><a href="#" onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');"> </FONT> </SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> <span style="width:105" class="layerLabel"> [leg_layer_name] </FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> </span></FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"></a> </FONT> <FONT SIZE=2 FACE="Arial"> </FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> [/if]</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> [if name=wms_title oper=isset]</FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"><a href="#" onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');"></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> <span class="layerLabel"> [metadata name=WMS_TITLE] </FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> </span></FONT></SPAN>
<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial"></a></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> [/if]</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> [/if]</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> [if name=SHOWINLEGEND oper=isset]</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> <input type="hidden" name='legendlayername[]' id="nope" value="[leg_layer_name]"></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> [/if]</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> </FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> </div></FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">[/leg_layer_html]</FONT></SPAN>
</P>
<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">-----------------------------------------</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Robert Buchholz</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Sachbearbeiter (Trainee)</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Referat GIS-Zentrale</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Landesumweltamt Brandenburg</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Mail: Robert.Buchholz@LUA.Brandenburg.de </FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Internet: </FONT></SPAN><A HREF="http://www.brandenburg.de/lua"><SPAN LANG="de"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://www.brandenburg.de/lua</FONT></U></SPAN></A><SPAN LANG="de"></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Kein Zugang für elektronisch signierte sowie für verschlüsselte elektronische Daten.</FONT></SPAN>
<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">-----------------------------------------</FONT></SPAN>
</P>
</BODY>
</HTML>