浏览代码

showLayer

qinhouyu 2 年之前
父节点
当前提交
8f8a38e835
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/components/supermap-2.5d.vue

+ 3 - 3
src/components/supermap-2.5d.vue

@@ -70,7 +70,7 @@
           mapData: null,
           mapName: null
         },
-        showLayer: null,
+        showLayer: true,
         clickTime: new Date().getTime(),
         cacheData: {
           ProvinceRoad: "",
@@ -210,7 +210,7 @@
       this.showLayer = this.showLayer != undefined ? this.showLayer : false;
     },
     props: {
-      showLayer: [Boolean],
+      // showLayer: [Boolean],
     },
     methods: {
       //初始化地图数据
@@ -1032,4 +1032,4 @@
     opacity: 0;
     transform: translateY(-10rem);
   }
-</style>
+</style>