怎么把这距离和面积的代码溶入我原来的底图来 5C

怎么把第一个的写法,改到第二个去,把第一个溶合进来他要的东西。

<script type="text/javascript">
        var dojoConfig = {
            async: true,
            packages: [{
                "name": "layerjs",
                "location": location.pathname.replace(/\/[^/]+$/, "")+ "/js"
            }]
        };          
</script>
<script src="https://js.arcgis.com/3.18/"></script>
<script type="text/javascript">
   require([
           "esri/map",  
           "esri/dijit/Measurement", 
           "esri/units", 
            "dojo/dom",
           "layerjs/MeasureTools",  
            "dojo/domReady!"
         ],function(
            Map,Measurement, Units,dom,deMeasureTools
          ){        
             var map=new Map("map",{
                 showAttribution:false,
                 fadeOnZoom:true,
                 force3DTransforms:true,
                 center:[101.7,24.6],
                 zoom:10,
                 autoResize:true,
                 sliderPosition:"bottom-right",
                 logo:false
             });
             var measurement = new Measurement({
    map: map,
    defaultAreaUnit: Units.SQUARE_MILES,
    defaultLengthUnit: Units.KILOMETERS
  }, dom.byId('measurement'));

主要是这一些,我不知道怎么可以溶合到这边来

require(["dojo/dom","dojo/dom-construct","esri/map","esri/dijit/Scalebar","esri/tasks/Geoprocessor","esri/InfoTemplate","esri/tasks/FindTask","esri/tasks/FindParameters","esri/layers/ArcGISDynamicMapServiceLayer","esri/layers/ArcGISTiledMapServiceLayer",
    "esri/layers/FeatureLayer", "esri/tasks/query",
    "esri/tasks/QueryTask", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/PictureMarkerSymbol",
    "esri/renderers/SimpleRenderer","esri/symbols/SimpleFillSymbol", "esri/symbols/SimpleLineSymbol",
    "esri/Color", "esri/toolbars/draw","dijit/TooltipDialog", "dijit/popup",
    "esri/lang", "dojo/dom-style", "esri/graphic", "dojo/on", "dojo/number", "esri/geometry/Point", "esri/geometry/ScreenPoint",
    "dojo/parser", "esri/symbols/PictureMarkerSymbol", "esri/layers/GraphicsLayer", "esri/symbols/TextSymbol", "dijit/registry",
     "dojo/domReady!"
], function(dom,       domConstruct,Map,Scalebar,Geoprocessor,InfoTemplate,FindTask,FindParameters,ArcGISDynamicMapServiceLayer, ArcGISTiledMapServiceLayer,FeatureLayer, Query, QueryTask,
    SimpleMarkerSymbol, PictureMarkerSymbol, SimpleRenderer,SimpleFillSymbol, SimpleLineSymbol, Color, Draw,TooltipDialog, dijitPopup, esriLang, domStyle, Graphic, on,
    number, Point, ScreenPoint, parser, PictureMarkerSymbol, GraphicsLayer, TextSymbol, registry
) {

    map = new esri.Map("mapDiv", {logo:false,
                 center:[119.31197,26.08500],
                 zoom:17,
                 slider:false
             });
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!