[Chameleon] Layer Selection

William A. Bronsema wbronsema at dmsolutions.ca
Thu Jun 24 22:22:01 EDT 2004


Hi Eric,

The legend template is the simplest way to go IMHO, but it sounds like
you need the XMLThemeLegend widget.  It allows you to control groups of
layers.  Let me know if you need an example to follow.

Regards,
Bill

Eric Bridger wrote:

> 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
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 

-- 
________________________________________________

  William A. Bronsema, C.E.T.
  Applications Developer,
  DM Solutions Group Inc.

  e-mail: wbronsema at dmsolutions.ca
  Web   : http://www.dmsolutions.ca
  Phone : (613) 565-5056 ext.25
  Fax   : (613) 565-0925
________________________________________________





More information about the Chameleon mailing list