[Chameleon] GroupLayers_and_WMS_adding

Buchholz, Robert Robert.Buchholz at LUA.Brandenburg.de
Thu Sep 20 07:54:35 EDT 2007


Dear list,

MS4W 1.6	 Chameleon 2.4	
Sample: OGC-Widgets, with XML ThemeLegend

Can someone help me please?
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 red (see later)!
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.
Is there a chance to define in the mapfile something like:
GROUP "WMS"
where all dynamically added WMS get placed? If yes, how? Maybe modification of the LegendTemplate.html?

Any ideas, suggestions would be very helpful,
Robert




File: C:\ms4w\app\chameleon\samples\htdocs\LegendTemplate.html

[leg_group_html]
</div>
<div>
  <div class="groupLabel">
    <span style="width:22"><input type="checkbox" id="[leg_group_name]" name="[leg_group_name]" onclick="toggleGroup(this);"></span>
    <span style="width:22"><img id="[leg_group_name]_folderImage" src="images/close.gif" onclick="toggleLayers('[leg_group_name]');"></span>
    <span><a style="color:#333333; text-decoration: none;" href="javascript:void(0);" onclick="toggleLayers('[leg_group_name]');">[leg_group_name] </a></span>
  </div>
</div>
<script language=javascript>initGroup('[leg_group_name]');</script>
[/leg_group_html]
[leg_layer_html order=ascending opt_flag=15]
 <div>
   [if name=SHOWINLEGEND  oper=isnull]
     <span style="width:22">
     <input type="radio" name="my_legend" onclick="CWCSelectLayer('[leg_layer_name]', true)"[if name=selected value=1] CHECKED[/if] value="[leg_layer_name]">
     </span>
     <span style="width:22">
       <input type="checkbox" id="layer-[metadata name=group]-[metadata name=layer_index]"
              name='legendlayername[]' value="[leg_layer_name]"
              [if name=layer_status oper=eq value=1]CHECKED[/if]
              [if name=layer_status oper=eq value=2]CHECKED[/if]
              onclick="toggleLayer(this);">
     </span>
     <span style="width:22"><img src=[leg_icon]></span>
       [if name=wms_title oper=isnull]
<a href="#" onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');">      
         <span style="width:105" class="layerLabel"> [leg_layer_name] 
         </span>
</a>         
       [/if]
       [if name=wms_title oper=isset]
<a href="#" onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');">
          <span class="layerLabel"> [metadata name=WMS_TITLE] 
          </span>
</a>
       [/if]
   [/if]
     [if name=SHOWINLEGEND oper=isset]
        <input type="hidden" name='legendlayername[]' id="nope" value="[leg_layer_name]">
     [/if]
          
 </div>
[/leg_layer_html]

-----------------------------------------
Robert Buchholz
Sachbearbeiter (Trainee)
Referat GIS-Zentrale
Landesumweltamt Brandenburg
Mail: Robert.Buchholz at LUA.Brandenburg.de 
Internet: http://www.brandenburg.de/lua
Kein Zugang für elektronisch signierte sowie für verschlüsselte elektronische Daten.
-----------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20070920/92f56e4a/attachment.html


More information about the Chameleon mailing list