| | |
| | | > |
| | | </a-auto-complete> |
| | | </div> |
| | | <!-- <div class="switch"> |
| | | <div class="2d" v-if="dimension === 3" @click="switchModel('2D')">2D</div> |
| | | <div class="3d" v-else @click="switchModel('3D')">3D</div> |
| | | </div> --> |
| | | </template> |
| | | <div class="switch"> |
| | | <div class="2d" v-if="dimension === 2" @click="switchDimension('3D')">2D</div> |
| | | <div class="3d" v-else @click="switchDimension('2D')">3D</div> |
| | | </div> |
| | | </template>\ |
| | | |
| | | <script setup lang="ts"> |
| | | import { ref, } from 'vue' |
| | |
| | | } |
| | | } |
| | | const searchLocation = _.debounce(search, 500) |
| | | const { flyTo, addPoint, removeById } = cesiumOperation() |
| | | const { flyTo, addPoint, removeById, switchModel, dimension } = cesiumOperation() |
| | | const enter = (e:string) => { |
| | | removeById('key') |
| | | const filterItem = resultList.value.find(v => v.value === e) |
| | |
| | | addPoint({ ...pointParams, ...params }) |
| | | flyTo(params) |
| | | } |
| | | const switchDimension = (type:string) => { |
| | | switchModel(type) |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |