I would like to create an editing tool with which I can draw freehand.
In the constructor of the tool, I set the following:
IsSketchTool = true;
SketchType = SketchGeometryType.OpenLasso;
In the method HandleMouseDownAsync(MapViewMouseButtonEventArgs e), I get the current sketch because I want to add the clicked point to it:
Polyline sketchPolyline = await base.GetCurrentSketchAsync() as Polyline;
In the method OnToolMouseMove(MapViewMouseEventArgs e), I do the same as above.
My question: what geometry type does the method GetCurrentSketchAsync() return? It is not a polyline. But what else?
Thank you for your reply in advance.