派生自 wuyushui/SewerAndRainNetwork

seatonwan9
2021-04-20 3d39880680251c669f7ace41e06bb0c6c537fa2c
设置全局tips位置
2个文件已修改
6 ■■■■ 已修改文件
src/components/LayerController/logic/WasteWater.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/service/BusiLayerService.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/logic/WasteWater.js
@@ -58,7 +58,6 @@
    this.animalService.pulseEffect(e.latlng)
    /* 点击数据的接口请求 */
    this.requestWasteWaterData(e).then(e)
    console.log()
  }
  this.requestWasteWaterData = async (e) => {
    // 基本信息 和 详细信息 展示数据所需参数
@@ -67,7 +66,7 @@
    // }
    // 弹框标题
    const title = e.layer.options.totransferData.Name
    console.log(e.layer.options)
    // console.log(e.layer.options)
    // 基本信息 tabs
    // const resultBasic = await mapApi.getWasteWater(dataValue)
    // 图表信息展示 echarts
src/components/LayerController/service/BusiLayerService.js
@@ -22,7 +22,8 @@
      var busiLayer = new BusiLayer()
      busiLayer.init(layer, this.L)
      if (busiLayer.bindTooltip) {
        layer.bindTooltip(busiLayer.bindTooltip)
        // 全局tips位置
        layer.bindTooltip(busiLayer.bindTooltip, { direction: 'top', offset: [0, -15], sticky: false })
      }
      // 调用click事件
      if (busiLayer.clickListener) {