[Chameleon] Layer Selection

Eric Bridger eric at gomoos.org
Thu Jun 24 16:05:48 EDT 2004


Back with some newbie questions.

1) Using Chameleon 1.99 under Apache on freeBSD.  The install is done and everything is working well. (After a few gotchas).  All the samples work fine. 
2) I started with samples/sample_enhanced.phtml example and quite easily got it to display an existing map file of mine, successfully changed the scale-bar, got my own reference map to work, added our own projection.  All of this very quickly.  Congratulations to the Chameleon developers.
3) So  my question:  I cannot seem to get my head around how to control my layers (all local, no WMS).  To me it seems the most basic issue but ... How to turn on or off layers.

In the sample_enhanced.html I see:

<cwc2 type="SelectLayers" />  Removing this widget seems to have no affect on the app.

I also see:

 <cwc2 type="LegendTemplate" visible="true" embedded="true" template="legend_template.html" popupstyleresource="TextButtons" popupwidth="500" popupheight="400" status="false" menubar="false"/>

This widget is working to turn on/off my layers. But it displays ALL my layers (some of which I do not wish the user to control).  I.e. the equivilent of mapserver DEFAULT status.  This is working because of the HTML Legends template.  Are HTML legends the only path to controlling the display of layers?   What about the LAYER GROUP property?  I would like to display on Layer name and actually turn on a group of layers.

Anyway the short question is: What widgets to use to control the displaying of layers?

Thanks.

Eric



More information about the Chameleon mailing list