0

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.

ahocevar
  • 5,448
  • 15
  • 29
N. Silviu
  • 113
  • 1
  • 8

1 Answers1

0

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.

Bob Holmes
  • 626
  • 4
  • 3