派生自 wuyushui/SewerAndRainNetwork

wangqi
2021-03-29 78b643de0b8690d566146858cd781be98d01777d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
// 引入用于处理接口数据获取的方法
import { getDataInitWireSurface } from '@src/api/request'
 
class initWireSurface {
  constructor (options) {
    this.map = options.map
    this.L = window.L
    this.initWireSurfaceMap = new Map()
    this.initWireSurfacePopup = this.L.layerGroup().addTo(this.map)
  }
 
  // 获取页面线/面数据
  getDataInitWireSurface () {
    getDataInitWireSurface().then(res => {
      console.log(res)
    }).catch(error => {
      console.log(error)
    })
  }
}
 
export default initWireSurface