派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-18 be771111fb2a9770a9fbf13c5d7e976bf8688b6d
src/components/LayerController/logic/WasteGas.js
@@ -37,12 +37,6 @@
      // 定义类型 用来区分数据
      const ContrLevel = data[i].ContrLevel
      var iconUrl = this.differentTypes(ContrLevel)
      // const marker = L.canvasMarker([positionX, positionY], {
      //   img: {
      //     // url: 'assets/images/map/marker-icon.png',
      //     url: iconUrl,
      //     size: STYLES.ICON_SIZE
      //   }
      const marker = L.marker([positionX, positionY], {
        test: data[i],
        icon: L.icon({
@@ -68,7 +62,7 @@
    const res = e.layer.options.test
    window.$layer.open({
      content: {
        content: WasteGasIndex, // 组件
        comp: WasteGasIndex, // 组件
        parent: this, // 父组件
        data: { // 传递的参数
          storagePlaceId: res