[OpenLayers-Users] changing sld's dynamically just not working
shiva subramanya
shiv at atree.org
Wed Dec 18 05:45:33 PST 2013
Hi
I want to change SLD's dynamically on my map for the WMS layers with the
following code.
var sldfile = 'http://myserver/resources/sld/test.sld';
layer.mergeNewParams({sld: sldfile,SLD_BODY: null});
But the map refreshes when i execute this and the styles dont change.
I checked the accessibility of the sld url and it is accessible on the
network.
I need some help to make this work.
Thanks
Shiv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20131218/b6c25859/attachment.html>
More information about the Users
mailing list