I am using arcgis core 4.28 and I need to change the symbology for the measurement widget. I know that on 4.17 we can change it by accessing the palette of the event viewModel but this seems impossible in 4.28. I need to have the boundary for area measurement with a symbol with transparent filling so just with just the border and no fill. Any ideas?
This is what works in 4.17 but not in 4.28
measurement.watch("activeWidget", function(evt){
if(evt !== null){
if(measurement.activeTool === "distance"){
evt.viewModel.palette.handleColor = [0,128,128,0.5];
evt.viewModel.palette.pathPrimaryColor = [0,76,76,1];
evt.viewModel.palette.pathSecondaryColor = [255,255,255,1];
}else{
evt.viewModel.palette.fillColor = [178,216,216,0];
evt.viewModel.palette.handleColor = [0,128,128,0.5];
evt.viewModel.palette.pathColor = [0,128,128,0.8];
}
}
});