Select to view content in your preferred language

Editor events

484
3
12-08-2022 11:53 PM
RemiBecheru
Occasional Contributor

How to trigger an event when that exclamation mark is added to the map ?

 

0 Kudos
3 Replies
ReneRubalcava
Honored Contributor
0 Kudos
RemiBecheru
Occasional Contributor

Unfortunately that does not work, any other idea ? 

0 Kudos
JoelBennett
MVP Regular Contributor

It appears that you are using the Editor widget, so I think what you want is to capture the "create" event of the underlying SketchViewModel instance.  In that case, it would be something like:

editor.viewModel.sketchViewModel.on("create", function(evt) {
	if (evt.state == "complete") {
		//do something with evt.graphic here
	}
});

 

0 Kudos