I have select and modify interaction instantiated. Also I have event onChange binded to selected feature.
select.getFeatures().getArray()[0].on('change',function (){
sources.verteksi.clear()
koordinate=select.getFeatures().getArray()[0].getGeometry().getCoordinates()
koordinate.forEach(function(koord){
koord.forEach(function(ko){
sources.verteksi.addFeature(new ol.Feature({geometry:new ol.geom.Point(ko,'XY')}))
})
})
})
On the other hand I have layer which I modify and select :
arkod_editing=new ol.layer.Vector({
source: sources.arkod_editing,
style: new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'red',
width: 2
}),
fill: new ol.style.Fill({
color:'rgb(190,270,80,0.5)'
}),
})
})
The problem is when I modify feature from arkod_editing layer I send it to transactional WFS but before I am setting id of feature which triggers onChange event like feature is coming from select layer. Is it possible to outflank the bond beetween select and modified feature in layer arkod_editing?