派生自 wuyushui/SewerAndRainNetwork

ChenZeping02609
2021-05-12 a089095b088f14101d5ab4b9fe1d05098f576493
Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop
4个文件已修改
43 ■■■■■ 已修改文件
src/components/LayerController/logic/WasteGas.js 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/logic/WasteSolid.js 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/logic/WasteWater.js 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/service/AnimalService.js 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/logic/WasteGas.js
@@ -74,7 +74,7 @@
      },
      title: title // 标题
    })
    this.setPanTo(e.latlng, 150)
    this.animalService.setPanTo(e.latlng, 150)
  }
  // 不同类型图片加载
  this.differentTypes = (ContrLevel) => {
@@ -91,12 +91,5 @@
    //   effectOfChange = ImgGray
    // }
    return effectOfChange
  }
  this.setPanTo = (pos, value) => {
    var position = pos
    position = window.map.latLngToLayerPoint(position)
    position.y += value
    position = window.map.layerPointToLatLng(position)
    window.map.flyTo(position)
  }
}
src/components/LayerController/logic/WasteSolid.js
@@ -66,7 +66,7 @@
      title: title // 标题
    })
    /* flyTo()弹出框平移事件 */
    this.setPanTo(e.latlng, 300)
    this.animalService.setPanTo(e.latlng, 300)
  }
  // 不同类型图片封装
@@ -78,14 +78,5 @@
      effectOfChange = setting
    }
    return effectOfChange
  }
  // flayTo() 弹框的可滑动事件
  this.setPanTo = (pos, value) => {
    var position = pos
    position = window.map.latLngToLayerPoint(position)
    position.y += value
    position = window.map.layerPointToLatLng(position)
    window.map.flyTo(position)
  }
}
src/components/LayerController/logic/WasteWater.js
@@ -70,7 +70,7 @@
      },
      title: title // 标题
    })
    this.setPanTo(e.latlng, 150)
    this.animalService.setPanTo(e.latlng, 150)
  }
  this.requestWasteWaterData = async (e) => {
    // 基本信息 和 详细信息 展示数据所需参数
@@ -132,13 +132,5 @@
        break
    }
    return testChange
  }
  // flayTo() 弹框的可滑动事件
  this.setPanTo = (pos, value) => {
    var position = pos
    position = window.map.latLngToLayerPoint(position)
    position.y += value
    position = window.map.layerPointToLatLng(position)
    window.map.flyTo(position)
  }
}
src/components/LayerController/service/AnimalService.js
@@ -33,6 +33,19 @@
      }
    }, 1000)
  }
  /**
   * 设置弹窗平移位置
   * @param pos
   * @param value
   */
  setPanTo = (pos, value) => {
    var position = pos
    position = this.layer.latLngToLayerPoint(position)
    position.y += value
    position = this.layer.layerPointToLatLng(position)
    this.layer.flyTo(position)
  }
}
export default AnimalService