[OpenLayers-Users] dynamic SLD for WMS layer

Brad Spencer brad at cubewerx.com.au
Mon May 4 17:27:29 EDT 2009


Saj,

I just build the SLD in a server-side PHP script, save the file and apply
it. Probably not the best way to do it but it works a treat for me. 

Cheers, Brad...

-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On
Behalf Of saj
Sent: Monday, May 04, 2009 11:54 PM
To: users at openlayers.org
Subject: Re: [OpenLayers-Users] dynamic SLD for WMS layer


Hi ,

Hope you got a solution for adding filters to the active SLD on fly, even I
got stuck with the same problem, it would be very helpful for me if you can
suggest a solution with the code segment for the same.
Thanks....




floflo wrote:
> 
> hi,
> 
> I use a WMS polygon layer and want to apply different styles on it
> depending on indicators...
> 
> i know i can dynamicaly change the SLD of my layer with
> layer.mergeNewParams({SLD:..}); but i had to have made all of my SLD
> before.
> That i want is to generate it dynamically....
> 
> Is there a way to add filter or parameter in the active SLD of my layer ?
> Should I use the param "style" of my WMS layer instead (i saw there's one
> but not present in the API Doc).
> 
> thks for help
> 

-- 
View this message in context:
http://n2.nabble.com/dynamic-SLD-for-WMS-layer-tp2572331p2787346.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list