From 6c07e635b810396f8c8a85573fe51d0a37b22c4d Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期四, 01 四月 2021 15:56:19 +0800
Subject: [PATCH] 动画图层独立出来,修复事件冲突的问题
---
src/components/LayerController/service/AnimalService.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/components/LayerController/service/AnimalService.js b/src/components/LayerController/service/AnimalService.js
index 9a80b7f..687b6e7 100644
--- a/src/components/LayerController/service/AnimalService.js
+++ b/src/components/LayerController/service/AnimalService.js
@@ -4,8 +4,9 @@
class AnimalService {
constructor (config) {
this.intervals = [] // 瀹氭椂鍣ㄥ垪琛�
+ // todo 杩欑鎯呭喌涓�鑸敤 window绾х殑L銆乵ap杩樻槸浼犻�掑憿
this.L = config.L
- this.layer = config.layer
+ this.layer = window.map
this.times = config.times || 5
this.colors = ['#98FB98', '#ff0000']
}
--
Gitblit v1.8.0