Hi, I am new to ArcGIS Javascript API. In ArcGIS javascript version 3.37 version, Calculate the area and distance measurements and when pressed the CTRL key the measurements are snapped to the feature using the "esri/SnappingManager"
var snapManager = map.enableSnapping({
snapKey: has("mac") ? keys.META : keys.CTRL
});
var layerInfos = [{
layer: parcelsLayer
}];
snapManager.setLayerInfos(layerInfos);
This snapping Manager is not working in the 4.18 version and this option is not available in the 4.18 version. please find the below URL.
I have tried another way using the esri/views/interactive/snapping/SnappingOptions but it only works for sketch and editor widget only not in measurement widget.
Kindly suggest any other way to handle the feature snapping in the measurement widget 4.18 javascript like the 3.37 javascript API measurement widget.