派生自 wuyushui/SewerAndRainNetwork

zhangshuaibao
2021-04-01 9b4688d253fe2ab54868ba10ff5bd89051971d0c
src/components/LayerController/logic/WasteGas.js
@@ -18,10 +18,13 @@
   * @param L leaflet对象
   */
  this.init = async (layer, L) => {
    this.animalService = new AnimalService({ L: L, layer: layer })
    this.animalService = new AnimalService({
      L: L,
      layer: layer
    })
    const res = await mapApi.GetWasteGas()
    const data = res.Result.DataInfo || {}
    console.log(data)
    // console.log(data)
    for (let i = 0; i < data.length; i++) {
      // 经纬度 位置
      const positionX = data[i].Latitude
@@ -44,7 +47,6 @@
  }
  this.bindTooltip = (layer) => {
    console.log(layer)
    return layer.options.test.Name
  }