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.
Asked
Active
Viewed 177 times
0
-
Is possible to create a sample Jsfiddle or anywhere.. where we can reproduce the same error or see whatever you have tried so far ? – Vikash Pandey May 31 '17 at 09:06
-
See the comments from ending js part. http://jsfiddle.net/silviu_negoita/x2cg1L5u/ – N. Silviu Jun 06 '17 at 10:48
1 Answers
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