AnsweredAssumed Answered

How to use SketchEditor Freehand v100.1

Question asked by francisgagne on Jul 10, 2017
Latest reply on Jul 19, 2017 by ANohe-esristaff

I tried to use the new SketchEditor. There's not much info on it beside the API doc, so here's my code:

if (viewerModel.getMapView().getSketchEditor() == null) {
SketchEditor sketch = new SketchEditor();
viewerModel.getMapView().setSketchEditor(sketch);
sketch.start(SketchCreationMode.FREEHAND_LINE);
} else {
viewerModel.getMapView().getSketchEditor().stop();
viewerModel.getMapView().setSketchEditor(null);
}

When I start the freehand sketch, the map pan with my movement so the line created is barely moving. I tried to overide the map onTouchListener onScroll , but it seems the SketchEditor is already doing that. There's probably another step I need to make I guess?

 

Can you help?

Outcomes