派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-14 dabe6f1b9544223604ce533edfa1710c415a8121
src/components/LayerController/service/LayerFactory.js
@@ -1,8 +1,7 @@
import WfsLayerService from './WfsLayerService'
import { clone } from '../../../utils/utils'
import { clone, pulseEffect } from '../../../utils/utils'
import { logicMapper, SERVICE_TYPE } from '../../../conf/Constants'
import WmsLayerService from './WmsLayerService'
import AnimalService from './AnimalService'
/**
 *  init 只初始化一次
@@ -18,8 +17,8 @@
    this.layersLogic = {}
    this.minZoomLayers = {}
    this.wmsLayers = []
    // todo 待优化,wmslayerservice调用,放这里不合适
    this.clickSwitch = true // 图层点击弹窗开关
    this.animalService = new AnimalService({ L: this.L })
    this.hightlightLayer = options.L.featureGroup({}).addTo(window.map)
  }
@@ -225,7 +224,7 @@
      if (point.length > 2) {
        point = [point[0], point[1]]
      }
      this.animalService.pulseEffect(point.reverse())
      pulseEffect(point.reverse())
      /* var myIcon = this.L.divIcon({ className: 'my-div-icon' })
      this.L.marker(feature.geometry.coordinates.reverse(), {
        icon: myIcon