diff --git a/packages/layers/package.json b/packages/layers/package.json index 29353cc0dc..edc64c99dd 100644 --- a/packages/layers/package.json +++ b/packages/layers/package.json @@ -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", diff --git a/stories/3D_Model/Components/aspace.tsx b/stories/3D_Model/Components/aspace.tsx index 5adaddfcf6..3a8e63e8d3 100644 --- a/stories/3D_Model/Components/aspace.tsx +++ b/stories/3D_Model/Components/aspace.tsx @@ -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(); });