|
@@ -55,7 +55,7 @@ class StaticMapLayers {
|
|
|
that.layerData[key] = {legend:item.legend, layer:that.addStaticImgLayer(map, item)}
|
|
|
}
|
|
|
}
|
|
|
- // that.autoTest()
|
|
|
+ that.autoTest()
|
|
|
// 时间轴
|
|
|
eventBus.on("weatherTime:changeTime", ({index}) => {
|
|
|
this.timeIndex = index
|
|
@@ -80,7 +80,7 @@ class StaticMapLayers {
|
|
|
let extent = layer.layer.getExtent();
|
|
|
if(extent && extent[0] != Infinity){
|
|
|
console.log("show layer",extent)
|
|
|
- layer.mapInstance.fit(extent,{padding:[-100,-100,-100,-100]})
|
|
|
+ layer.mapInstance.fit(extent,{padding:[-200,-200,-200,-200]})
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -140,7 +140,7 @@ class StaticMapLayers {
|
|
|
}
|
|
|
let index = 0
|
|
|
setTimeout(() => {
|
|
|
- that.show("分散种植0",true)
|
|
|
+ that.show("分散种植",true)
|
|
|
index = (index + 1) % keys.length
|
|
|
|
|
|
}, 2000);
|