| | |
| | | <template> |
| | | <div class="m-left-mobileCortrolButtom"> |
| | | <div class="m-l-inbut"><i class="el-icon-s-help"></i></div> |
| | | <div class="m-l-inbut" @click="mubiao"><i class="el-icon-s-help"></i></div> |
| | | <div class="m-l-inbut"> |
| | | <!-- <i class="el-icon-s-flag"></i> --> |
| | | <el-dropdown trigger="click" @command="handleCommand"> |
| | |
| | | return { |
| | | DC: "", |
| | | tabTable: [], |
| | | ccData: [ |
| | | { |
| | | lnt: 115.87071885, |
| | | lat: 28.74382592, |
| | | }, |
| | | { |
| | | lnt: 121.50266534548483, |
| | | lat: 31.24357506330159, |
| | | }, |
| | | { |
| | | lnt: 121.56405019, |
| | | lat: 31.20845211, |
| | | }, |
| | | { |
| | | lnt: 121.55500463461836, |
| | | lat: 31.257934074839717, |
| | | }, |
| | | ], |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | mubiao() { |
| | | let that = this; |
| | | //测试fllyTo |
| | | }, |
| | | handleCommand(command) { |
| | | let that = this; |
| | | console.log(command, "定位"); |
| | | // 定位 |
| | | // this.mviewer.zoomToPosition( |
| | | // new that.DC.Position( |
| | | // command.position[0], |
| | | // command.position[1] - 0.012, |
| | | // 1530, |
| | | // 0, |
| | | // -45 |
| | | // ) |
| | | // ); |
| | | this.$store.dispatch("mapFlyTo", { |
| | | //飞入 |
| | | lntLat: [command.lnt, command.lat, 2530], |
| | | heading: 0, |
| | | pitch: -45, |
| | | roll: 0, |
| | | }); |
| | | }, |
| | | openBigPopupAfter() { |
| | | this.$store.commit("MSET_BIGPOPUPAFTER", true); |
| | |
| | | // }); |
| | | }, |
| | | getStreet() { |
| | | let that = this; |
| | | getListarc().then((res) => { |
| | | let title = []; |
| | | res.data.data.forEach((item) => { |
| | | const data = res.data.data; |
| | | for (let k = 0; k < data.length; k++) { |
| | | title.push({ |
| | | title: item.dictValue, |
| | | title: data[k].dictValue, |
| | | flag: false, |
| | | key: item.dictKey, |
| | | key: data[k].dictKey, |
| | | child: [], |
| | | lnt: that.ccData[k].lnt, |
| | | lat: that.ccData[k].lat, |
| | | }); |
| | | }); |
| | | } |
| | | // res.data.data.forEach((item) => { |
| | | // title.push({ |
| | | // title: item.dictValue, |
| | | // flag: false, |
| | | // key: item.dictKey, |
| | | // child: [], |
| | | // }); |
| | | // }); |
| | | this.tabTable = title; |
| | | this.$store.commit("MSET_POPUPTABLENAME", title); |
| | | }); |