派生自 wuyushui/SewerAndRainNetwork

zhangshuaibao
2021-03-31 c92dd3fca165ddd8d73d29a640ec22c89c45260f
src/components/LayerController/logic/SolidWaste.js
@@ -14,13 +14,12 @@
   * @param L leaflet对象
   */
  this.init = async (layer, L) => {
    // const SolidWasteIcon = this.SolidWasteIcon()
    this.animalService = new AnimalService({
      L: L,
      layer: layer
    })
    const res = await mapApi.getSolidWaste()
    // console.log(res)
    console.log(res)
    const data = res.Result.DataInfo || {}
    for (let i = 0; i < data.length; i++) {
      // 经纬度 位置
@@ -38,7 +37,6 @@
          iconAnchor: [25, 25]
        })
      })
      layer.addLayer(marker)
    }
  }