AnsweredAssumed Answered

Listen for on-create feature event

Question asked by DevonTaig on Feb 9, 2015
Latest reply on Feb 9, 2015 by rscheitlin

I'm trying to figure out how to listen for the on-create feature event.  I'm working with the Editor widget, but it doesn't seem to expose any events. Now the attribute editor (which I can get from the editor using the code below) does expose events, but sadly not the one I'm looking for.  The following code works great to get the attribute changes, but how do I get those new features?


var attInspector = this.editor.attributeInspector;

alert("attInspector = " + attInspector);

attInspector.on("attribute-change", function(evt) {

   alert("Attribute changed");

   feature = evt.feature;

   //more code follows...