1

I want to clear the features in a vector layer source , I have tried

features.getFeatures().clear();

but it doesn't work!

1 Answer 1

1

Look into this documentation page from Openlayers ol.source.Vector

You could include this method as such:

vectorSource.clear

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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