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