Bart van den Eijnden
Bart van den Eijnden
2.1-rc2 are you sure that is correct? That's an ancient version.
Can you tell me why you decided to use OpenLayers 2 in a project in 2017, when the new version has been out since 2014?
IMHO this should be up to the application to manage through the use of vendorParams: https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Control/WMSGetFeatureInfo.js#L109:L119
unfortunately there are servers out there that break with extra params that they don't know of
you will need to make use of `vendorParams` on `OpenLayers.Control.WMSGetFeatureInfo`
I see your point @chris58 you would need vendorParams to be a lookup per layer name or something similar Maybe we should add an extra event here where you could...
viewparams is not defined in the OGC WMS spec. It's a vendor specific param, hence it should go in vendorParams instead.
Create a PR that adds nl-BE.js and references nl.js etc. see this for an example: https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Lang/en-CA.js do the same for fr-BE.js and point to fr.js
No point asking this in the OpenLayers 2 issue tracker see this post on where to ask best: https://groups.google.com/forum/#!searchin/ol3-dev/stackoverflow$20for$20user/ol3-dev/WzJ8ewR8HGI/09726Th0RE0J
The existing code has been ported.