/*
 COPYRIGHT 2009 ESRI

 TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
 Unpublished material - all rights reserved under the
 Copyright Laws of the United States and applicable international
 laws, treaties, and conventions.

 For additional information, contact:
 Environmental Systems Research Institute, Inc.
 Attn: Contracts and Legal Services Department
 380 New York Street
 Redlands, California, 92373
 USA

 email: contracts@esri.com
 */

window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","esri.toolbars.draw"],["require","esri.toolbars._toolbar"],["require","esri.geometry"],["require","esri.symbol"],["require","esri.utils"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["esri.toolbars.draw"]){_4._hasResource["esri.toolbars.draw"]=true;_4.provide("esri.toolbars.draw");_4.require("esri.toolbars._toolbar");_4.require("esri.geometry");_4.require("esri.symbol");_4.require("esri.utils");_4.declare("esri.toolbars.Draw",esri.toolbars._Toolbar,{constructor:function(_7,_8){this.markerSymbol=new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_SOLID,10,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new _4.Color([255,0,0]),2),new _4.Color([0,0,0,0.25]));this.lineSymbol=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new _4.Color([255,0,0]),2);this.fillSymbol=new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new _4.Color([255,0,0]),2),new _4.Color([0,0,0,0.25]));this._points=[];this._defaultOptions={showTooltips:true,drawTime:75,tolerance:8,tooltipOffset:15};this._options=_4.mixin(_4.mixin({},this._defaultOptions),_8||{});if(esri.isTouchEnabled){this._options.showTooltips=false;}this._onKeyDownHandler=_4.hitch(this,this._onKeyDownHandler);this._onMouseDownHandler=_4.hitch(this,this._onMouseDownHandler);this._onMouseUpHandler=_4.hitch(this,this._onMouseUpHandler);this._onClickHandler=_4.hitch(this,this._onClickHandler);this._onMouseMoveHandler=_4.hitch(this,this._onMouseMoveHandler);this._onMouseDragHandler=_4.hitch(this,this._onMouseDragHandler);this._onDblClickHandler=_4.hitch(this,this._onDblClickHandler);this._updateTooltip=_4.hitch(this,this._updateTooltip);this._hideTooltip=_4.hitch(this,this._hideTooltip);this._redrawGraphic=_4.hitch(this,this._redrawGraphic);},_geometryType:null,respectDrawingVertexOrder:false,setRespectDrawingVertexOrder:function(_9){this.respectDrawingVertexOrder=_9;},setMarkerSymbol:function(_a){this.markerSymbol=_a;},setLineSymbol:function(_b){this.lineSymbol=_b;},setFillSymbol:function(_c){this.fillSymbol=_c;},activate:function(_d,_e){if(this._geometryType){this.deactivate();}var _f=this.map,dc=_4.connect,_10=esri.toolbars.Draw;this._options=_4.mixin(_4.mixin({},this._options),_e||{});_f.__resetClickDuration();switch(_d){case _10.POINT:case _10.ARROW:case _10.LEFT_ARROW:case _10.RIGHT_ARROW:case _10.UP_ARROW:case _10.DOWN_ARROW:case _10.TRIANGLE:case _10.CIRCLE:case _10.ELLIPSE:case _10.RECTANGLE:this._onClickHandler_connect=dc(_f,"onClick",this._onClickHandler);break;case _10.LINE:case _10.EXTENT:case _10.FREEHAND_POLYLINE:case _10.FREEHAND_POLYGON:this._deactivateMapTools(true,false,false,true);this._onMouseDownHandler_connect=dc(_f,esri.isTouchEnabled?"onTouchStart":"onMouseDown",this._onMouseDownHandler);this._onMouseDragHandler_connect=dc(_f,esri.isTouchEnabled?"onTouchMove":"onMouseDrag",this._onMouseDragHandler);this._onMouseUpHandler_connect=dc(_f,esri.isTouchEnabled?"onTouchEnd":"onMouseUp",this._onMouseUpHandler);break;case _10.POLYLINE:case _10.POLYGON:case _10.MULTI_POINT:_f.__setClickDuration(0);this._onClickHandler_connect=dc(_f,"onClick",this._onClickHandler);this._onDblClickHandler_connect=dc(_f,"onDblClick",this._onDblClickHandler);_f.disableDoubleClickZoom();break;default:console.error(esri.bundle.toolbars.draw.invalidType+": "+_d);return;}this._onKeyDown_connect=dc(_f,"onKeyDown",this._onKeyDownHandler);this._redrawConnect=dc(_f,"onExtentChange",this._redrawGraphic);this._geometryType=_d;this._toggleTooltip(true);if(_f.snappingManager&&this._geometryType!=="freehandpolyline"&&this._geometryType!=="freehandpolygon"&&!esri.isTouchEnabled){_f.snappingManager._startSelectionLayerQuery();_f.snappingManager._setUpSnapping();}this.onActivate(this._geometryType);},deactivate:function(){var map=this.map;this._clear();var ddc=_4.disconnect;ddc(this._onMouseDownHandler_connect);ddc(this._onMouseMoveHandler_connect);ddc(this._onMouseDragHandler_connect);ddc(this._onMouseUpHandler_connect);ddc(this._onClickHandler_connect);ddc(this._onDblClickHandler_connect);ddc(this._onKeyDown_connect);ddc(this._redrawConnect);if(map.snappingManager){map.snappingManager._stopSelectionLayerQuery();map.snappingManager._killOffSnapping();}switch(this._geometryType){case esri.toolbars.Draw.LINE:case esri.toolbars.Draw.EXTENT:case esri.toolbars.Draw.FREEHAND_POLYLINE:case esri.toolbars.Draw.FREEHAND_POLYGON:this._activateMapTools(true,false,false,true);break;case esri.toolbars.Draw.POLYLINE:case esri.toolbars.Draw.POLYGON:case esri.toolbars.Draw.MULTI_POINT:map.enableDoubleClickZoom();break;}var _11=this._geometryType;this._geometryType=null;map.__resetClickDuration();this._toggleTooltip(false);this.onDeactivate(_11);},_clear:function(){if(this._graphic){this.map.graphics.remove(this._graphic,true);}if(this._tGraphic){this.map.graphics.remove(this._tGraphic,true);}this._graphic=this._tGraphic=null;if(this.map.snappingManager){this.map.snappingManager._setGraphic(null);}this._points=[];},finishDrawing:function(){var _12,_13=this._points,map=this.map,_14=map.spatialReference,_15=esri.toolbars.Draw;_13=_13.slice(0,_13.length);switch(this._geometryType){case _15.POLYLINE:if(!this._graphic||_13.length<2){return;}_12=new esri.geometry.Polyline(_14);_12.addPath([].concat(_13));break;case _15.POLYGON:if(!this._graphic||_13.length<3){return;}_12=new esri.geometry.Polygon(_14);var _16=[].concat(_13,[_13[0].offset(0,0)]);if(!esri.geometry.isClockwise(_16)&&!this.respectDrawingVertexOrder){console.debug(this.declaredClass+" : "+esri.bundle.toolbars.draw.convertAntiClockwisePolygon);_16.reverse();}_12.addRing(_16);break;case _15.MULTI_POINT:_12=new esri.geometry.Multipoint(_14);_4.forEach(_13,function(pt){_12.addPoint(pt);});break;}_4.disconnect(this._onMouseMoveHandler_connect);this._clear();this._setTooltipMessage(0);if(_12){this.onDrawEnd(_12);}},_normalizeRect:function(_17,end,_18){var sx=_17.x,sy=_17.y,ex=end.x,ey=end.y,_19=Math.abs(sx-ex),_1a=Math.abs(sy-ey);return {x:Math.min(sx,ex),y:Math.max(sy,ey),width:_19,height:_1a,spatialReference:_18};},_onMouseDownHandler:function(evt){this._dragged=false;var _1b;if(this.map.snappingManager){_1b=this.map.snappingManager._snappingPoint;}var _1c=_1b||evt.mapPoint,_1d=esri.toolbars.Draw,map=this.map,_1e=map.spatialReference;this._points.push(_1c.offset(0,0));switch(this._geometryType){case _1d.LINE:this._graphic=map.graphics.add(new esri.Graphic(new esri.geometry.Polyline({paths:[[[_1c.x,_1c.y],[_1c.x,_1c.y]]]}),this.lineSymbol),true);if(map.snappingManager){map.snappingManager._setGraphic(this._graphic);}break;case _1d.EXTENT:break;case _1d.FREEHAND_POLYLINE:this._oldPoint=evt.screenPoint;var _1f=new esri.geometry.Polyline(_1e);_1f.addPath(this._points);this._graphic=map.graphics.add(new esri.Graphic(_1f,this.lineSymbol),true);if(map.snappingManager){map.snappingManager._setGraphic(this._graphic);}break;case _1d.FREEHAND_POLYGON:this._oldPoint=evt.screenPoint;var _20=new esri.geometry.Polygon(_1e);_20.addRing(this._points);this._graphic=map.graphics.add(new esri.Graphic(_20,this.fillSymbol),true);if(map.snappingManager){map.snappingManager._setGraphic(this._graphic);}break;}if(esri.isTouchEnabled){evt.preventDefault();}},_onMouseMoveHandler:function(evt){var _21;if(this.map.snappingManager){_21=this.map.snappingManager._snappingPoint;}var _22=this._points[this._points.length-1],end=_21||evt.mapPoint,_23=this._tGraphic,_24=_23.geometry;switch(this._geometryType){case esri.toolbars.Draw.POLYLINE:case esri.toolbars.Draw.POLYGON:_24.setPoint(0,0,{x:_22.x,y:_22.y});_24.setPoint(0,1,{x:end.x,y:end.y});_23.setGeometry(_24);break;}},_onMouseDragHandler:function(evt){if(esri.isTouchEnabled&&!this._points.length){evt.preventDefault();return;}this._dragged=true;var _25;if(this.map.snappingManager){_25=this.map.snappingManager._snappingPoint;}var _26=this._points[0],end=_25||evt.mapPoint,map=this.map,_27=map.spatialReference,_28=this._graphic,_29=esri.toolbars.Draw;switch(this._geometryType){case _29.LINE:_28.setGeometry(_4.mixin(_28.geometry,{paths:[[[_26.x,_26.y],[end.x,end.y]]]}));break;case _29.EXTENT:if(_28){map.graphics.remove(_28,true);}var _2a=new esri.geometry.Rect(this._normalizeRect(_26,end,_27));_2a._originOnly=true;this._graphic=map.graphics.add(new esri.Graphic(_2a,this.fillSymbol),true);if(map.snappingManager){map.snappingManager._setGraphic(this._graphic);}break;case _29.FREEHAND_POLYLINE:this._hideTooltip();if(this._canDrawFreehandPoint(evt)===false){if(esri.isTouchEnabled){evt.preventDefault();}return;}this._points.push(evt.mapPoint.offset(0,0));_28.geometry._insertPoints([end.offset(0,0)],0);_28.setGeometry(_28.geometry);break;case _29.FREEHAND_POLYGON:this._hideTooltip();if(this._canDrawFreehandPoint(evt)===false){if(esri.isTouchEnabled){evt.preventDefault();}return;}this._points.push(evt.mapPoint.offset(0,0));_28.geometry._insertPoints([end.offset(0,0)],0);_28.setGeometry(_28.geometry);break;}if(esri.isTouchEnabled){evt.preventDefault();}},_canDrawFreehandPoint:function(evt){if(!this._oldPoint){return false;}var dx=this._oldPoint.x-evt.screenPoint.x;dx=(dx<0)?dx*-1:dx;var dy=this._oldPoint.y-evt.screenPoint.y;dy=(dy<0)?dy*-1:dy;var _2b=this._options.tolerance;if(dx<_2b&&dy<_2b){return false;}var now=new Date();var _2c=now-this._startTime;if(_2c<this._options.drawTime){return false;}this._startTime=now;this._oldPoint=evt.screenPoint;return true;},_onMouseUpHandler:function(evt){if(!this._dragged){this._clear();return;}if(this._points.length===0){this._points.push(evt.mapPoint.offset(0,0));}var _2d;if(this.map.snappingManager){_2d=this.map.snappingManager._snappingPoint;}var _2e=this._points[0],end=_2d||evt.mapPoint,map=this.map,_2f=map.spatialReference,_30=esri.toolbars.Draw,_31;switch(this._geometryType){case _30.LINE:_31=new esri.geometry.Polyline({paths:[[[_2e.x,_2e.y],[end.x,end.y]]],spatialReference:_2f});break;case _30.EXTENT:_31=esri.geometry._rectToExtent(new esri.geometry.Rect(this._normalizeRect(_2e,end,_2f)));break;case _30.FREEHAND_POLYLINE:_31=new esri.geometry.Polyline(_2f);_31.addPath([].concat(this._points,[end.offset(0,0)]));break;case _30.FREEHAND_POLYGON:_31=new esri.geometry.Polygon(_2f);var _32=[].concat(this._points,[end.offset(0,0),this._points[0].offset(0,0)]);if(!esri.geometry.isClockwise(_32)&&!this.respectDrawingVertexOrder){console.debug(this.declaredClass+" : "+esri.bundle.toolbars.draw.convertAntiClockwisePolygon);_32.reverse();}_31.addRing(_32);break;}if(esri.isTouchEnabled){evt.preventDefault();}this._clear();this.onDrawEnd(_31);},_onClickHandler:function(evt){var _33;if(this.map.snappingManager){_33=this.map.snappingManager._snappingPoint;}var _34=_33||evt.mapPoint,map=this.map,_35=map.toScreen(_34),_36=esri.toolbars.Draw,pts,dx,dy,_37,i,_38,_39;this._points.push(_34.offset(0,0));switch(this._geometryType){case _36.POINT:this.onDrawEnd(_34.offset(0,0));this._setTooltipMessage(0);break;case _36.POLYLINE:if(this._points.length===1){var _3a=new esri.geometry.Polyline(map.spatialReference);_3a.addPath(this._points);this._graphic=map.graphics.add(new esri.Graphic(_3a,this.lineSymbol),true);if(map.snappingManager){map.snappingManager._setGraphic(this._graphic);}this._onMouseMoveHandler_connect=_4.connect(map,"onMouseMove",this._onMouseMoveHandler);this._tGraphic=map.graphics.add(new esri.Graphic(new esri.geometry.Polyline({paths:[[[_34.x,_34.y],[_34.x,_34.y]]]}),this.lineSymbol),true);}else{this._graphic.geometry._insertPoints([_34.offset(0,0)],0);this._graphic.setGeometry(this._graphic.geometry).setSymbol(this.lineSymbol);_38=this._tGraphic;_39=_38.geometry;_39.setPoint(0,0,_34.offset(0,0));_39.setPoint(0,1,_34.offset(0,0));_38.setGeometry(_39);}break;case _36.POLYGON:if(this._points.length===1){var _3b=new esri.geometry.Polygon(map.spatialReference);_3b.addRing(this._points);this._graphic=map.graphics.add(new esri.Graphic(_3b,this.fillSymbol),true);if(map.snappingManager){map.snappingManager._setGraphic(this._graphic);}this._onMouseMoveHandler_connect=_4.connect(map,"onMouseMove",this._onMouseMoveHandler);this._tGraphic=map.graphics.add(new esri.Graphic(new esri.geometry.Polyline({paths:[[[_34.x,_34.y],[_34.x,_34.y]]]}),this.fillSymbol),true);}else{this._graphic.geometry._insertPoints([_34.offset(0,0)],0);this._graphic.setGeometry(this._graphic.geometry).setSymbol(this.fillSymbol);_38=this._tGraphic;_39=_38.geometry;_39.setPoint(0,0,_34.offset(0,0));_39.setPoint(0,1,_34.offset(0,0));_38.setGeometry(_39);}break;case _36.MULTI_POINT:var tps=this._points;if(tps.length===1){var _3c=new esri.geometry.Multipoint(map.spatialReference);_3c.addPoint(tps[tps.length-1]);this._graphic=map.graphics.add(new esri.Graphic(_3c,this.markerSymbol),true);if(map.snappingManager){map.snappingManager._setGraphic(this._graphic);}}else{this._graphic.geometry.addPoint(tps[tps.length-1]);this._graphic.setGeometry(this._graphic.geometry).setSymbol(this.markerSymbol);}break;case _36.ARROW:pts=[[96,24],[72,52],[72,40],[0,40],[0,12],[72,12],[72,0],[96,24]];dx=_35.x-36;dy=_35.y-24;this._addShape(pts,dx,dy);break;case _36.LEFT_ARROW:pts=[[0,24],[24,52],[24,40],[96,40],[96,12],[24,12],[24,0],[0,24]];dx=_35.x-60;dy=_35.y-24;this._addShape(pts,dx,dy);break;case _36.RIGHT_ARROW:pts=[[96,24],[72,52],[72,40],[0,40],[0,12],[72,12],[72,0],[96,24]];dx=_35.x-36;dy=_35.y-24;this._addShape(pts,dx,dy);break;case _36.UP_ARROW:pts=[[24,0],[52,24],[40,24],[40,96],[12,96],[12,24],[0,24],[24,0]];dx=_35.x-24;dy=_35.y-60;this._addShape(pts,dx,dy);break;case _36.DOWN_ARROW:pts=[[24,96],[52,72],[40,72],[40,0],[12,0],[12,72],[0,72],[24,96]];dx=_35.x-24;dy=_35.y-36;this._addShape(pts,dx,dy);break;case _36.TRIANGLE:pts=[[0,96],[48,0],[96,96],[0,96]];dx=_35.x-48;dy=_35.y-48;this._addShape(pts,dx,dy);break;case _36.RECTANGLE:pts=[[0,-96],[96,-96],[96,0],[0,0],[0,-96]];dx=_35.x-48;dy=_35.y+48;this._addShape(pts,dx,dy);break;case _36.CIRCLE:_37=360;var _3d=(2*Math.PI)/_37;pts=[];for(i=0;i<_37;i++){pts.push([48*Math.cos(_3d*i),48*Math.sin(_3d*i)]);}pts.push(pts[0]);this._addShape(pts,_35.x,_35.y);break;case _36.ELLIPSE:var rad=Math.PI/180;var _3e=-rad;var _3f=Math.sin(_3e);var _40=Math.cos(_3e);_37=360;pts=[];for(i=0;i<_37;i++){var _41=i*(rad);var _42=Math.sin(_41);var _43=Math.cos(_41);var x=(48*_43*_40-24*_42*_3f);var y=(48*_43*_3f+24*_42*_40);pts.push([x,y]);}pts.push(pts[0]);this._addShape(pts,_35.x,_35.y);break;}this._setTooltipMessage(this._points.length);},_addShape:function(_44,dx,dy){var _45=this.map.graphics.add(new esri.Graphic(this._toPolygon(_44,dx,dy),this.fillSymbol),true);this._setTooltipMessage(0);var _46;if(_45){_46=esri.geometry.fromJson(_45.geometry.toJson());this.map.graphics.remove(_45,true);}this.onDrawEnd(_46);_45=_46=null;},_toPolygon:function(_47,dx,dy){var map=this.map;var _48=new esri.geometry.Polygon(map.spatialReference);_48.addRing(_4.map(_47,function(pt){return map.toMap({x:pt[0]+dx,y:pt[1]+dy});}));return _48;},_onDblClickHandler:function(evt){var _49,_4a=this._points,map=this.map,_4b=map.spatialReference,_4c=esri.toolbars.Draw;if(esri.isTouchEnabled){_4a.push(evt.mapPoint);}_4a=_4a.slice(0,_4a.length);switch(this._geometryType){case _4c.POLYLINE:if(!this._graphic||_4a.length<2){_4.disconnect(this._onMouseMoveHandler_connect);this._clear();this._onClickHandler(evt);return;}_49=new esri.geometry.Polyline(_4b);_49.addPath([].concat(_4a));break;case _4c.POLYGON:if(!this._graphic||_4a.length<2){_4.disconnect(this._onMouseMoveHandler_connect);this._clear();this._onClickHandler(evt);return;}_49=new esri.geometry.Polygon(_4b);var _4d=[].concat(_4a,[_4a[0].offset(0,0)]);if(!esri.geometry.isClockwise(_4d)&&!this.respectDrawingVertexOrder){console.debug(this.declaredClass+" : "+esri.bundle.toolbars.draw.convertAntiClockwisePolygon);_4d.reverse();}_49.addRing(_4d);break;case _4c.MULTI_POINT:_49=new esri.geometry.Multipoint(_4b);_4.forEach(_4a,function(pt){_49.addPoint(pt);});break;}_4.disconnect(this._onMouseMoveHandler_connect);this._clear();this._setTooltipMessage(0);this.onDrawEnd(_49);},_onKeyDownHandler:function(evt){if(evt.keyCode===_4.keys.ESCAPE){_4.disconnect(this._onMouseMoveHandler_connect);this._clear();this._setTooltipMessage(0);}},_toggleTooltip:function(_4e){if(!this._options.showTooltips){return;}if(_4e){if(this._tooltip){return;}var _4f=this.map.container;this._tooltip=_4.create("div",{"class":"tooltip"},_4f);this._tooltip.style.display="none";this._tooltip.style.position="fixed";this._setTooltipMessage(0);this._onTooltipMouseEnterHandler_connect=_4.connect(this.map,"onMouseOver",this._updateTooltip);this._onTooltipMouseLeaveHandler_connect=_4.connect(this.map,"onMouseOut",this._hideTooltip);this._onTooltipMouseMoveHandler_connect=_4.connect(this.map,"onMouseMove",this._updateTooltip);}else{if(this._tooltip){_4.disconnect(this._onTooltipMouseEnterHandler_connect);_4.disconnect(this._onTooltipMouseLeaveHandler_connect);_4.disconnect(this._onTooltipMouseMoveHandler_connect);_4.destroy(this._tooltip);this._tooltip=null;}}},_hideTooltip:function(){var _50=this._tooltip;if(!_50){return;}_50.style.display="none";},_setTooltipMessage:function(_51){var _52=this._tooltip;if(!_52){return;}var _53=_51;var _54="";switch(this._geometryType){case esri.toolbars.Draw.POINT:_54=esri.bundle.toolbars.draw.addPoint;break;case esri.toolbars.Draw.ARROW:case esri.toolbars.Draw.LEFT_ARROW:case esri.toolbars.Draw.RIGHT_ARROW:case esri.toolbars.Draw.UP_ARROW:case esri.toolbars.Draw.DOWN_ARROW:case esri.toolbars.Draw.TRIANGLE:case esri.toolbars.Draw.RECTANGLE:case esri.toolbars.Draw.CIRCLE:case esri.toolbars.Draw.ELLIPSE:_54=esri.bundle.toolbars.draw.addShape;break;case esri.toolbars.Draw.LINE:case esri.toolbars.Draw.EXTENT:case esri.toolbars.Draw.FREEHAND_POLYLINE:case esri.toolbars.Draw.FREEHAND_POLYGON:_54=esri.bundle.toolbars.draw.freehand;break;case esri.toolbars.Draw.POLYLINE:case esri.toolbars.Draw.POLYGON:_54=esri.bundle.toolbars.draw.start;if(_53===1){_54=esri.bundle.toolbars.draw.resume;}else{if(_53>=2){_54=esri.bundle.toolbars.draw.complete;}}break;case esri.toolbars.Draw.MULTI_POINT:_54=esri.bundle.toolbars.draw.addMultipoint;if(_53>=1){_54=esri.bundle.toolbars.draw.finish;}break;}_52.innerHTML=_54;},_updateTooltip:function(evt){var _55=this._tooltip;if(!_55){return;}var px,py;if(evt.clientX||evt.pageY){px=evt.clientX;py=evt.clientY;}else{px=evt.clientX+_4.body().scrollLeft-_4.body().clientLeft;py=evt.clientY+_4.body().scrollTop-_4.body().clientTop;}_55.style.display="none";_4.style(_55,{left:(px+this._options.tooltipOffset)+"px",top:(py)+"px"});_55.style.display="";},_redrawGraphic:function(_56,_57,_58,lod){if(_58||this.map.wrapAround180){var g=this._graphic;if(g){g.setGeometry(g.geometry);}g=this._tGraphic;if(g){g.setGeometry(g.geometry);}}},onActivate:function(){},onDeactivate:function(){},onDrawEnd:function(){}});_4.mixin(esri.toolbars.Draw,{POINT:"point",MULTI_POINT:"multipoint",LINE:"line",EXTENT:"extent",POLYLINE:"polyline",POLYGON:"polygon",FREEHAND_POLYLINE:"freehandpolyline",FREEHAND_POLYGON:"freehandpolygon",ARROW:"arrow",LEFT_ARROW:"leftarrow",RIGHT_ARROW:"rightarrow",UP_ARROW:"uparrow",DOWN_ARROW:"downarrow",TRIANGLE:"triangle",CIRCLE:"circle",ELLIPSE:"ellipse",RECTANGLE:"rectangle"});}}};});