智慧园区前端大屏
shuishen
2024-11-14 8e497b2c41dae15aceb5bef1ca003501adca9f9c
企业分布、风险源等上图样式调整
2 files modified
42 ■■■■ changed files
src/pages/layout/components/scomponents/layersControl.vue 8 ●●●●● patch | view | raw | blame | history
src/styles/base/dc-base.scss 34 ●●●●● patch | view | raw | blame | history
src/pages/layout/components/scomponents/layersControl.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-10-31 10:47:29
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-13 19:20:17
 * @LastEditTime: 2024-11-14 18:32:01
 * @FilePath: \bigScreen\src\pages\layout\components\scomponents\layersControl.vue
 * @Description:
 *
@@ -120,6 +120,7 @@
      size: 1000
    },
    backgroundIcon: VITE_APP_BASE + 'img/mapicon/qy.png',
    className: 'qyfb-box',
    showPanel: false,
    layerName: 'qyfb'
  },
@@ -230,6 +231,7 @@
      size: 1000
    },
    showParams: 'category',
    className: 'fxy-box',
    backgroundIcon: VITE_APP_BASE + 'img/mapicon/fxy.png',
    showPanel: false,
    layerName: 'fxy'
@@ -418,7 +420,7 @@
              let divIcon = new DC.DivIcon(
                new DC.Position(i.lng, i.lat, 0),
                `<div class="public-map-popup">
                `<div class="public-map-popup ${item.className || ''}">
                    ${iconEl}
                  </div>`
              )
@@ -465,7 +467,7 @@
          function computeCircle (radius) {
            var positions = []
            for (var i = 0; i < 1080; i++) {
            for (var i = 0; i < 360; i++) {
              var radians = DC.Math.toRadians(i)
              positions.push({
                x: radius * Math.cos(radians),
src/styles/base/dc-base.scss
@@ -66,12 +66,42 @@
    box-shadow: 0px 0px 10px rgb(255, 179, 0, 1);
    img {
      width: 24px;
      height: 24px;
      width: 20px;
      height: 20px;
    }
  }
}
.fxy-box {
  &::after {
    background: linear-gradient(to bottom, rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0.2));
  }
  .map-name {
    color: #ff3b3b;
  }
  .map-icon {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 20%, rgba(255, 0, 0, 0.9) 100%);
    box-shadow: 0px 0px 10px rgb(255, 0, 0);
  }
}
.qyfb-box {
  &::after {
    background: linear-gradient(to bottom, rgba(0, 136, 255, 0.8), rgba(0, 136, 255, 0.2));
  }
  .map-name {
    color: rgb(66, 165, 252);
  }
  .map-icon {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 20%, rgba(0, 136, 255, 0.9) 100%);
    box-shadow: 0px 0px 10px rgba(0, 136, 255, 1);
  }
}
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 4px red, inset 0 0 4px red;