This commit is contained in:
shihui 2021-10-26 11:32:13 +08:00
commit 43aafd9e3c
2 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,7 @@
"author": "xiaoiver",
"license": "ISC",
"dependencies": {
"@antv/geo-coord": "^1.0.8",
"@antv/async-hook": "^2.1.0",
"@antv/l7-core": "^2.5.39",
"@antv/l7-source": "^2.5.39",

View File

@ -352,9 +352,10 @@ export default class Aspace extends React.Component {
currentView.pitch = scene.getPitch();
currentView.zoom = scene.getZoom();
});
scene.getMapService().on('mapchange', (e: any) => {
// @ts-ignore
currentCamera = threeJSLayer.threeRenderService.getRenderCamera();
currentCamera = threeJSLayer.getRenderCamera();
currentView.pitch = scene.getPitch();
});