AnsweredAssumed Answered

Please help - constrain radius of a circle, ArcGIS API

Question asked by oliviag12 on Feb 6, 2015
Latest reply on Feb 9, 2015 by bennetjo

I am using this code to draw a circle:

               $('#circle').click(function () {

                       clearPreviousSearch();

                          map.disableMapNavigation();

                       $('#run').fadeOut();

                       buttonclickvalue = 'circle';

                       drawToolbar.activate(esri.toolbars.Draw.CIRCLE);

                   });

 

I've been told I need this code to constrain the radius:

 

var circle = new Circle({
  center
: e.mapPoint,
  geodesic
: domAttr.get(geodesic, "checked"),
  radius
: 100,
  radiusUnit
:units.MILES
});

 

But where on earth should it go - it's driving me nuts!!

Outcomes