[Users] Loading WMS layer from WMSCapabilities Store

Hugo hfpmartins at gmail.com
Wed Jun 8 12:43:03 CEST 2011


Hello all,

Thanks Jason. I haven't tried that yet but i suppose it should work... It
makes sense!

Cheers,
Hugo

On Tue, Jun 7, 2011 at 4:10 PM, Jason Hochschild <sk1 at sk1consulting.com>wrote:

> I don't know if this will work, but try to define a 'group' literal in
> the options when defining the WMS layer and then filter on that when
> defining the container:
>
> var wmslayer = new OpenLayers.Layer.WMS(
>                "layername", "/geoserver/gwc/service/wms",
>                { layers: 'what:ever', transparent: true, format:
> "image/gif" },
>                { isBaseLayer: false, visibility: true, group: "groupName" }
> );
>
> and in the loader for the container:
>
> loader: {
>        filter: function (record) {  // this filters on the literal 'group:'
> on each layer
>                return record.get("layer").options.group === "groupName";
>        }
> }
>
> Good Luck
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>



-- 
Hugo Martins
LabNT - ISEGI UNL
Campus de Campolide
1070-312 Lisboa
N 38°43'56.84", W 9°9'35.74"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110608/f483598f/attachment.htm 


More information about the Users mailing list