[OpenLayers-Users] how do i append extra parameters to the
outgoing WMS requests from OL client?
Christopher Schmidt
crschmidt at metacarta.com
Fri May 11 13:58:51 EDT 2007
On Fri, May 11, 2007 at 10:51:40AM -0700, Mike Quentel wrote:
> Thank you. This example works:
>
> var wmsLayer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
> "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'});
>
> wmsLayer.mergeNewParams({"beer": "good"});
The third parameter to the WMS Layer *is* parameters:
var wmsLayer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic',
'beer':'good'});
mergeNewParams is designed for use after a layer is already in
existence.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list