Hi Andreas...<br><br>In my case I need :<br> - Possibility to create a custom treeview (like model in mapfish)<br> - Supporting sublayer (Layer.Mapserver), like Mapfish does<br> - Possibility to add a Radio button in some nodes (with Checkbox)<br>
- Possibility to takeoff all icons (mapfish stay with a ugly white space when I dont use a icon)<br><br>Thanks <br><br>Paul<br><br><div class="gmail_quote">On Fri, Jul 17, 2009 at 6:02 AM, Andreas Hocevar <span dir="ltr"><<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hey Paul,<br>
<br>
sorry for the delayed reply. The difference between the layer tree approach in Mapfish and GeoExt is that the former uses a model on the tree level for custom trees, and the latter lets you use the a plain Ext configuration for the tree, because you have a choice of different node types for representing layers.<br>
<br>
The layer tree that you see in <a href="http://demo.mapfish.org/mapfishsample/1.1/examples/tree/tree_automatic.html" target="_blank">http://demo.mapfish.org/mapfishsample/1.1/examples/tree/tree_automatic.html</a> will be possible in GeoExt, with this configuration:<br>
<br>
var tree = new Ext.tree.TreePanel({<br>
root: new GeoExt.tree.LayerContainer({<br>
defaults: {<br>
loader: new GeoExt.tree.LayerParamsLoader({<br>
param: "LAYERS"<br>
})<br>
}<br>
}),<br>
...<br>
});<br>
<br>
This does not work yet, but as Eric said, there is work going on to make it happen. We are currently switching to loaders, like Ext.tree.TreeLoader, for populating LayerContainers (ticket #122). The next steps will be:<br>
<br>
* Resurrect the LayerParamsNode (known from a previous patch for #22). This can do more than just change the layers param on WMS layers. It can also be used e.g. to use CQL_FILTER and any arbitrary params that OpenLayers layers take in the params object.<br>
<br>
* Create a loader that looks up a params name (e.g. LAYERS) as argument and will create one subnode for every param it finds. To make this even smarter, the loader could process additional information from the LayerStore, e.g. titles for the node texts.<br>
<br>
Please give feedback if this makes sense for your use case.<br>
<br>
Regards,<br>
Andreas.<br>
<br>
james wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Thank guys...<br>
And how about a "custom" treeview ? Like 'model' in mapfish...<br>
<br>
Paul<br>
<br></div><div class="im">
On Mon, Jul 13, 2009 at 12:56 PM, Eric Lemoine <<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a> <mailto:<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a>>> wrote:<br>
<br>
On Monday, July 13, 2009, Paul james <<a href="mailto:pauljame@gmail.com" target="_blank">pauljame@gmail.com</a><br></div><div class="im">
<mailto:<a href="mailto:pauljame@gmail.com" target="_blank">pauljame@gmail.com</a>>> wrote:<br>
> Hello Guys...<br>
><br>
> Using Mapfish with Mapserver layer, my treeview can turn on/off<br>
layers individually...<br>
> Example :<br>
<a href="http://demo.mapfish.org/mapfishsample/1.1/examples/tree/tree_automatic.html" target="_blank">http://demo.mapfish.org/mapfishsample/1.1/examples/tree/tree_automatic.html</a><br>
> Example, I can turn parkings and summits, but just 1 layer is<br>
generated with both...<br>
><br>
> Is it posible to do that using only GeoExt?<br>
<br>
turning on and off sublayers (i.e. layers in a Layer.WMS instance)<br>
isn't supported by GeoExt.tree at that time. But some work has been<br>
started... Maybe Andreas can say more about this work.<br>
<br>
Cheers,<br>
<br>
><br>
> Paul<br>
><br>
><br>
<br>
--<br>
Eric Lemoine<br>
<br>
Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>
73377 Le Bourget du Lac, Cedex<br>
<br>
Tel : 00 33 4 79 44 44 96<br>
Mail : <a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a><br></div>
<mailto:<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a>><br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
<br>
<br><div class="im">
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</div></blockquote><font color="#888888">
<br>
<br>
-- <br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
</font></blockquote></div><br>