Disable ol4 some default event listeners

191 Views Asked by At

Is there any chance to disable some default event listeners on some ol4 components or stop trigerring some basic events? For example, i want to push an element in ol.Collection without trigering the 'add' event, or change the geometry of a ol.Feature without trigering the 'change' event.

1

There are 1 best solutions below

0
On

ol.source.Vector.addFeatures() will add the passed features and then trigger a single CHANGE event - note that it does fire an ADDFEATURE event for each feature.