Hello all,<br><br>Thanks Jason. I haven'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"><<a href="mailto:sk1@sk1consulting.com">sk1@sk1consulting.com</a>></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't know if this will work, but try to define a 'group' 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>
"layername", "/geoserver/gwc/service/wms",<br>
{ layers: 'what:ever', transparent: true, format: "image/gif" },<br>
{ isBaseLayer: false, visibility: true, group: "groupName" }<br>
);<br>
<br>
and in the loader for the container:<br>
<br>
loader: {<br>
filter: function (record) { // this filters on the literal 'group:'<br>
on each layer<br>
return record.get("layer").options.group === "groupName";<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'56.84", W 9°9'35.74"<br>