This commit is contained in:
zh
2025-09-23 10:55:46 +08:00
parent d515e4b3d0
commit e40958c338

View File

@ -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,