合并
This commit is contained in:
@ -98,7 +98,7 @@ export default class MouseEvent {
|
|||||||
}, Cesium.ScreenSpaceEventType.WHEEL)
|
}, Cesium.ScreenSpaceEventType.WHEEL)
|
||||||
}
|
}
|
||||||
|
|
||||||
getcartesian(movement) {
|
getcartesian(movement) {
|
||||||
// if (movement.endPosition) {
|
// if (movement.endPosition) {
|
||||||
// movement.endPosition.y -= 2
|
// movement.endPosition.y -= 2
|
||||||
// }
|
// }
|
||||||
@ -125,9 +125,6 @@ getcartesian(movement) {
|
|||||||
cartesian = this.viewer.scene.globe.pick(ray, this.viewer.scene);
|
cartesian = this.viewer.scene.globe.pick(ray, this.viewer.scene);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// console.log(cartesian)
|
|
||||||
// const updatedPositions = await Cesium.sampleTerrainMostDetailed(this.sdk.viewer.terrainProvider, Cesium.Cartographic.fromCartesian(cartesian, this.viewer.scene.globe.ellipsoid));
|
|
||||||
// console.log(updatedPositions)
|
|
||||||
return cartesian
|
return cartesian
|
||||||
// return this.earth.czm.viewer.scene.pickPosition(position)
|
// return this.earth.czm.viewer.scene.pickPosition(position)
|
||||||
}
|
}
|
||||||
|
@ -557,5 +557,12 @@ function setActiveViewer(v) {
|
|||||||
activeViewer = v
|
activeViewer = v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getSdk() {
|
||||||
|
return {
|
||||||
|
sdkP: sdk3D,
|
||||||
|
sdkD: sdk2D
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export { on, off, syncData, syncEntities, syncDataSources, syncPrimitives, get2DView, get3DView, setActiveViewer }
|
|
||||||
|
export { on, off, syncData, syncEntities, syncDataSources, syncPrimitives, get2DView, get3DView, setActiveViewer, getSdk }
|
@ -64,12 +64,13 @@ import { open as mapxOpen, close as mapxClose } from '../Global/MapX'
|
|||||||
import {
|
import {
|
||||||
on as multiViewportModeOn,
|
on as multiViewportModeOn,
|
||||||
off as multiViewportModeOff,
|
off as multiViewportModeOff,
|
||||||
get2DView
|
get2DView,
|
||||||
|
getSdk as getSdk2
|
||||||
} from '../Global/MultiViewportMode'
|
} from '../Global/MultiViewportMode'
|
||||||
import { MouseCoordinate } from '../Global/MouseCoordinate'
|
import { MouseCoordinate } from '../Global/MouseCoordinate'
|
||||||
import { MouseRightMenu } from '../Global/mouseRightMenu'
|
import { MouseRightMenu } from '../Global/mouseRightMenu'
|
||||||
import { dialog as ContourDialog } from '../Global/Contour'
|
import { dialog as ContourDialog } from '../Global/Contour'
|
||||||
import { on as SplitScreenOn, off as SplitScreenOff, setActiveId as SplitScreenSetActiveId } from '../Global/SplitScreen'
|
import { on as SplitScreenOn, off as SplitScreenOff, setActiveId as SplitScreenSetActiveId ,getSdk } from '../Global/SplitScreen'
|
||||||
import LocateCurrent from '../Obj/Base/LocateCurrent'
|
import LocateCurrent from '../Obj/Base/LocateCurrent'
|
||||||
|
|
||||||
import { Clear as AnalysisClear } from '../Obj/Analysis/clear'
|
import { Clear as AnalysisClear } from '../Obj/Analysis/clear'
|
||||||
@ -299,7 +300,8 @@ if (!window.YJ) {
|
|||||||
multiViewportMode: {
|
multiViewportMode: {
|
||||||
on: multiViewportModeOn,
|
on: multiViewportModeOn,
|
||||||
off: multiViewportModeOff,
|
off: multiViewportModeOff,
|
||||||
get2DView
|
get2DView,
|
||||||
|
getSdk:getSdk2
|
||||||
},
|
},
|
||||||
MouseCoordinate,
|
MouseCoordinate,
|
||||||
MouseRightMenu,
|
MouseRightMenu,
|
||||||
@ -331,7 +333,8 @@ if (!window.YJ) {
|
|||||||
splitScreen: {
|
splitScreen: {
|
||||||
on: SplitScreenOn,
|
on: SplitScreenOn,
|
||||||
off: SplitScreenOff,
|
off: SplitScreenOff,
|
||||||
setActiveId: SplitScreenSetActiveId
|
setActiveId: SplitScreenSetActiveId,
|
||||||
|
getSdk
|
||||||
},
|
},
|
||||||
Contour: ContourDialog
|
Contour: ContourDialog
|
||||||
}, //测量
|
}, //测量
|
||||||
|
Reference in New Issue
Block a user