xzw před 2 měsíci
rodič
revize
641d1270e8
2 změnil soubory, kde provedl 8 přidání a 0 odebrání
  1. 7 0
      src/custom/start.js
  2. 1 0
      src/custom/viewer/map/MapViewer.js

+ 7 - 0
src/custom/start.js

@@ -221,6 +221,9 @@ export function start(dom, mapDom, number ){ //t-Zvd3w0m
             
             console.log('allLoaded')
             
+             
+            
+            
             viewer.addTube({
                 't-8KbK1JjubE':[ 
                     {//地上管子 黄色 
@@ -278,6 +281,10 @@ export function start(dom, mapDom, number ){ //t-Zvd3w0m
             })
             
             viewer.dispatchEvent('allLoaded')
+            
+             
+            
+            
         }
         
         

+ 1 - 0
src/custom/viewer/map/MapViewer.js

@@ -318,6 +318,7 @@ export class MapViewer extends ViewerBase{
     
     updateCursor(){
         //console.log('pos', viewer.mainViewport.camera.position.toArray() ) 
+        if(!this.cursor.visible)return
         var scale = math.getScaleForConstantSize( {//规定下最小最大像素
             minSize : 80,  maxSize : 200,   nearBound : initCameraFeildWidth*0.1 , farBound : initCameraFeildWidth*2,
             camera:this.camera , position: this.cursor.getWorldPosition(new THREE.Vector3()),