派生自 wuyushui/SewerAndRainNetwork

chenyabin
2021-03-31 f418dbba7378dea1974bf8a34d0da68d625f5abb
添加企业点图层控制修改
3个文件已修改
16 ■■■■■ 已修改文件
src/components/LayerController/logic/Company.js 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/conf/Constants.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/conf/layers/LayerArea.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/logic/Company.js
@@ -22,6 +22,7 @@
    console.log(res)
    const data = res.Result.DataInfo || {}
    for (let i = 0; i < data.length; i++) {
      console.log(data[i])
      // 经纬度 位置
      const positionX = data[i].Latitude
      const positionY = data[i].Longitude
@@ -44,16 +45,9 @@
    return '企业'
  }
  this.clickListener = (layer) => {
    /* this.animalService.pulseEffect(e.latlng)
  this.clickListener = (e) => {
    this.animalService.pulseEffect(e.latlng)
    console.log(e)
    return this.PublicBounced.$el
    */
    console.log(layer)
  }
  // 固废点击进行的 内容的设置
  // SetSolidWasteContent (config, containerPopup) {
  //   this.SolidWastePopup = containerPopup
  // }
}
src/conf/Constants.js
@@ -8,7 +8,7 @@
  wasteGasJcd: 'WasteGas.js',
  wasteWaterJcd: 'WasteWater.js',
  solidWasteJcd: 'SolidWaste.js',
  fsqy: 'Company.js'
  sewersAreaGs: 'Company.js'
}
export const props = {
src/conf/layers/LayerArea.js
@@ -13,7 +13,7 @@
      name: '公司',
      sname: '公司', // 表名
      checked: true, // 默认选中状态
      wfs: WFS_URL + '?TYPENAME=公司',
      url: WFS_URL + '?TYPENAME=公司',
      minZoom: 10, // 在指定级别显示
      childLayer: 'fsss,hbss' // 关联PointLayers
    },