(params)
| 24 | |
| 25 | export class L7Layer extends L7LayerBase { |
| 26 | constructor(params) { |
| 27 | const { type, options = {} } = params; |
| 28 | super(params); |
| 29 | if (type !== 'ThreeLayer') { |
| 30 | this.l7layer = new L7[type]({ ...options, name: this.id }); |
| 31 | this.setDataFn = this.l7layer.setData.bind(this.l7layer); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | onAdd(map) { |
| 36 | this.map = map; |