| | |
| | | coord[2] |
| | | ), |
| | | orientation: { |
| | | heading: Cesium.Math.toRadians(coord[3] ? coord[3] : -90), |
| | | pitch: Cesium.Math.toRadians(coord[4] ? coord[4] : 0), |
| | | heading: Cesium.Math.toRadians(coord[3] ? coord[3] : 0), |
| | | pitch: Cesium.Math.toRadians(coord[4] ? coord[4] : -90), |
| | | roll: Cesium.Math.toRadians(0.0) |
| | | }, |
| | | duration: 2 //飞行时间8s |
| | |
| | | </div> |
| | | </div> |
| | | <div class="signaSlider"> |
| | | |
| | | <el-slider v-model="sliderValue" @change="handleSliderChange" :format-tooltip="formatTooltip" |
| | | :marks="silderMark" :step="1" :min="0" :max="47" show-stops> |
| | | </el-slider> |
| | | </div> |
| | | <div class="signaButton"> |
| | | <div class="signalling_play" @click="signallingPlay()"> |
| | | <img src="~@/assets/img/new/rightArrow.png" /> |
| | | <div class="signaButton"> |
| | | <div class="signalling_play" @click="signallingPlay()"> |
| | | <img src="~@/assets/img/new/rightArrow.png" /> |
| | | </div> |
| | | </div> |
| | | <div class="sliderBox"> |
| | | <el-slider v-model="sliderValue" @change="handleSliderChange" :format-tooltip="formatTooltip" |
| | | :marks="silderMark" :step="1" :min="0" :max="47" show-stops> |
| | | </el-slider> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- <div class="signalling_describe">单位:万人</div> |
| | | <div> |
| | | <ul class="signalling_ul"> |
| | |
| | | } |
| | | |
| | | .signaSlider { |
| | | margin: 20px 20px; |
| | | display: flex; |
| | | align-items: center; |
| | | margin: 10px 0px; |
| | | width: 100%; |
| | | } |
| | | |
| | | .signaButton { |
| | | width: 100%; |
| | | width: 40px; |
| | | display: flex; |
| | | justify-content: center; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .sliderBox{ |
| | | flex: 1; |
| | | } |
| | | |
| | | .signalling_type { |
| | | |
| | |
| | | window.divPoint3 = null; |
| | | window.instance = null; |
| | | let tooltipHTML; |
| | | let tooltip; |
| | | window.divPoint1 = null; |
| | | window.pickFeature = null; |
| | | window.imgUrl = null; |
| | |
| | | sgworld.Creator.DeleteObject(buildingPolygon); |
| | | buildingPolygon = null; |
| | | } |
| | | if (tooltip) { |
| | | tooltip.show(false); |
| | | tooltip = null; |
| | | } |
| | | if (nPickFeature.primitive instanceof Cesium.Billboard) { |
| | | if (nPickFeature.id.length > 0) { |
| | | return; |
| | |
| | | value && (tooltipHTML += `<p>${i}:${value || "无"}</p>`); |
| | | } |
| | | |
| | | // if (tooltip) { |
| | | // tooltip.show(false); |
| | | // tooltip = null; |
| | | // } |
| | | var tooltip = sgworld.Core.CreateResultTooltip(window.Viewer, { |
| | | if (tooltip) { |
| | | tooltip.show(false); |
| | | tooltip = null; |
| | | } |
| | | tooltip = sgworld.Core.CreateResultTooltip(window.Viewer, { |
| | | color: "black", |
| | | addY: 0, |
| | | far: 200000, |
| | |
| | | } |
| | | }, |
| | | }); |
| | | console.log(tooltipHTML); |
| | | |
| | | |
| | | let description = `<div style=' border: 1px solid #fff;border-radius: 5px;background: rgba(0, 0, 0, 0.8);color: #fff;padding: 15px;'>${tooltipHTML}</div>`; |
| | | tooltip.showAt( |
| | |
| | | </select> |
| | | </div> |
| | | <br /> |
| | | <div id="deviation"> |
| | | <div id="deviation" style="display:none"> |
| | | 偏移方向: |
| | | <input name="offset" id="offsetX" class="styled" value="x" checked type="radio" /> |
| | | <label>X轴</label> |
| | |
| | | |
| | | <input name="offset" id="offsetZ" class="styled" value="z" type="radio" /> |
| | | <label>Z轴</label> |
| | | <br /> |
| | | </div> |
| | | <br /> |
| | | |
| | | <div class="checkbox checkbox-primary checkbox-inline" id="selectBox"> |
| | | 查看层级: |
| | | <select id="selectlevel"> |
| | |
| | | if (val.indexOf('YHYQ1') > -1) { |
| | | $("#selectBox").show(); |
| | | $("#toolbar").show(); |
| | | $("#deviation").hide(); |
| | | document.getElementById('offsetX').checked = true; |
| | | } else { |
| | | $("#deviation").show(); |
| | | falg = true; |
| | | $("#selectBox").hide(); |
| | | $("#toolbar").hide(); |