Hi,

you should use the vendorParams property of 
OpenLayers.Control.WMSGetFeatureInfo to set any vendor specific parameters such 
as viewparams.

Best regards,
Bart

-- 
Bart van den Eijnden
OpenGeo - http://opengeo.org
Expert service straight from the developers.



On Sep 5, 2012, at 11:13 AM, Simon Johnson <[email protected]> wrote:

> Hello list,
>  
> I have a WMSGetFeatureInfo control which is working correctly with my wms 
> layers apart from when these layers make use of viewparams + sql view.  The 
> viewparams are not included in the WMSGetFeatureInfo request url and so the 
> default values are used and the wrong values are returned.  Is it expected 
> behaviour for the viewparams to be not included and if so are there any 
> suggestions for approaches to get the viewparams into the request?
>  
> Thanks in advance
>  
> Simon
> 
> 
> 
>  
>  
> This email is for the intended recipient only. It may contain information 
> that is privileged, confidential and/or subject to copyright. If you are not 
> the intended
> 
>  recipient, please delete this email and any attachments and notify  
> [email protected]. You may not present this message or any part of it 
> to
> another party without consent from the sender.
> 
> Although the British Red Cross has taken steps to ensure this email and any 
> attachments are virus-free, we do not accept any responsibility for viruses, 
> or for
> inaccurate or incomplete information or failure to deliver information. It is 
> your responsibility to scan the email and any attachments to ensure they are 
> virus-free. 
>  
> The British Red Cross may monitor the content of emails sent or received by 
> its employees.
> 
> The British Red Cross Society, incorporated by Royal Charter 1908, is a 
> charity registered in England and Wales (220949) and Scotland (SC037738). 
>  
> The red cross emblem is a protective symbol, the use of which is restricted 
> by international and national law. It may not be reproduced without prior 
> authorisation.
> Click here for more information.
>  
>  
> 
> 
> 
> 
> 
> This message has been scanned for viruses by BlackSpider MailControl
> 
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

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

Reply via email to