乐趣区

关于arcgis:ArcGIS-for-JS-连接在线地图服务

        dojoRequire(["esri/map", 
        "esri/geometry/Point",
        "esri/layers/ImageParameters",
        "esri/layers/ArcGISDynamicMapServiceLayer",
        "esri/layers/GraphicsLayer", ], (Map, Point, ImageParameters, ArcGISDynamicMapServiceLayer,GraphicsLayer) => {
          
          
        map = new Map("map", {
            basemap: "satellite", 
            center: [113.36112, 23.12467],
            zoom: 11,
        });
            
               
        var dynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer("http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineCommunity/MapServer", {"opacity"        :1.0,});
        map.addLayer(dynamicMapServiceLayer);
        })
        
        
退出移动版