派生自 wuyushui/SewerAndRainNetwork

chenzeping
2021-03-31 55e6c16ceea8b2f2f6d7eb797e05928fb3f92f3b
src/components/LayerController/logic/WasteGas.js
@@ -18,7 +18,10 @@
   * @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)
@@ -31,9 +34,10 @@
      var iconUrl = this.differentTypes(ContrLevel)
      const marker = L.marker.magic([positionX, positionY], {
        test: data[i],
        icon: L.icon({
          iconUrl: iconUrl,
          iconSize: [50, 50],
          iconSize: [20, 20],
          iconAnchor: [25, 25]
        })
      })
@@ -43,8 +47,7 @@
  }
  this.bindTooltip = (layer) => {
    console.log(layer)
    return '废气点'
    return layer.options.test.Name
  }
  this.clickListener = async (e) => {