合并
This commit is contained in:
@ -125,9 +125,6 @@ getcartesian(movement) {
|
||||
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 this.earth.czm.viewer.scene.pickPosition(position)
|
||||
}
|
||||
|
@ -557,5 +557,12 @@ function setActiveViewer(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 {
|
||||
on as multiViewportModeOn,
|
||||
off as multiViewportModeOff,
|
||||
get2DView
|
||||
get2DView,
|
||||
getSdk as getSdk2
|
||||
} from '../Global/MultiViewportMode'
|
||||
import { MouseCoordinate } from '../Global/MouseCoordinate'
|
||||
import { MouseRightMenu } from '../Global/mouseRightMenu'
|
||||
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 { Clear as AnalysisClear } from '../Obj/Analysis/clear'
|
||||
@ -299,7 +300,8 @@ if (!window.YJ) {
|
||||
multiViewportMode: {
|
||||
on: multiViewportModeOn,
|
||||
off: multiViewportModeOff,
|
||||
get2DView
|
||||
get2DView,
|
||||
getSdk:getSdk2
|
||||
},
|
||||
MouseCoordinate,
|
||||
MouseRightMenu,
|
||||
@ -331,7 +333,8 @@ if (!window.YJ) {
|
||||
splitScreen: {
|
||||
on: SplitScreenOn,
|
||||
off: SplitScreenOff,
|
||||
setActiveId: SplitScreenSetActiveId
|
||||
setActiveId: SplitScreenSetActiveId,
|
||||
getSdk
|
||||
},
|
||||
Contour: ContourDialog
|
||||
}, //测量
|
||||
|
Reference in New Issue
Block a user