<!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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Chameleon 2.4&nbsp; </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 &quot;WMS&quot;</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">&lt;/div&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&lt;div&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp; &lt;div class=&quot;groupLabel&quot;&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;span style=&quot;width:22&quot;&gt;&lt;input type=&quot;checkbox&quot; id=&quot;[leg_group_name]&quot; name=&quot;[leg_group_name]&quot; onclick=&quot;toggleGroup(this);&quot;&gt;&lt;/span&gt;</FONT></SPAN></P>

<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;span style=&quot;width:22&quot;&gt;&lt;img id=&quot;[leg_group_name]_folderImage&quot; src=&quot;images/close.gif&quot; onclick=&quot;toggleLayers('[leg_group_name]');&quot;&gt;&lt;/span&gt;</FONT></SPAN></P>

<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;span&gt;&lt;a style=&quot;color:#333333; text-decoration: none;&quot; href=&quot;javascript:void(0);&quot; onclick=&quot;toggleLayers('[leg_group_name]');&quot;&gt;[leg_group_name] &lt;/a&gt;&lt;/span&gt;</FONT></SPAN></P>

<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp; &lt;/div&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&lt;/div&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&lt;script language=javascript&gt;initGroup('[leg_group_name]');&lt;/script&gt;</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">&nbsp;&lt;div&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; [if name=SHOWINLEGEND&nbsp; oper=isnull]</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp; &lt;span style=&quot;width:22&quot;&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&quot;radio&quot; name=&quot;my_legend&quot; onclick=&quot;CWCSelectLayer('[leg_layer_name]', true)&quot;[if name=selected value=1] CHECKED[/if] value=&quot;[leg_layer_name]&quot;&gt;</FONT></SPAN></P>

<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp; &lt;/span&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp; &lt;span style=&quot;width:22&quot;&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&quot;checkbox&quot; id=&quot;layer-[metadata name=group]-[metadata name=layer_index]&quot;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name='legendlayername[]' value=&quot;[leg_layer_name]&quot;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [if name=layer_status oper=eq value=1]CHECKED[/if]</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [if name=layer_status oper=eq value=2]CHECKED[/if]</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; onclick=&quot;toggleLayer(this);&quot;&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp; &lt;/span&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp; &lt;span style=&quot;width:22&quot;&gt;&lt;img src=[leg_icon]&gt;&lt;/span&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [if name=wms_title oper=isnull]</FONT></SPAN>

<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">&lt;a href=&quot;#&quot; onclick=&quot;javascript:LegendTemplateLayerInfo('[leg_layer_name]');&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> </SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span style=&quot;width:105&quot; class=&quot;layerLabel&quot;&gt; [leg_layer_name] </FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/span&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">&lt;/a&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>&nbsp;<FONT SIZE=2 FACE="Arial"> </FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [/if]</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [if name=wms_title oper=isset]</FONT></SPAN>

<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">&lt;a href=&quot;#&quot; onclick=&quot;javascript:LegendTemplateLayerInfo('[leg_layer_name]');&quot;&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span class=&quot;layerLabel&quot;&gt; [metadata name=WMS_TITLE] </FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/span&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT COLOR="#FF0000" SIZE=2 FACE="Arial">&lt;/a&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [/if]</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; [/if]</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp; [if name=SHOWINLEGEND oper=isset]</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&quot;hidden&quot; name='legendlayername[]' id=&quot;nope&quot; value=&quot;[leg_layer_name]&quot;&gt;</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp; [/if]</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">&nbsp;&lt;/div&gt;</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>