可视化自适应完成

This commit is contained in:
DESKTOP-VMMLSOQ\wangzg 2024-02-23 22:57:06 +08:00
parent fbe7631373
commit 0d66c6fe90
3 changed files with 8 additions and 9 deletions

View File

@ -1,8 +1,8 @@
export const ms3dConfig = {
"scene": {
"center": {
"lat": 30.526361,
"lng": 116.335987,
"lat": 36.555232,
"lng": 114.116195,
"alt": 45187,
"heading": 0,
"pitch": -85

View File

@ -1,6 +1,6 @@
import {sendMessage} from '@/utils/iframe';
const VISUAL_CONFIG = {width: 9450, height: 3000}
const scale = 0.5
const VISUAL_CONFIG = {width: 9450 * scale, height: 3000 * scale}
export default {
data() {

View File

@ -25,8 +25,8 @@
</template>
<script>
import screenScaleMixin from '@/mixins/screen-scale-mixin_v2';
import {urlJoin} from '@northeast-utils/core'
import screenScaleMixin from '@/mixins/screen-scale-mixin';
import {urlJoin} from '@/utils/url'
export default {
name: 'Index',
@ -42,8 +42,7 @@ export default {
},
computed: {
src() {
const {href} = this.$router.resolve({name: '/visual/PeakCoalView'})
return urlJoin(href)
return urlJoin('/visual/PeakCoalView')
}
},
watch: {},
@ -62,7 +61,7 @@ export default {
height: 100vh;
}
</style>
<style lang='scss' scoped>
<style lang='less' scoped>
.index {
width: 100vw;
height: 100vh;