Merge branch 'develop' of http://xny.yj-3d.com:3000/zh/sdk4.0 into develop
This commit is contained in:
@ -58,8 +58,8 @@ class PolylineObject extends Base {
|
||||
this.options.smooth = options.smooth || false
|
||||
this.options.extend = options.extend || false
|
||||
this.options.rotate = options.rotate || true
|
||||
this.options.space = options.space || 0.1
|
||||
this.options.speed = options.speed || 1
|
||||
this.options.space = options.space || 1
|
||||
this.options.speed = options.speed || 10
|
||||
this.options.dashSize = options.dashSize || 0.03
|
||||
this.options['length-unit'] = options['length-unit'] || '米'
|
||||
this.options['fit-length-unit'] = options['fit-length-unit'] || '米'
|
||||
@ -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
|
||||
|
Reference in New Issue
Block a user