How to use SketchEditor Freehand v100.1

1227
11
07-10-2017 08:26 AM
FrancisGagne
New Contributor

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?

0 Kudos
11 Replies
FrancisGagne
New Contributor

Every users using this feature will be impacted, so a potential thousand right now.

0 Kudos
AlexanderNohe1
Occasional Contributor III

Thanks for adding that.  I brought this up to the team internally.  If you want a public defect to track this, I would encourage contacting Esri Support Services and logging a bug there.  They will be able to create a public defect for tracking purposes.

0 Kudos