线贴图 速度相同 切换有问题

This commit is contained in:
2025-07-14 18:05:19 +08:00
parent c03cd63532
commit f24a95ab32
12 changed files with 38 additions and 16 deletions

View File

@ -335,9 +335,13 @@ class PolylineObject extends Base {
this._elms.lineWidth.forEach(item => {
item.value = this.options.width
})
this.entity &&
this.entity.polyline &&
(this.entity.polyline.width = this.options.width)
if (this.entity && this.entity.polyline) {
this.entity.polyline.width = this.entity.polyline.width + v - this.entity.polyline.oriWidth
this.entity.polyline.oriWidth = this.options.width
}
// this.entity &&
// this.entity.polyline &&
// (this.entity.polyline.width = this.options.width) && (this.entity.polyline.oriWidth = this.options.width)
}
get lineType() {
@ -1316,6 +1320,7 @@ class PolylineObject extends Base {
zIndex: that.sdk._entityZIndex
}
})
that.entity.polyline.oriWidth = that.options.width
that.sdk._entityZIndex++
PolylineObject.createLabel(that)
// that.entity.polyline.positionsLngLat = positions