| | |
| | | function calcDistance() { |
| | | measure.distance() |
| | | } |
| | | // 地面距离 |
| | | // 贴地距离 |
| | | function distanceSurface() { |
| | | measure.distanceSurface() |
| | | } |
| | | // 平面面积 |
| | | // 水平面积 |
| | | function calcArea(item) { |
| | | console.log('calcArea********************************', item) |
| | | measure.area() |
| | | } |
| | | // 地面面积 |
| | | // 贴地面积 |
| | | function areaSurface() { |
| | | measure.areaSurface() |
| | | } |
| | |
| | | function calcHeight() { |
| | | measure.height() |
| | | } |
| | | // 模型高度 |
| | | // 贴物高度 |
| | | function calcModelHeight() { |
| | | measure.height({ |
| | | clampToModel: true |
| | |
| | | imges: '../../../../../assets/images/add.png', |
| | | click: distanceSurface |
| | | }, |
| | | { |
| | | label: '剖面', |
| | | value: 'volume', |
| | | imges: '../../../../../assets/images/add.png' |
| | | }, |
| | | // { |
| | | // label: '剖面', |
| | | // value: 'volume', |
| | | // imges: '../../../../../assets/images/add.png' |
| | | // }, |
| | | { |
| | | label: '水平面积', |
| | | value: 'volume', |
| | |
| | | click: calcModelTriangleHeight |
| | | }, |
| | | { |
| | | label: '坐标测量', |
| | | label: '贴物高度', |
| | | value: 'volume', |
| | | imges: '../../../../../assets/images/add.png' |
| | | imges: '../../../../../assets/images/add.png', |
| | | click: calcModelHeight |
| | | }, |
| | | ] |
| | | |
| | |
| | | width: 230px; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | justify-content: center; |
| | | font-size: 12px; |
| | | /* 水平居中 */ |
| | | } |
| | | |
| | | .icon_img { |
| | |
| | | } |
| | | |
| | | .item { |
| | | flex: 1 0 33.33%; |
| | | /* 每个项占 1/3 的宽度 */ |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | /* 水平居中 */ |
| | | justify-content: center; |
| | | /* 垂直居中 */ |
| | | box-sizing: border-box; |
| | | /* 确保 padding 和 border 不影响宽度 */ |
| | | padding: 10px; |
| | | /* 可选:增加内边距 */ |
| | | width: 60px; |
| | | margin: 8px; |
| | | text-align: center; |
| | | padding: 3px; |
| | | } |
| | | |
| | | .button-clear { |
| | |
| | | } |
| | | |
| | | .button-clear button { |
| | | background-color: rgb(25, 0, 255); |
| | | padding: 10px; |
| | | padding: 6px; |
| | | border: none; |
| | | } |
| | | |
| | | .button-clear button:hover { |
| | | background-color: blue; |
| | | color: #fff; |
| | | } |
| | | |
| | | .container-box .text:hover { |
| | | color: blue; |
| | | .container-box .item:hover { |
| | | box-shadow: inset 0px 0px 30px 20px rgba(31, 139, 247, 0.949); |
| | | border-radius: 20%; |
| | | } |
| | | |
| | | .text { |
| | | color: pink; |
| | | // color: pink; |
| | | } |
| | | </style> |
| | |
| | | title: '图上量算', |
| | | component: measure, |
| | | }, |
| | | { |
| | | icon: 'fa fa-bar-chart', |
| | | title: '空间分析', |
| | | }, |
| | | // { |
| | | // icon: 'fa fa-bar-chart', |
| | | // title: '空间分析', |
| | | // }, |
| | | { |
| | | name: 'location', |
| | | icon: 'fa fa-map-pin', |
| | | title: '坐标定位', |
| | | component: location |
| | | }, |
| | | { |
| | | icon: 'fa fa-paper-plane', |
| | | title: '地区导航', |
| | | }, |
| | | { |
| | | icon: 'fa fa-edit', |
| | | title: '我的标记', |
| | | }, |
| | | { |
| | | icon: 'fa fa-tags', |
| | | title: '视角书签', |
| | | }, |
| | | // { |
| | | // icon: 'fa fa-paper-plane', |
| | | // title: '地区导航', |
| | | // }, |
| | | // { |
| | | // icon: 'fa fa-edit', |
| | | // title: '我的标记', |
| | | // }, |
| | | // { |
| | | // icon: 'fa fa-tags', |
| | | // title: '视角书签', |
| | | // }, |
| | | { |
| | | name: 'exportScene', |
| | | icon: 'fa fa-download', |
| | | title: '场景导出', |
| | | component: exportScene |
| | | }, |
| | | { |
| | | icon: 'fa fa-object-group', |
| | | title: '图上标绘', |
| | | }, |
| | | { |
| | | icon: 'fa fa-helicopter', |
| | | title: '飞行漫游', |
| | | }, |
| | | { |
| | | icon: 'fa fa-level-up', |
| | | title: '路线导航', |
| | | }, |
| | | { |
| | | icon: 'fa fa-columns', |
| | | title: '卷帘对比', |
| | | component: curtain |
| | | }, |
| | | { |
| | | icon: 'fa fa-window-restore', |
| | | title: '分屏对比', |
| | | }, |
| | | // { |
| | | // icon: 'fa fa-object-group', |
| | | // title: '图上标绘', |
| | | // }, |
| | | // { |
| | | // icon: 'fa fa-helicopter', |
| | | // title: '飞行漫游', |
| | | // }, |
| | | // { |
| | | // icon: 'fa fa-level-up', |
| | | // title: '路线导航', |
| | | // }, |
| | | // { |
| | | // icon: 'fa fa-columns', |
| | | // title: '卷帘对比', |
| | | // component: curtain |
| | | // }, |
| | | // { |
| | | // icon: 'fa fa-window-restore', |
| | | // title: '分屏对比', |
| | | // }, |
| | | ] |
| | | |
| | | const showComponent = (component) => { |