ol2
ol2 copied to clipboard
fix to: https://github.com/openlayers/openlayers/issues/1404
Add viewparams to list of params when building url for getFeatureInfo. This enables requesting getFeatureInfo for WMS layers that are from the database - defined as sql-view layers in geoserver.
viewparams is not defined in the OGC WMS spec. It's a vendor specific param, hence it should go in vendorParams instead.