| | |
| | | <template> |
| | | <div class="m-left-mobileCortrolButtom"> |
| | | <div class="m-l-inbut" @click="mubiao"><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"> |
| | |
| | | <div class="m-l-inbut" @click="openBigPopupAfter"> |
| | | <i class="el-icon-menu"></i> |
| | | </div> |
| | | <div class="m-l-inbut" @click="goOn"><i class="el-icon-location"></i></div> |
| | | <!-- <div class="m-l-inbut" @click="goOn"><i class="el-icon-location"></i></div> --> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | tabTable: [], |
| | | ccData: [ |
| | | { |
| | | lnt: 115.87071885, |
| | | lnt: 115.86471885, |
| | | lat: 28.74382592, |
| | | }, |
| | | { |
| | | lnt: 121.50266534548483, |
| | | lat: 31.24357506330159, |
| | | lnt: 115.86711312, |
| | | lat: 28.74315701, |
| | | }, |
| | | { |
| | | lnt: 121.56405019, |
| | | lat: 31.20845211, |
| | | lnt: 115.86872136, |
| | | lat: 28.74009846, |
| | | }, |
| | | { |
| | | lnt: 121.55500463461836, |
| | | lat: 31.257934074839717, |
| | | lnt: 115.87413129, |
| | | lat: 28.743337, |
| | | }, |
| | | ], |
| | | }; |
| | |
| | | }, |
| | | handleCommand(command) { |
| | | let that = this; |
| | | let position = [+command.lnt + 0.01197, +command.lat - 0.0021]; |
| | | console.log(command, "定位"); |
| | | // 定位 |
| | | // this.$store.commit("MSETCC_SETCC", { |
| | | // lntLat: position, |
| | | // }); |
| | | this.$store.dispatch("mapFlyTo", { |
| | | //飞入 |
| | | lntLat: [command.lnt, command.lat, 2530], |
| | | lntLat: [...position, 500], |
| | | heading: 0, |
| | | pitch: -45, |
| | | roll: 0, |
| | | noOpen: true, |
| | | }); |
| | | }, |
| | | openBigPopupAfter() { |
| | |
| | | float: left; |
| | | width: 39px; |
| | | height: 39px; |
| | | background-color: #c9302c; |
| | | background-color: rgb(33, 150, 243); |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | color: white; |
| | | font-size: 22px; |
| | | font-size: 32px; |
| | | margin-left: 12px; |
| | | border-radius: 5px; |
| | | .icons { |
| | |
| | | height: 100%; |
| | | } |
| | | .icon { |
| | | font-size: 20px; |
| | | font-size: 32px; |
| | | color: #fff; |
| | | &::before { |
| | | width: 100%; |