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