| | |
| | | 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( |