The interactive geometry-editing utility of the SketchViewModel will not work if the view's extent is not normalized. This can be verified in the sample "Edit features with the Editor widget" with the following steps:
- Load the sample.
- Pan east (or west) until you go all the way around the world. This will go much faster if you zoom way out, pan, and then zoom back in to the editable features.
- In the "Editor" widget, click "Edit feature".
- Click on a polygon feature; this puts the feature into interactive geometry-editing mode.
- Move the mouse cursor over the rotation handle; note that rotation handle doesn't become highlighted like it should.
- Click and drag on the rotation handle; the feature is not rotated, and the map is panned instead. The same occurs if you attempt to use the resize handles or drag the feature to a new location.
This was observed in 4.18 and 4.19; I don't know if it worked in previous versions or not.
I haven't attempted to troubleshoot the API code itself. Instead, my current workaround is to detect if the view's extent is normalized before using the SketchViewModel, and if it is not, to normalize it before allowing further action to take place.