/*
 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
 */
//>>built
require({cache:{"url:esri/dijit/templates/Measurement.html":"<div class=\"esriMeasurement\">\r\n  <div dojoType='dijit.form.ToggleButton' baseClass='esriButton' dojoAttachPoint='area' checked='false' iconClass='areaIcon' showLabel='false' dojoAttachEvent='onClick:areaToggleButton'></div>\r\n  <div dojoType='dijit.form.ToggleButton' baseClass='esriButton' dojoAttachPoint='distance' iconClass='distanceIcon' showLabel='false' dojoAttachEvent='onClick:distanceToggleButton'></div>\r\n  <div dojoType='dijit.form.ToggleButton' baseClass='esriButton' dojoAttachPoint='location' iconClass='locationIcon' showLabel='false' dojoAttachEvent='onClick:locationToggleButton'></div>\r\n  <div style=\"display:inline;margin-left:2px;margin-right:2px;padding-top:2px;\">|</div>\r\n  <button dojoType='dijit.form.DropDownButton' baseClass='esriToggleButton' dojoAttachPoint='unit' label='unit' value='unit' style='visibility:hidden;'></button>\r\n  <div dojoType='dijit.layout.ContentPane' dojoAttachPoint='resultLabel' class='resultLabel'></div>\r\n  <div dojoType='dijit.layout.ContentPane' dojoAttachPoint='resultValue' align='left' class='result'></div>\r\n</div>"}});define("esri/dijit/Measurement",["require","dojo/_base/declare","dojo/_base/lang","dojo/_base/array","dojo/_base/connect","dojo/_base/Color","dojo/has","dojo/number","dojo/dom-style","dijit/_Widget","dijit/_Templated","dijit/registry","dijit/Menu","dijit/MenuItem","esri/SpatialReference","esri/symbols/PictureMarkerSymbol","esri/symbols/SimpleLineSymbol","esri/geometry/geodesicUtils","esri/geometry/webMercatorUtils","esri/geometry/Point","esri/geometry/Polyline","esri/geometry/Polygon","esri/graphic","esri/tasks/AreasAndLengthsParameters","esri/tasks/LengthsParameters","esri/tasks/GeometryService","esri/kernel","esri/config","esri/domUtils","esri/lang","esri/units","esri/WKIDUnitConversion","esri/dijit/_EventedWidget","dojo/text!esri/dijit/templates/Measurement.html","dojo/i18n!esri/nls/jsapi","dijit/form/ToggleButton","dijit/form/DropDownButton","dijit/layout/ContentPane"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_1a,_1b,_1c,_1d,_1e,_1f,_20,_21,_22,_23){var _24=_2([_21,_a,_b],{declaredClass:"esri.dijit.Measurement",widgetsInTemplate:true,templateString:_22,unitDictionary:[],result:null,inputPoints:[],measureGraphics:[],numberPattern:"#,###,###,##0.0",_eventMap:{"measure-end":["toolName","geometry"]},constructor:function(_25,_26){_25=_25||{};if(!_25.map){console.log("dijit.MeasureTool: unable to find the 'map' property in parameters");return;}this._map=_25.map;if(this._map.loaded){this._map.cs=this._checkCS(this._map.spatialReference);}else{var _27=_5.connect(this._map,"onLoad",this,function(){_5.disconnect(_27);_27=null;this._map.cs=this._checkCS(this._map.spatialReference);});}this._geometryService=_1c.defaults.geometryService;if(_25.pointSymbol){this._pointSymbol=_25.pointSymbol;}else{var url=_1.toUrl("esri/dijit/images/flag.png");this._pointSymbol=new _10(url,24,24);this._pointSymbol.setOffset(9,11);}if(_25.lineSymbol){this._lineSymbol=_25.lineSymbol;}else{this._lineSymbol=new _11(_11.STYLE_SOLID,new _6([0,128,255]),3);}if(_25.defaultLengthUnit){this._defaultLengthUnit=_25.defaultLengthUnit;}else{this._defaultLengthUnit=_1f.MILES;}if(_25.defaultAreaUnit){this._defaultAreaUnit=_25.defaultAreaUnit;}else{this._defaultAreaUnit=_1f.ACRES;}if(_25.defaultLocationUnit){this._defaultLocationUnit=_25.defaultLocationUnit;}else{this._defaultLocationUnit=_1f.DECIMAL_DEGREES;}this._snappingCallback=_3.hitch(this,this._snappingCallback);},startup:function(){var _28=_23.widgets.measurement;this.unitDictionary[_28.NLS_length_miles]=1;this.unitDictionary[_28.NLS_length_kilometers]=1.609344;this.unitDictionary[_28.NLS_length_feet]=5280;this.unitDictionary[_28.NLS_length_meters]=1609.34;this.unitDictionary[_28.NLS_length_yards]=1760;this.unitDictionary["Nautical Miles"]=0.869;this.unitDictionary[_28.NLS_area_acres]=1;this.unitDictionary[_28.NLS_area_sq_kilometers]=0.004047;this.unitDictionary[_28.NLS_area_sq_miles]=0.0015625;this.unitDictionary[_28.NLS_area_sq_feet]=43560;this.unitDictionary[_28.NLS_area_sq_meters]=4046.87;this.unitDictionary[_28.NLS_area_hectares]=0.4047;this.unitDictionary[_28.NLS_area_sq_yards]=4840;this.units={"esriMiles":_28.NLS_length_miles,"esriKilometers":_28.NLS_length_kilometers,"esriFeet":_28.NLS_length_feet,"esriMeters":_28.NLS_length_meters,"esriYards":_28.NLS_length_yards,"esriAcres":_28.NLS_area_acres,"esriSquareKilometers":_28.NLS_area_sq_kilometers,"esriSquareMiles":_28.NLS_area_sq_miles,"esriSquareFeet":_28.NLS_area_sq_feet,"esriSquareMeters":_28.NLS_area_sq_meters,"esriHectares":_28.NLS_area_hectares,"esriSquareYards":_28.NLS_area_sq_yards,"esriDecimalDegrees":_28.NLS_decimal_degrees,"esriDegreeMinuteSeconds":_28.NLS_deg_min_sec};_c.byNode(this.distance.domNode).setLabel(_23.widgets.measurement.NLS_distance);_c.byNode(this.area.domNode).setLabel(_23.widgets.measurement.NLS_area);_c.byNode(this.location.domNode).setLabel(_23.widgets.measurement.NLS_location);_c.byNode(this.resultLabel.domNode).setContent(_23.widgets.measurement.NLS_resultLabel);},measureArea:function(){this._map.navigationManager.setImmediateClick(true);this._createAreaUnitList();this.inputPoints=[];this.tempGraphic=new _17();this.tempGraphic.setSymbol(this._lineSymbol);this.tempGraphic.setGeometry(new _15(this._map.spatialReference));this._map.graphics.add(this.tempGraphic);if(this._map.cs==="PCS"){this._geometryAreaHandler=_5.connect(this._geometryService,"onAreasAndLengthsComplete",this,"_outputArea");}this.mouseClickMapHandler=_5.connect(this._map,"onClick",this,"_measureAreaMouseClickHandler");this.doubleClickMapHandler=_5.connect(this._map,"onDblClick",this,"_measureAreaDblClickHandler");},measureDistance:function(){this._map.navigationManager.setImmediateClick(true);if(this._map.cs==="PCS"){this._projectMapExtent(this._map.extent);this._mapExtentChangeHandler=_5.connect(this._map,"onExtentChange",this,"_projectMapExtent");}this.inputPoints=[];this._createLengthUnitList();this.mouseClickMapHandler=_5.connect(this._map,"onClick",this,"_measureDistanceMouseClickHandler");this.doubleClickMapHandler=_5.connect(this._map,"onDblClick",this,"_measureDistanceDblClickHandler");},measureLocation:function(){this._map.navigationManager.setImmediateClick(true);this.measureGraphics=[];this._createLocationUnitList();this._map.graphics.remove(this.locationGraphic);if(this._map.cs==="PCS"){this._projectMapExtent(this._map.extent);this._mapExtentChangeHandler=_5.connect(this._map,"onExtentChange",_3.hitch(this,this._projectMapExtent));}this._clickMapHandler=_5.connect(this._map,"onClick",this,"_measureLocationClickHandler");this.mouseMoveMapHandler=_5.connect(this._map,"onMouseMove",this,"_showCoordinates");this.mouseDragMapHandler=_5.connect(this._map,"onMouseDrag",_3.hitch(this,function(){_c.byNode(this.resultValue.domNode).setAttribute("disabled",true);}));},setTool:function(_29,_2a){this.closeTool();var _2b=_c.byNode(this[_29].domNode).checked;_9.set(this.unit.domNode,"visibility","visible");_c.byNode(this.area.domNode).setAttribute("checked",false);_c.byNode(this.distance.domNode).setAttribute("checked",false);_c.byNode(this.location.domNode).setAttribute("checked",false);if(_2a===true||_2a===false){_2b=_2a;}_c.byNode(this[_29].domNode).setAttribute("checked",_2b);if(_2b){this.activeTool=_29;if(this.map.isDoubleClickZoom){this._map.disableDoubleClickZoom();}if(_29==="area"){this.measureArea();}else{if(_29==="distance"){this.measureDistance();}else{if(_29==="location"){this.measureLocation();}}}if(this._map.snappingManager){this._map.snappingManager._startSelectionLayerQuery();this._map.snappingManager._setUpSnapping();}}},areaToggleButton:function(){this.clearResult();this.setTool("area");},distanceToggleButton:function(){this.clearResult();this.setTool("distance");},locationToggleButton:function(){this.clearResult();this.setTool("location");},closeTool:function(){var map=this._map;map.navigationManager.setImmediateClick(false);if(!map.isDoubleClickZoom){map.enableDoubleClickZoom();}this.inputPoints=[];if(map.snappingManager&&map.snappingManager._snappingGraphic){map.graphics.remove(map.snappingManager._snappingGraphic);}_5.disconnect(this.mouseClickMapHandler);_5.disconnect(this.mouseMoveMapHandler);_5.disconnect(this.doubleClickMapHandler);_5.disconnect(this.mouseDragMapHandler);_5.disconnect(this._clickMapHandler);_5.disconnect(this._mapExtentChangeHandler);_5.disconnect(this._geometryAreaHandler);this.mouseClickMapHandler=this.mouseMoveMapHandler=this.doubleClickMapHandler=this.mouseDragMapHandler=this._clickMapHandler=this._mapExtentChangeHandler=this._geometryAreaHandler=null;if(this._map.snappingManager){this._map.snappingManager._stopSelectionLayerQuery();this._map.snappingManager._killOffSnapping();}},clearResult:function(){var map=this._map;this.result=0;_c.byNode(this.resultValue.domNode).setAttribute("content","");var i;for(i=0;i<this.measureGraphics.length;i++){map.graphics.remove(this.measureGraphics[i]);}this.measureGraphics=[];map.graphics.remove(this.tempGraphic);},show:function(){_1d.show(this.domNode);},hide:function(){_1d.hide(this.domNode);},showTool:function(_2c){var _2d=this[_2c].domNode;_2d.style.display="inline";},hideTool:function(_2e){var _2f=this[_2e].domNode;_2f.style.display="none";},destroy:function(){this.closeTool();this.clearResult();this.inherited(arguments);this._map=this._geometryService=this.measureGraphic=this.measureGraphic=this.tempGraphic=null;},onMeasureEnd:function(){},_densifyGeometry:function(_30){if(this._map.cs==="Web Mercator"){_30=_13.webMercatorToGeographic(_30);}var _31;if(this._map.cs==="PCS"){_31=_30;}else{_31=_12.geodesicDensify(_30,500000);}if(this._map.cs==="Web Mercator"){_31=_13.geographicToWebMercator(_31);}return _31;},_measureAreaMouseClickHandler:function(evt){var _32;if(this._map.snappingManager){_32=this._map.snappingManager._snappingPoint;}var _33=_32||evt.mapPoint;this.inputPoints.push(_33);this._currentStartPt=_33;if(this.inputPoints.length===1){this.tempGraphic.setGeometry(new _15(this._map.spatialReference));var i;for(i=0;i<this.measureGraphics.length;i++){this._map.graphics.remove(this.measureGraphics[i]);}this.measureGraphics=[];this.result=0;this._outputResult(this.result,_23.widgets.measurement.NLS_area_acres);this.mouseMoveMapHandler=_5.connect(this._map,"onMouseMove",this,"_measureAreaMouseMoveHandler");}this.measureGraphic=new _17();this.measureGraphic.setSymbol(this._lineSymbol);this.measureGraphics.push(this.measureGraphic);if(this.inputPoints.length>1){var _34=new _15(this._map.spatialReference);_34.addPath([this.inputPoints[this.inputPoints.length-2],_33]);var _35=new _15(this._map.spatialReference);_35.addPath([this.inputPoints[0],_33]);var _36=this._densifyGeometry(_34);var _37=this._densifyGeometry(_35);this.tempGraphic.setGeometry(_37);this.measureGraphic.setGeometry(_36);this._map.graphics.add(this.measureGraphic);}},_measureAreaMouseMoveHandler:function(evt){var _38;if(this.inputPoints.length>0){var _39=new _15(this._map.spatialReference);var _3a;if(this._map.snappingManager){_3a=this._map.snappingManager._snappingPoint;}_38=_3a||evt.mapPoint;_39.addPath([this._currentStartPt,_38]);var _3b=this._densifyGeometry(_39);this.tempGraphic.setGeometry(_3b);}if(this.inputPoints.length>1){var _3c=new _15(this._map.spatialReference);_3c.addPath([_38,this.inputPoints[0]]);var _3d=this._densifyGeometry(_3c);this.tempGraphic.setGeometry(this.tempGraphic.geometry.addPath(_3d.paths[0]));}},_measureAreaDblClickHandler:function(evt){_5.disconnect(this.mouseMoveMapHandler);this.mouseMoveMapHandler=null;var _3e=new _16(this._map.spatialReference);var _3f=[];var i;for(i=0;i<this.inputPoints.length;i++){_3f.push([this.inputPoints[i].x,this.inputPoints[i].y]);}_3f.push([this.inputPoints[0].x,this.inputPoints[0].y]);_3e.addRing(_3f);this.inputPoints=[];this.measurementGeometry=this._densifyGeometry(_3e);this._getArea(_3e);},_getArea:function(_40){var _41=[];var _42=new _18();_42.areaUnit=_1a.UNIT_ACRES;_42.calculationType="geodesic";if(_16.prototype.isSelfIntersecting(_40)){this._geometryService.simplify([_40],_3.hitch(this,function(_43){_4.forEach(_43,_3.hitch(this,function(_44,idx){if(this._map.cs==="PCS"){_42.polygons=_43;this._geometryService.areasAndLengths(_42);return;}else{if(this._map.cs==="Web Mercator"){_44=_13.webMercatorToGeographic(_44);}}_41.push(_44);}));var _45=_12.geodesicAreas(_41,_1f.ACRES);this._showArea(_45[0]);}));}else{if(this._map.cs==="Web Mercator"){_40=_13.webMercatorToGeographic(_40);}_41.push(_40);if(this._map.cs==="PCS"){_42.polygons=_41;this._geometryService.areasAndLengths(_42);return;}var _46=_12.geodesicAreas(_41,_1f.ACRES);this._showArea(Math.abs(_46[0]));}},_outputArea:function(_47){this._showArea(Math.abs(_47.areas[0]));},_showArea:function(_48){if(_48){this.result=_48;var _49=_c.byNode(this.unit.domNode).label;this._outputResult(this.result,_49);}this.onMeasureEnd(this.activeTool,this.measurementGeometry);},_measureDistanceDblClickHandler:function(evt){_5.disconnect(this.mouseMoveMapHandler);this.mouseMoveMapHandler=null;var _4a=new _15(this._map.spatialReference);_4a.addPath(this.inputPoints);_4a=this._densifyGeometry(_4a);if(this._map.cs==="PCS"){var _4b=new _19();_4b.polylines=[_4a];_4b.lengthUnit=9093;_4b.calculationType="geodesic";this._geometryService.lengths(_4b,_3.hitch(this,function(_4c){this.result=_4c.lengths[0];this._showDistance(this.result);}));}this.inputPoints=[];this.onMeasureEnd(this.activeTool,_4a);},_measureDistanceMouseClickHandler:function(evt){var _4d;if(this._map.snappingManager){_4d=this._map.snappingManager._snappingPoint;}var _4e=_4d||evt.mapPoint;this.inputPoints.push(_4e);this._currentStartPt=_4e;if(this.inputPoints.length===1){var i;for(i=0;i<this.measureGraphics.length;i++){this._map.graphics.remove(this.measureGraphics[i]);}this._map.graphics.remove(this.tempGraphic);this.measureGraphics=[];this.result=0;this._outputResult(this.result,_23.widgets.measurement.NLS_length_miles);this.tempGraphic=new _17();this.tempGraphic.setSymbol(this._lineSymbol);this._map.graphics.add(this.tempGraphic);this.mouseMoveMapHandler=_5.connect(this._map,"onMouseMove",this,"_measureDistanceMouseMoveHandler");}this.tempGraphic.setGeometry(new _15(this._map.spatialReference));this.flagGraphic=new _17();this.flagGraphic.setSymbol(this._pointSymbol);this.flagGraphic.setGeometry(_4e);this.measureGraphics.push(this.flagGraphic);this._map.graphics.add(this.flagGraphic);if(this.inputPoints.length>1){this.measureGraphic=new _17();this.measureGraphic.setSymbol(this._lineSymbol);this.measureGraphics.push(this.measureGraphic);var _4f=new _15(this._map.spatialReference);_4f.addPath([this.inputPoints[this.inputPoints.length-2],_4e]);var _50=this._densifyGeometry(_4f);this.measureGraphic.setGeometry(_50);this._map.graphics.add(this.measureGraphic);this.result+=this._geodesicDistance(this.inputPoints[this.inputPoints.length-2],_4e);this._showDistance(this.result);}},_measureDistanceMouseMoveHandler:function(evt){if(this.inputPoints.length>0){var _51=new _15(this._map.spatialReference);var _52;if(this._map.snappingManager){_52=this._map.snappingManager._snappingPoint;}var _53=_52||evt.mapPoint;_51.addPath([this._currentStartPt,_53]);var _54=this._densifyGeometry(_51);this.tempGraphic.setGeometry(_54);var _55=this._geodesicDistance(this._currentStartPt,_53);this._showDistance(_55+this.result);}},_geodesicDistance:function(pt1,pt2){var _56=new _15(this._map.spatialReference);if(this._map.cs==="PCS"){pt1=this._getGCSLocation(pt1);pt2=this._getGCSLocation(pt2);}_56.addPath([pt1,pt2]);if(this._map.cs==="Web Mercator"){_56=_13.webMercatorToGeographic(_56);}return _12.geodesicLengths([_56],_1f.MILES)[0];},_showDistance:function(_57){if(_57){this._outputResult(_57,_c.byNode(this.unit.domNode).label);}},_measureLocationClickHandler:function(evt){_c.byNode(this.location.domNode).setAttribute("checked",false);var _58;if(this._map.snappingManager){_58=this._map.snappingManager._snappingPoint;}var _59=_58||evt.mapPoint;this.locationToggleButton();this.locationGraphic=new _17();this.locationGraphic.setGeometry(_59);this.locationGraphic.setSymbol(this._pointSymbol);this._map.graphics.add(this.locationGraphic);this.measureGraphics.push(this.locationGraphic);var _5a={mapPoint:_59};if(this._map.cs==="PCS"){this._showCoordinates(_5a,true);}else{this._showCoordinates(_5a);}this.onMeasureEnd(this.activeTool,_59);},_getGCSLocation:function(pt){var _5b=pt;if(this._map.cs==="Web Mercator"){_5b=_13.webMercatorToGeographic(_5b);}else{if(this._map.cs==="PCS"){if(this._map._newExtent){var _5c=Math.abs((this._map._newExtent.xmax-this._map._newExtent.xmin)/(this._map.extent.xmax-this._map.extent.xmin));var _5d=Math.abs((this._map._newExtent.ymax-this._map._newExtent.ymin)/(this._map.extent.ymax-this._map.extent.ymin));var _5e=(_5b.x-this._map.extent.xmin)*_5c+this._map._newExtent.xmin;var _5f=(_5b.y-this._map.extent.ymin)*_5d+this._map._newExtent.ymin;_5b=new _14(_5e,_5f,this._map.spatialReference);}}}return _5b;},_projectMapExtent:function(_60){var _61=new _17(_60);var _62=new _f({wkid:4326});this._geometryService.project([_61.geometry],_62,_3.hitch(this,function(_63){if(!this.mouseMoveMapHandler&&this.activeTool==="location"){this.mouseMoveMapHandler=_5.connect(this._map,"onMouseMove",_3.hitch(this,this._showCoordinates));this.mouseDragMapHandler=_5.connect(this._map,"onMouseDrag",_3.hitch(this,function(){_c.byNode(this.resultValue.domNode).setAttribute("disabled",true);}));}this._map._newExtent=_63[0];}));},_showCoordinates:function(evt,_64){var _65;if(this._map.snappingManager){_65=this._map.snappingManager._snappingPoint;}var _66=_65||evt.mapPoint;var _67;if(!_64){_67=this._getGCSLocation(_66);this.locationX=_67.x;this.locationY=_67.y;this._outputLocationResult(_67.x,_67.y,_c.byNode(this.unit.domNode).label);}else{var _68=new _f({wkid:4326});this._geometryService.project([_66],_68,_3.hitch(this,function(_69){_67=_69[0];this.locationX=_67.x;this.locationY=_67.y;this._outputLocationResult(_67.x,_67.y,_c.byNode(this.unit.domNode).label);}));}},_checkCS:function(_6a){if(_6a.wkid){if(_6a.wkid===3857||_6a.wkid===102100||_6a.wkid===102113){return "Web Mercator";}if(_1e.isDefined(_20[_6a.wkid])){return "PCS";}return "GCS";}if(_6a.wkt){if(_6a.wkt.indexOf("WGS_1984_Web_Mercator")!==-1){return "Web Mercator";}if(_6a.wkt.indexOf("PROJCS")===0){return "PCS";}return "GCS";}},_switchUnit:function(_6b){_c.byNode(this.unit.domNode).setAttribute("label",_6b);if(this.result===null){return;}this._outputResult(this.result,_6b);},_outputResult:function(_6c,_6d){var _6e=_6c*this.unitDictionary[_6d];if(_6e===0){_c.byNode(this.resultValue.domNode).setAttribute("content","");}else{if(_6e>1000000){_c.byNode(this.resultValue.domNode).setAttribute("content",_8.format(_6e.toPrecision(9),{pattern:this.numberPattern})+" "+_6d);}else{_c.byNode(this.resultValue.domNode).setAttribute("content",_8.format(_6e.toFixed(2),{pattern:this.numberPattern})+" "+_6d);}}},_switchLocationUnit:function(_6f){_c.byNode(this.unit.domNode).setAttribute("label",_6f);if(this.result===null||this.resultValue.domNode.innerHTML===""){return;}this._outputLocationResult(this.locationX,this.locationY,_6f);},_outputLocationResult:function(x,y,_70){var lon,lat;var _71=_23.widgets.measurement;if(_70===_71.NLS_decimal_degrees){lon=x.toFixed(6);lat=y.toFixed(6);}else{if(_70===_71.NLS_deg_min_sec){var _72=false;var _73=false;if(x<0){_72=true;x=Math.abs(x);}if(y<0){_73=true;y=Math.abs(y);}lon=Math.floor(x)+"°"+Math.floor((x-Math.floor(x))*60)+"'"+Math.floor(((x-Math.floor(x))*60-Math.floor((x-Math.floor(x))*60))*60)+"\"";lat=Math.floor(y)+"°"+Math.floor((y-Math.floor(y))*60)+"'"+Math.floor(((y-Math.floor(y))*60-Math.floor((y-Math.floor(y))*60))*60)+"\"";if(_72){lon="-"+lon;}if(_73){lat="-"+lat;}}}_c.byNode(this.resultValue.domNode).setAttribute("content",_23.widgets.measurement.NLS_longitude+": "+lon+"<br/>"+_23.widgets.measurement.NLS_latitude+": "+lat);},_createLengthUnitList:function(){var _74=new _d({style:"display: none;"});var _75=_23.widgets.measurement;var _76=[_75.NLS_length_miles,_75.NLS_length_kilometers,_75.NLS_length_feet,_75.NLS_length_meters,_75.NLS_length_yards];_4.forEach(_76,_3.hitch(this,function(_77,idx){var _78=new _e({label:_77,onClick:_3.hitch(this,function(){this._switchUnit(_77);})});_78.setAttribute("class","unitDropDown");_74.addChild(_78);}));_c.byNode(this.unit.domNode).setAttribute("dropDown",_74);var _79=this.units[this._defaultLengthUnit];_c.byNode(this.unit.domNode).setAttribute("label",_79);},_createAreaUnitList:function(){var _7a=new _d({style:"display: none;"});var _7b=_23.widgets.measurement;var _7c=[_7b.NLS_area_acres,_7b.NLS_area_sq_miles,_7b.NLS_area_sq_kilometers,_7b.NLS_area_hectares,_7b.NLS_area_sq_yards,_7b.NLS_area_sq_feet,_7b.NLS_area_sq_meters];_4.forEach(_7c,_3.hitch(this,function(_7d,idx){var _7e=new _e({label:_7d,onClick:_3.hitch(this,function(){this._switchUnit(_7d);})});_7e.setAttribute("class","unitDropDown");_7a.addChild(_7e);}));_c.byNode(this.unit.domNode).setAttribute("dropDown",_7a);var _7f=this.units[this._defaultAreaUnit];_c.byNode(this.unit.domNode).setAttribute("label",_7f);},_createLocationUnitList:function(){var _80=new _d({style:"display: none;"});var _81=_23.widgets.measurement;var _82=[_81.NLS_decimal_degrees,_81.NLS_deg_min_sec];_4.forEach(_82,_3.hitch(this,function(_83,idx){var _84=new _e({label:_83,onClick:_3.hitch(this,function(){this._switchLocationUnit(_83);})});_84.setAttribute("class","unitDropDown");_80.addChild(_84);}));_c.byNode(this.unit.domNode).setAttribute("dropDown",_80);var _85=this.units[this._defaultLocationUnit];_c.byNode(this.unit.domNode).setAttribute("label",_85);}});if(_7("extend-esri")){_3.setObject("dijit.Measurement",_24,_1b);}return _24;});