派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-04-07 b620b2f8962a0a1fea3846db83b98704820e16b9
修改图标大小
4个文件已修改
14 ■■■■ 已修改文件
src/components/LayerController/logic/Company.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/logic/SolidWaste.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/logic/WasteGas.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/logic/WasteWater.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/logic/Company.js
@@ -28,11 +28,11 @@
      const positionY = data[i].Longitude
      var iconUrl = companyImg
      const marker = L.marker.magic([positionX, positionY], {
      const marker = L.marker([positionX, positionY], {
        icon: L.icon({
          iconUrl: iconUrl,
          iconSize: [50, 50],
          iconAnchor: [25, 25]
          iconSize: [30, 30],
          iconAnchor: [13, 5]
        }),
        test: data[i]
      })
src/components/LayerController/logic/SolidWaste.js
@@ -39,7 +39,7 @@
        totransferData: getSolidWasteData[i],
        icon: L.icon({
          iconUrl: iconUrl,
          iconSize: [50, 50],
          iconSize: [20, 20],
          iconAnchor: [25, 25]
        })
      })
src/components/LayerController/logic/WasteGas.js
@@ -40,7 +40,7 @@
        test: data[i],
        icon: L.icon({
          iconUrl: iconUrl,
          iconSize: [20, 35],
          iconSize: [20, 20],
          iconAnchor: [10, 20]
        })
      })
src/components/LayerController/logic/WasteWater.js
@@ -33,11 +33,11 @@
      // 定义类型 用来区分数据的不同
      const testValue = data[i].ContrLevel
      const iconUrl = this.differentTypes(testValue)
      const marker = L.marker.magic([positionX, positionY], {
      const marker = L.marker([positionX, positionY], {
        test: data[i],
        icon: L.icon({
          iconUrl: iconUrl,
          iconSize: [50, 50],
          iconSize: [20, 20],
          iconAnchor: [25, 25]
        })
      })