OpenLayers 3 modify end event

المشرف العام

Administrator
طاقم الإدارة
I want to save the geometry data after I modify it, so I need an event that fire after I finish to modify the feature.I use the following from this post: listener modify interaction

var selected_features = select.getFeatures();// when a feature is selected...selected_features.on('add', function (event) { // get the feature var feature = event.element; feature.on("change", function (event) { logStatus(feature.getId() + " has been changed!\n"); });});But this listener fires too many times in a single modification, and if I am using 'once' instead of 'on' its fires only the first little change and no more, so its not saving the real change.I need something like "changeend" or "modifyend" that will fire when I will finish to modify the feature, what can i use?



أكثر...
 
أعلى