| 
					
				 | 
			
			
				@@ -56,11 +56,13 @@ class StaticMapLayers { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // that.autoTest() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    show(key){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    show(key,isFit = false){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.hideAll() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let layer = this.layerData[key].layer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         eventBus.emit("alarmList:changeMapLayer", {legendUrl:this.layerData[key].legend, colors:layer.layer.get("colors")}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         layer.show() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(isFit && layer.source.getExtent && layer.source.getExtent()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            layer.mapInstance.fit(layer.source.getExtent(),{padding:[100,100,100,100]}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     hideAll(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for(let key in this.layerData){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -112,9 +114,9 @@ class StaticMapLayers { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let index = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         setInterval(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            that.show(keys[index]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            that.show(keys[index],true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             index = (index + 1) % keys.length 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }, 1000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }, 2000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |