Hello Friends,
I am trying to draw a curved segment given start point, bearing, radius and arc length. This functionality is present in ArcGIS Pro Traverse widget, looking to implement the same using ArcGIS JSAPI. Any direction on this is much appreciated, Thanks.
I don't think the Javascript API has a 'curve' object, or capacity to draw one through a widget, but maybe you can draw one using Javascript and then use it as feature geometry.
Here are 2 concept pages I found:
https://gis.stackexchange.com/questions/153265/using-cubiccurve-in-openlayers-2
Bezier curve (javascript.info)
Ooh, and this GitHub library looks like it has potential:
https://github.com/crazyxhz/ArcGIS-JavaScript-API-4.2-3D-Draw-Extension
And be safe out there by always copying links into Notepad first. There are now web sites that use Javascript to change the link you thought you had with a malicious one.