派生自 wuyushui/SewerAndRainNetwork

wangqi
2021-04-07 9a3296d09777fbde9a11979db867c7597919c62c
弹窗出现位置缩小
3个文件已修改
12 ■■■■ 已修改文件
src/components/LayerController/logic/SolidWaste.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/logic/WasteGas.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/logic/WasteWater.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/logic/SolidWaste.js
@@ -40,7 +40,7 @@
        icon: L.icon({
          iconUrl: iconUrl,
          iconSize: [20, 20],
          iconAnchor: [25, 25]
          iconAnchor: [10, 10]
        })
      })
      layer.addLayer(marker)
@@ -88,7 +88,7 @@
    // 通过方法 向绑定弹框传递数据
    instance.setData(resultBasic.Result.DataInfo, resultDetailed.Result.DataInfo, 'gufei')
    /* flyTo()弹出框平移事件 */
    this.setPanTo(e.latlng, 200)
    this.setPanTo(e.latlng, 80)
  }
  // flayTo() 弹框的可滑动事件
src/components/LayerController/logic/WasteGas.js
@@ -41,7 +41,7 @@
        icon: L.icon({
          iconUrl: iconUrl,
          iconSize: [20, 20],
          iconAnchor: [10, 20]
          iconAnchor: [10, 10]
        })
      })
      layer.addLayer(marker)
@@ -67,7 +67,7 @@
    // console.log(e.layer.options.test)
    instance.$mount()
    document.body.appendChild(instance.$el)
    this.setPanTo(e.latlng, 240)
    this.setPanTo(e.latlng, 80)
  }
  // 不同类型图片加载
  this.differentTypes = (ContrLevel) => {
src/components/LayerController/logic/WasteWater.js
@@ -38,7 +38,7 @@
        icon: L.icon({
          iconUrl: iconUrl,
          iconSize: [20, 20],
          iconAnchor: [25, 25]
          iconAnchor: [10, 10]
        })
      })
      layer.addLayer(marker)
@@ -64,7 +64,7 @@
    // console.log(e.layer.options.test)
    instance.$mount()
    document.body.appendChild(instance.$el)
    this.setPanTo(e.latlng, 240)
    this.setPanTo(e.latlng, 80)
  }
  // 根据返回值的不同标记不同图片