Sunday, 30 July 2017

geoserver - Is it possilbe to change SLD from client side?


How to change predefile SLD in client side? The reason I want this is I want to turn label on and off on client side.



Answer




Easiest way is to have two SLD files and change the style in the WMS request depending on if you want labels on or off.


Alternatively you could have a separate layer with just labels and turn that on/off as needed.


Or you could try to have a local SLD file and upload it with each request but that will be slower and much harder to handle on the client.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...