可视化自适应完成
This commit is contained in:
parent
fbe7631373
commit
0d66c6fe90
|
|
@ -1,8 +1,8 @@
|
||||||
export const ms3dConfig = {
|
export const ms3dConfig = {
|
||||||
"scene": {
|
"scene": {
|
||||||
"center": {
|
"center": {
|
||||||
"lat": 30.526361,
|
"lat": 36.555232,
|
||||||
"lng": 116.335987,
|
"lng": 114.116195,
|
||||||
"alt": 45187,
|
"alt": 45187,
|
||||||
"heading": 0,
|
"heading": 0,
|
||||||
"pitch": -85
|
"pitch": -85
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import {sendMessage} from '@/utils/iframe';
|
import {sendMessage} from '@/utils/iframe';
|
||||||
|
const scale = 0.5
|
||||||
const VISUAL_CONFIG = {width: 9450, height: 3000}
|
const VISUAL_CONFIG = {width: 9450 * scale, height: 3000 * scale}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -25,8 +25,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import screenScaleMixin from '@/mixins/screen-scale-mixin_v2';
|
import screenScaleMixin from '@/mixins/screen-scale-mixin';
|
||||||
import {urlJoin} from '@northeast-utils/core'
|
import {urlJoin} from '@/utils/url'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Index',
|
name: 'Index',
|
||||||
|
|
@ -42,8 +42,7 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
src() {
|
src() {
|
||||||
const {href} = this.$router.resolve({name: '/visual/PeakCoalView'})
|
return urlJoin('/visual/PeakCoalView')
|
||||||
return urlJoin(href)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {},
|
watch: {},
|
||||||
|
|
@ -62,7 +61,7 @@ export default {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style lang='scss' scoped>
|
<style lang='less' scoped>
|
||||||
.index {
|
.index {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue