我使用mapimage和mapimagelayer在esri地图中加载30 +图像。我想在加载图片时显示加载但不幸的是我无法这样做。有人可以帮帮我吗?代码如下:
var map = new esri.Map('map', {
//center: [6.6032, 53.1917],
sliderStyle: "large",
basemap:'Topo',
zoom:9,
maxZoom:14,
force3DTransforms: true,
navigationMode: "classic"
});
EsriDBImageLayer= new esri.layers.MapImageLayer({
'id': 'usgs_basemap_image_overlay'
});
EsriDBImageLayer.setOpacity(0.7);
map.addLayer(EsriBaseDBImageLayer);
//dbImageList is retrieved from webservice with all
necessary data.
var tempImageList = dbImageList;
for(var i=0;i<tempImageList.length;i++){
EsriDBImageLayer.addImage(tempImageList[i]);
}
到目前为止,我尝试在map和MapImageLayer中使用'update-end'和'update-start'事件,但事件无效。在map和mapimagelayer中。