派生自 wuyushui/SewerAndRainNetwork

zhangshuaibao
2021-04-07 aae66dc025761b18306b9271625748c26524e6a2
src/components/LayerController/logic/WasteGas.js
@@ -20,6 +20,7 @@
  this.init = async (layer, L) => {
    this.animalService = new AnimalService({ L: L, layer: layer })
    const res = await mapApi.getWasteGas()
    // console.log(res)
    const data = res.Result.DataInfo || {}
    // console.log(data)
    for (let i = 0; i < data.length; i++) {
@@ -39,8 +40,7 @@
        test: data[i],
        icon: L.icon({
          iconUrl: iconUrl,
          iconSize: [20, 35],
          iconAnchor: [10, 20]
          iconSize: [20, 20]
        })
      })
      layer.addLayer(marker)