Question
When activating SketchViewModel by calling sketchViewModel.create('polyline'), is it possible to give it a starting geometry programmatically so that the sketch starts with one or more vertices before the user clicks the map or scene? If it is possible, how is it done?
Use case
The use case is that I'm adding SketchViewModel to an existing application that allows the user to switch between 2D mode (MapView) and 3D mode (SceneView). It's working really well for allowing the user to draw graphics in both 2D mode and 3D mode and see the graphics after switching the mode. When the mode changes, I recreate the SketchViewModel object with the new view and call sketchViewModel.create('polyline') to resume drawing. That works, but the current in-progress sketch disappears, of course. I would like to let the user continue the sketch after the 2D/3D switch. That's why I need to know if I can give SketchViewModel a starting geometry before turning it over to the user.