Hi All,
I am trying to implement spatial filter on feature service. I believe SketchEditor would be appropriate control for this.
I have toolbar button on map to activate spatial filter and keep activate until user selects another tool.
Once i finished drawing with SketchEditor it does't allow me to draw another object.
Is there any way i can draw multiple objects simultaneously after activating control?
Any help would be appreciated.
Prashant
Solved! Go to Solution.
You could just do it in a loop calling draw every time it completes:
while(toolbarButton.IsOn)
{
try {
var geometry = await editor.StartAsync(SketchCreationModel.FreehandPolygon, false);
}
catch(TaskCanceledException)
{
break;
}
}
You could just do it in a loop calling draw every time it completes:
while(toolbarButton.IsOn)
{
try {
var geometry = await editor.StartAsync(SketchCreationModel.FreehandPolygon, false);
}
catch(TaskCanceledException)
{
break;
}
}