|
||||
[Chameleon] theme selectorPaul Spencer spencer@dmsolutions.caTue, 25 Nov 2003 19:55:39 -0500
|
Bart, it is possible that the XMLThemeLegend may do the job for you. One way of displaying layers using the XMLThemeLegend widget is as a 'radio' group, which means that only one layer in a 'theme' can be on at a time. The XMLThemeLegend uses Themes and Groups. Themes contain Groups, Groups contain Layers ... and a Layer is a mapserver layer. This means that you can control groups of layers with a single control. This allows you do do things that are not possible within mapserver's current 'group' support. The Hawaii demo uses this widget. It is a bit complicated to set up, and not very well documented, but it may be worthwhile. A second option would be the creative use of the mapserver GROUP attribute, it can be used with the html legend control quite nicely. Cheers, Paul Bart van den Eijnden wrote: > Hi list, > > I have a question about some functionality. I do not know whether or not > this functionality is present in Chameleon. > > I have a Chameleon application which has 3 themes. Each theme uses a > different classification on the same data. Let's call them Theme A, B > and C for simplicity. These 3 themes are available for three moments in > time, 1980, 1990 and 2000. So at the moment I have 9 layers in my > application. > > I want to present the user a select box with the three themes, based on > which the layers are shown, in the map and in the LegendTemplate widget. > > In what way would it be possible to implement this functionality? By > using a simple convention in the layer names for instance? > > Also, Chameleon has a TimeFilter widget which would perform this kind of > functionality based on the time instead of based on the theme. But if I > understand correctly Mapserver does not support the time parameter from > the WMS spec yet? > > Best regards, > Bart > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| -----------------------------------------------------------------
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |