派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-04-07 b620b2f8962a0a1fea3846db83b98704820e16b9
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,7 +40,7 @@
        test: data[i],
        icon: L.icon({
          iconUrl: iconUrl,
          iconSize: [20, 35],
          iconSize: [20, 20],
          iconAnchor: [10, 20]
        })
      })