Hi devs,

I have been testing the 2.1 version with my codebase and have run into a few issues with the new approach to layer visibility and node synching in the GeoExt.tree.Panel Previously updateLayerVisibilityByNode was handled by the different node plugins. In 2.1 it is moved into the GeoExt.tree.Util class, and applied to "checkchange" events for all nodes in the tree.

See:

https://github.com/geoext/geoext2/blob/master/src/GeoExt/tree/Panel.js
https://github.com/geoext/geoext2/blob/master/src/GeoExt/tree/Util.js

However this means other custom layer types, such as parameter nodes (that I'm trying to implement as a pull request), turn off whenever any of the nodes are unchecked. There doesn't seem to be an easy way to override this (apart from removing the event from the whole tree). The updateLayerVisibilityByNode takes into account "isBaseLayer", but maybe some other property could be added to allow skipping or overriding these checks?
Or is there another way?

Good luck with the upcoming release!

Regards,

Seth

--
web:http://geographika.co.uk
twitter: @geographika





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

Reply via email to