()
| 264 | } |
| 265 | }, |
| 266 | init () { |
| 267 | const mapConfig = { |
| 268 | style: "amap://styles/7e3bb5bc6ed4019b2fe41a29167fd026", // 样式URL |
| 269 | pitch: 0, |
| 270 | center: [112, 23.69], |
| 271 | zoom: 2.5, |
| 272 | } |
| 273 | this.initL7Map(`map${this.id}`, mapConfig, async (scene) => { |
| 274 | this.scene = scene |
| 275 | await this.initData() |
| 276 | this.drawPointLayer() |
| 277 | }) |
| 278 | } |
| 279 | }, |
| 280 | template: `<div class="full" :id="'map'+id"></div>` |
| 281 | }) |
nothing calls this directly
no test coverage detected