I need to remove a feature style to set up another one. How can I do it? Do I just have to set up the new one and the last one will be removed by default?

I've looked at the documentation and did not found any answer to this.


Yes, you just assign a new style to your vector layer or your feature using the setStyle method. The old one is removed automatically.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.