Hello Chris,
Yes you can, you need to make a query on your server to get the GetCapabilities XML (a list of all the available layers and options). The GeoExt.data.WMSCapabilitiesStore can make the query for you by giving it an URL. Then, it will return you a set of records. Afterward with the records, you can generate manually a Tree for a greater flexibility. Otherwise, I think you can use GeoExt.tree.WMSCapabilitiesLoader to generate the Tree automatically for you. Here is an exemple of a valid XML file : http://api.geoext.org/1.1/examples/data/wmscap.xml François De : users-boun...@geoext.org [mailto:users-boun...@geoext.org] De la part de Christoph Mayrhofer Envoyé : 18 avril 2013 10:05 À : users@geoext.org Objet : [Users] Add all geoserver layers automatically Hi, I saw some examples that had a List of available layers and a button that you could click to add a selected layers to the map. Is it possible to have all layers on a Geoserver instance automatically added to the map. This would eliminate the need to change the JS code when a new layer is added to Geoserver. regards, Chris
_______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users