zpf 10 meses atrás
pai
commit
ac1eaf9ae0
2 arquivos alterados com 26 adições e 1 exclusões
  1. 23 0
      index.html
  2. 3 1
      src/views/viewer.vue

+ 23 - 0
index.html

@@ -27,6 +27,29 @@
     <script src="./static/js/echarts.min.js"></script>
     <script src="./static/js/echarts-gl.min.js"></script>
     <script src="./static/js/shp.js"></script>
+
+    <style>
+        .cesium-performanceDisplay-defaultContainer {
+            clear: both;
+            top: 10rem;
+            z-index: 1000;
+            background-color: rgba(0, 0, 0, 0);
+        }
+
+        .cesium-performanceDisplay {
+            background-color: rgba(0, 0, 0, 0);
+            border: 0px;
+        }
+
+        .cesium-performanceDisplay-ms {
+            display: inline;
+            margin-right: 10px;
+        }
+
+        .cesium-performanceDisplay-fps {
+            display: inline;
+        }
+    </style>
 </head>
 
 <body>

+ 3 - 1
src/views/viewer.vue

@@ -453,7 +453,7 @@ export default {
             this.pick_xzqh();
             this.init_xzqh();
             this.init_hyqy();
-
+            // viewer.scene.debugShowFramesPerSecond = true;
         });
 
 
@@ -538,4 +538,6 @@ export default {
         float: right;
     }
 }
+
+
 </style>