| | |
| | | <template> |
| | | <div v-drag class="plottingBox"> |
| | | <div |
| | | v-drag |
| | | class="plottingBox" |
| | | > |
| | | <div class="plottingTitle"> |
| | | <div class="tileLeft"> |
| | | <div class="titleImg" @click="setCloseplotting"> |
| | | <div |
| | | class="titleImg" |
| | | @click="setCloseplotting" |
| | | > |
| | | <ArrowLeft /> |
| | | </div> |
| | | <div class="titleLable">标绘查询</div> |
| | |
| | | <div class="plotting_content_btn"> |
| | | <span class="plotting_content_title">标绘工具</span> |
| | | <div class="plotting_btn"> |
| | | <div class="btn_box_d btn_box" @click="setMenuDraw('point')"></div> |
| | | <div class="btn_box_x btn_box" @click="setMenuDraw('polyline')"></div> |
| | | <div class="btn_box_m btn_box" @click="setMenuDraw('polygon')"></div> |
| | | <div |
| | | class="btn_box_d btn_box" |
| | | @click="setMenuDraw('point')" |
| | | ></div> |
| | | <div |
| | | class="btn_box_x btn_box" |
| | | @click="setMenuDraw('polyline')" |
| | | ></div> |
| | | <div |
| | | class="btn_box_m btn_box" |
| | | @click="setMenuDraw('polygon')" |
| | | ></div> |
| | | </div> |
| | | </div> |
| | | <div class="plotting_list"> |
| | |
| | | /><span>{{ item.name }}</span> |
| | | </div> |
| | | <div class="plotting_list_tr_btn"> |
| | | <div class="tr_btn dw" @click.stop="setLayerLocation(item)"></div> |
| | | <div class="tr_btn sc" @click.stop="setLayerRemove(item)"></div> |
| | | <div |
| | | class="tr_btn dw" |
| | | @click.stop="setLayerLocation(item)" |
| | | ></div> |
| | | <div |
| | | class="tr_btn sc" |
| | | @click.stop="setLayerRemove(item)" |
| | | ></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | positions: Cesium.Cartesian3.fromDegreesArray(std), |
| | | width: 6, |
| | | material: lineColor.value, |
| | | clampToGround: true, |
| | | //clampToGround: true, |
| | | heightReference: Cesium.HeightReference.CLAMP_TO_GROUND, //设置 HeightReference 高度参考类型为 CLAMP_TO_GROUND 贴地类型 |
| | | //classificationType: Cesium.ClassificationType.BOTH, //贴地形和3dtile BOTH 或 CESIUM_3D_TILE 或 TERRAIN |
| | | verticalOrigin: Cesium.VerticalOrigin.CENTER, // 垂直位置 |
| | | horizontalOrigin: Cesium.HorizontalOrigin.CENTER, // 水平位置 |
| | | }, |
| | | }); |
| | | var linestring = turf.lineString(coord); |
| | |
| | | outline: true, |
| | | outlineColor: lineColor.value, |
| | | outlineWidth: 2, |
| | | classificationType: Cesium.ClassificationType.BOTH, //贴地形和3dtile |
| | | classificationType: Cesium.ClassificationType.BOTH, //贴地形和3dtile BOTH 或 CESIUM_3D_TILE 或 TERRAIN |
| | | clampToGround: true, //开启贴地 |
| | | height: 0, |
| | | heightReference: Cesium.HeightReference.CLAMP_TO_GROUND, //设置 HeightReference 高度参考类型为 CLAMP_TO_GROUND 贴地类型 |
| | | }, |
| | | }); |
| | | |
| | |
| | | emits("setCloseplotting", false); |
| | | }; |
| | | const resultShow = (res) => { |
| | | console.log(res); |
| | | let obj = { |
| | | isshow: true, |
| | | entitiesData: res, |
| | |
| | | watch( |
| | | () => store.state.plottingInquireData, |
| | | (nVal, oVal) => { |
| | | if(!nVal)return |
| | | if (nVal.isshow == false) { |
| | | //列表删除联动 |
| | | if (nVal.entitiesData != {} && nVal.entitiesData.name) { |
| | |
| | | break; |
| | | } |
| | | } |
| | | store.state.plottingInquireData = null |
| | | } |
| | | } |
| | | }, |
| | |
| | | margin-right: 18px; |
| | | } |
| | | .btn_box_d { |
| | | width: 17px; |
| | | height: 18px; |
| | | width: 30px; |
| | | height: 30px; |
| | | background: url("../../assets/img/d.png") no-repeat center; |
| | | background-size: 100% 100%; |
| | | } |
| | |
| | | background-size: 100% 100%; |
| | | } |
| | | .btn_box_x { |
| | | width: 26px; |
| | | height: 27px; |
| | | width: 30px; |
| | | height: 30px; |
| | | background: url("../../assets/img/x.png") no-repeat center; |
| | | background-size: 100% 100%; |
| | | } |
| | |
| | | background-size: 100% 100%; |
| | | } |
| | | .btn_box_m { |
| | | width: 22px; |
| | | height: 20px; |
| | | width: 30px; |
| | | height: 30px; |
| | | background: url("../../assets/img/m.png") no-repeat center; |
| | | background-size: 100% 100%; |
| | | margin-right: 0; |