1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
| <template>
| <div class="m-left-control">
| <div class="m-l-inbut zoom-in" @click="zoomIn">
| <i class="el-icon-refresh"></i>
| </div>
| </div>
| </template>
|
| <script>
| import { mapGetters } from "vuex";
| export default {
| name: "mobileCortrol",
| data() {
| return {
| DC: "",
| };
| },
| computed: {
| ...mapGetters(["mviewer"]),
| },
| created() {
| this.DC = global.DC;
| },
| 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,
| });
| },
| },
| };
| </script>
|
| <style scoped lang='scss'>
| .m-left-control {
| position: fixed;
| left: 20px;
| top: 93px;
| z-index: 20 !important;
| .m-l-inbut {
| width: 35px;
| height: 35px;
| background-color: rgb(33, 150, 243);
| display: flex;
| align-items: center;
| justify-content: center;
| color: white;
| font-size: 22px;
| margin-bottom: 12px;
| border-radius: 5px;
| }
| }
| </style>
|
|