1
mayisheng
2022-08-15 81f54040c2cb65537c6c6e1db8358a39a57dea0d
src/components/mobileCortrol/index.vue
@@ -1,8 +1,8 @@
<template>
    <div class="m-left-control">
        <div class="m-l-inbut zoom-in" @click="zoomIn()">
            <i class="el-icon-refresh"></i>
        </div>
        <!-- 3d切换
mobileCortrol
        -->
        <!-- <div
      class="m-l-inbut zoom-in m-l-inbut-2d"
      :class="{ active: dimension == '3D' }"
@@ -23,33 +23,19 @@
export default {
    name: 'mobileCortrol',
    data () {
        return {
        }
        return {}
    },
    computed: {
        ...mapGetters(['mviewer', 'startPointFn', 'dimension'])
        ...mapGetters(['dimension'])
    },
    created () {
    },
    created () { },
    methods: {
        zoomIn (val) {
            // this.$store.dispatch("mapFlyTo", {
            //   //飞入
            //   lntLat: [115.87988885, 28.72502592, 2100],
            //   // lntLat: [115.87186406, 28.74449337, 1200],
            //   // lntLat: [121.50492752204283, 31.21567802276832, 2530],
            //   heading: 0,
            //   pitch: -45,
            //   roll: 0,
            //   noOpen: true,
            // });
            if (val) {
                if (this.dimension != val) {
                    this.$store.dispatch('MSET_DIMENSIONS', val)
                }
                return
            }
            this.startPointFn()
        }
    }
}