geoext2 icon indicating copy to clipboard operation
geoext2 copied to clipboard

Grouped WMS Layer

Open yobiSource opened this issue 10 years ago • 3 comments

Is there an example of grouped WMS as in v1.1? http://api.geoext.org/1.1/examples/tree.html

This greatly reduces the traffic with many layers.

yobiSource avatar Aug 21 '14 15:08 yobiSource

As far as I can tell grouped tree layer nodes are not implemented in GeoExt 2.0.x. So there is no example showing this.

chrismayer avatar Aug 22 '14 12:08 chrismayer

Is it easy to implement? This is the only reason why I can not use geoext2.

yobiSource avatar Aug 25 '14 06:08 yobiSource

To implement this as application code should be doable. You can orientate yourself at the GeoExt 1.1 code doing this: https://github.com/geoext/geoext/blob/master/lib/GeoExt/widgets/tree/LayerParamNode.js

A possible way would be to implement your own LayerContainer as a subclass of https://github.com/geoext/geoext2/blob/master/src/GeoExt/tree/LayerContainer.js with a custom LayerLoader, which detects your child layers of your group layer.

chrismayer avatar Aug 25 '14 18:08 chrismayer