Hello,

I'm playing with geoext to build a geoportal. One of the features I need is to show a panel with the layers available from the server, so I have used WMSCapabilitiesLoader.

Once done so, I felt like want to show those layers into groups. After researching a bit I couldn't see any straight option (at openlayers or geoext) to do it. I didn't want to write down the name of the layers and groups as arrays in the code: I'd rather prefer to configure that in a dinamically way, for the user make the changes she wanted without having to change the code.

So, I built a new class called WMSCapabilitiesWithLayersInGroupsLoader, which build the tree by creating the groups and appending to then the layers. The user links layers and groups by writing the name of a group in the keywords field for each layer (I did it be means of geoserver user panel).

For sure, the patch could be improved. Also tested with other servers (I did only tested with geoserver and I don't know if keywords is a field from the standard or a geoserver exclusive feature).

Your thoughts on this matter would be very valuable. Is another way to do it easier? Would be possible to integrate this patch within geoext? Which are the main problems to do so?

best,
amaneiro

Attachment: WMSCapabilitiesWithLayersInGroupsLoader.js
Description: application/javascript

_______________________________________________
Dev mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/dev

Reply via email to