AnsweredAssumed Answered

Custom MeasureTool not redrawing features in v4.6

Question asked by Stephen.Patterson77 on Jan 31, 2018
Latest reply on Jan 31, 2018 by Stephen.Patterson77

I built a custom Measuring Widget with Typescript and it works perfectly in 4.5.  I mimicked the old API functionality of letting a user continually redraw polygons or polylines while the widget is still active. 


In 4.6, the SketchViewModel in my widget is only drawing a feature the first time around and then fails to draw any additional features for measuring.  


I can't figure out any way to get it to start drawing a new feature after draw-complete in 4.6 and was curious if there were changes to the SketchViewModel's draw.activeAction events. 


I attached the Typescript file, as well as the built JS file. I also included a CSS file that I use for hover styles.  Some of the styles are for another Annotation Widget I made as well and don't apply to the Measuring Widget.