Using the code below:
JS
HTML
Milaw,
//Require "esri/geometry/Polyline", "esri/geometry/geometryEngine",
addToMap: function(evt) {
radius.deactivate();
var symbol = new SimpleFillSymbol();
radiusGraphic = new Graphic(evt.geometry, symbol);
var cent = evt.geometry.getCentroid();
var pnt = evt.geometry.getPoint(0, 0);
var line = new Polyline([[pnt.x,pnt.y],[cent.x,cent.y]]);
var rad = geometryEngine.geodesicLength(line, "meters");
this.map.graphics.add(radiusGraphic);
},
Thank you for your help.
I will try your solution
Regards
Milaw.