智慧园区前端大屏
shuishen
2024-11-07 a358c49de4680dcde00d543043ef6694b92e7bd1
src/views/sub/components/scomponents/tool/location.vue
@@ -46,11 +46,8 @@
const latitude = ref(0)
const height = ref(0)
import { getViewer } from 'utils/getViewer'
const globalViewer = getViewer()
const flyTo = () => {
  globalViewer.flyToPosition(new DC.Position(longitude.value, latitude.value, height.value, 0, -90, 0), () => { }, 3)
  window.$viewer.flyToPosition(new DC.Position(longitude.value, latitude.value, height.value, 0, -90, 0), () => { }, 3)
}
</script>