修改文本框

This commit is contained in:
2025-09-28 14:43:13 +08:00
parent d20e10644f
commit 5a4515733e
4 changed files with 1403 additions and 1375 deletions

View File

@ -117,7 +117,6 @@ class TextBox extends Base {
// alt: height
}
let posi = Cesium.Cartesian3.fromDegrees(longitude, latitude, cartographic.height)
that.handler = function () {
const position = Cesium.SceneTransforms.wgs84ToWindowCoordinates(
that.sdk.viewer.scene, posi
@ -150,7 +149,6 @@ class TextBox extends Base {
let that = this
that.sdk.viewer.scene.postRender.removeEventListener(that.handler);
let posi = Cesium.Cartesian3.fromDegrees(position.lng, position.lat, position.alt)
that.handler = function () {
const position = Cesium.SceneTransforms.wgs84ToWindowCoordinates(
that.sdk.viewer.scene, posi