I am new to ArcGIS javascript api and I have created a map which allows users to draw circle geometries. I just want to limit the functionality so that the radius is specified at 10000km.
This is the code at the moment:
$('#circle').click(function () { clearPreviousSearch(); map.disableMapNavigation(); $('#run').fadeOut(); buttonclickvalue = 'circle'; drawToolbar.activate(esri.toolbars.Draw.CIRCLE); });And I've amended it to this:
$('#circle').click(function (e) { var radius = map.extent.getWidth() / 10; radius : radius clearPreviousSearch(); map.disableMapNavigation(); $('#run').fadeOut(); buttonclickvalue = 'circle'; drawToolbar.activate(esri.toolbars.Draw.CIRCLE); });Can anyone possibly help/give me some pointers to try and remedy?
أكثر...
This is the code at the moment:
$('#circle').click(function () { clearPreviousSearch(); map.disableMapNavigation(); $('#run').fadeOut(); buttonclickvalue = 'circle'; drawToolbar.activate(esri.toolbars.Draw.CIRCLE); });And I've amended it to this:
$('#circle').click(function (e) { var radius = map.extent.getWidth() / 10; radius : radius clearPreviousSearch(); map.disableMapNavigation(); $('#run').fadeOut(); buttonclickvalue = 'circle'; drawToolbar.activate(esri.toolbars.Draw.CIRCLE); });Can anyone possibly help/give me some pointers to try and remedy?
أكثر...