From e40958c3383d56e3425868a037f3fe3bcbd5f266 Mon Sep 17 00:00:00 2001 From: zh <972939975@qq.com> Date: Tue, 23 Sep 2025 10:55:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Obj/Base/PolyhedronObject/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Obj/Base/PolyhedronObject/index.js b/src/Obj/Base/PolyhedronObject/index.js index 41a5094..4f1622a 100644 --- a/src/Obj/Base/PolyhedronObject/index.js +++ b/src/Obj/Base/PolyhedronObject/index.js @@ -129,6 +129,9 @@ class PolyhedronObject extends Base { if (!that.options.label.position) { that.options.label.position = { lng: centroid.geometry.coordinates[0], lat: centroid.geometry.coordinates[1], alt: that.options.extrudedHeight + that.options.height } } + else { + that.options.label.position.alt = that.options.extrudedHeight + that.options.height + } // 标签 that.label = new LabelObject(that.sdk, { id: that.options.id,