浏览代码

feat:修改图层显示透明度

wangsisi 2 周之前
父节点
当前提交
e5c91be281
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 1 1
      src/components/static_map_change/Layers.js
  2. 4 4
      src/views/warningHome/index.vue

+ 1 - 1
src/components/static_map_change/Layers.js

@@ -129,7 +129,7 @@ class StaticMapLayers {
 
     addStaticImgLayer(map, item){
         if(!item["opacity"]){
-            item["opacity"] = 0.5
+            item["opacity"] = 1
         }
         let imgLayer = new StaticImgLayer(item.url, item, 5, map);
         imgLayer.hide()

+ 4 - 4
src/views/warningHome/index.vue

@@ -459,10 +459,10 @@ const handleLegendChange = (data) => {
 
         .show-point{
             position: absolute;
-            top: calc(50% - 250px);
-            left: calc(50% - 250px);
-            width: 500px;
-            height: 500px;
+            top: calc(50% - 50px);
+            left: calc(50% - 50px);
+            width: 100px;
+            height: 100px;
             // background: red;
             z-index: 2;
         }