[OpenLayers-Users] changing sld's dynamically just not working
Arnd Wippermann
arnd.wippermann at web.de
Thu Dec 19 10:55:51 PST 2013
Hi Shiv,
your code should work, but is your sld valid xml and is the named layer
correct?
If you request a MapServer layer, then in the mapfile sld must be enabled.
Arnd
_____
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von shiva
subramanya
Gesendet: Mittwoch, 18. Dezember 2013 14:46
An: openlayers-users
Betreff: [OpenLayers-Users] changing sld's dynamically just not working
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/20131219/3fa59be0/attachment.html>
More information about the Users
mailing list