Hello all,<br><br>Thanks Jason. I haven&#39;t tried that yet but i suppose it should work... It makes sense!<br><br>Cheers,<br>Hugo<br><br><div class="gmail_quote">On Tue, Jun 7, 2011 at 4:10 PM, Jason Hochschild <span dir="ltr">&lt;<a href="mailto:sk1@sk1consulting.com">sk1@sk1consulting.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I don&#39;t know if this will work, but try to define a &#39;group&#39; literal in<br>
the options when defining the WMS layer and then filter on that when<br>
defining the container:<br>
<br>
var wmslayer = new OpenLayers.Layer.WMS(<br>
                &quot;layername&quot;, &quot;/geoserver/gwc/service/wms&quot;,<br>
                { layers: &#39;what:ever&#39;, transparent: true, format: &quot;image/gif&quot; },<br>
                { isBaseLayer: false, visibility: true, group: &quot;groupName&quot; }<br>
);<br>
<br>
and in the loader for the container:<br>
<br>
loader: {<br>
        filter: function (record) {  // this filters on the literal &#39;group:&#39;<br>
on each layer<br>
                return record.get(&quot;layer&quot;).options.group === &quot;groupName&quot;;<br>
        }<br>
}<br>
<br>
Good Luck<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org">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>
</blockquote></div><br><br clear="all"><br>-- <br>Hugo Martins<br>LabNT - ISEGI UNL<br>Campus de Campolide<br>1070-312 Lisboa<br>N 38°43&#39;56.84&quot;, W 9°9&#39;35.74&quot;<br>