共计 498 个字符,预计需要花费 2 分钟才能阅读完成。
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);
})
正文完