[Users] Need Layer Tree examples for grouping several layers

Mehmet Sirin m.sirin07 at googlemail.com
Tue Jul 27 21:19:08 CEST 2010


That's a good idea...works!

Thank you

2010/7/26 Julien-Samuel Lacroix <jlacroix at mapgears.com>:
> Hi,
>
> In one of our application, what we did is adding "group" to the layer
> options and filter on that.
>
> loader: {
>        filter: function(record) {
>            return record.get("layer").options.group == "Group1"
>        },
>
> This give us a layer customisable by groups of layer.
>
> Julien


More information about the Users mailing list