Actually that works perfectly! I was unaware that I could use a layer that 
wasn't actually added to the map. I guess I will just define several layers I 
actually need to display info for and then use these with the GetFeature 
control exclusively. Thanks again!



-----Original Message-----
From: Eric Lemoine [mailto:[email protected]] 
Sent: December 21, 2010 10:17 AM
To: Andrew Stewart
Cc: [email protected]
Subject: Re: [OpenLayers-Users] WMSGetFeatureInfo with grouped layers

On Tuesday, December 21, 2010, Planet)x <[email protected]> wrote:
>
> I'm not sure what you mean.. since I have configured my layers to include
> multiple layers like-
>
>    //Trails Group
>          var layer_Trails = new OpenLayers.Layer.WMS("Trails",
> "http://localhost/WebServices/Request.aspx";,
>                 {
>                      layers: ['Onstreet_Bike_Route',
> 'Mountain_-_Stunt_Biking', 'Equestrian', 'Gravel_or_Shale', 'Asphalt'],
>                      VERSION: "1.1.1",
>                      transparent: true
>                     },
>                     { isBaseLayer: false,
>                       singleTile: true,
>                       visibility: false,
>                       buffer: 1,
>                       ratio: 1
>                     }
>                 );
>
> So are you saying I need to split my layers for the WMSGFI to work properly
> for individual layers?

I'm saying you could possibly create a Layer.WMS for use with the GFI
control only. This Layer.WMS will include only the layers that you
want queried. And you won't add this layer to the map. But maybe this
isn't a good idea :-)

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com


[This message has been scanned for security content threats and viruses.]

[The City of Red Deer I.T. Services asks that you please consider the 
environment before printing this e-mail.]




_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to