Select to view content in your preferred language

How to change highlight color and activeSymbol for polyline on SketchViewModel

246
1
03-06-2024 10:36 AM
OmarIsmail
New Contributor

Hi 

I am using SketchViewModel to draw some graphics. I want to change the painting symbol for line drawing while drawing. something like activeFillSymbol but for polylines. 
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.ht...


 
Updating Media

 

Thanks

0 Kudos
1 Reply
Auraiporn_A
Esri Contributor

I think you can use a SimpleLineSymbol to change the color of polylines while drawing. You can check out this sample code here: https://codepen.io/AuraipornA/pen/xxYXMwr

I hope it helps. 

- Auraiporn A.

0 Kudos