派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-04-01 6c07e635b810396f8c8a85573fe51d0a37b22c4d
动画图层独立出来,修复事件冲突的问题
1个文件已修改
3 ■■■■ 已修改文件
src/components/LayerController/service/AnimalService.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/service/AnimalService.js
@@ -4,8 +4,9 @@
class AnimalService {
  constructor (config) {
    this.intervals = [] // 定时器列表
    // todo 这种情况一般用 window级的L、map还是传递呢
    this.L = config.L
    this.layer = config.layer
    this.layer = window.map
    this.times = config.times || 5
    this.colors = ['#98FB98', '#ff0000']
  }