修改样式

This commit is contained in:
zh
2025-08-06 14:19:09 +08:00
parent 76f4b707a6
commit 7a00e78145
5 changed files with 11 additions and 6 deletions

View File

@ -362,6 +362,7 @@ class CircleDiffuse extends Base {
return this.options.circle
}
set circle(v) {
console.log(v)
this.options.circle = v || [{ radius: 10 }]
for (let i = 0; i < this.options.circle.length; i++) {
if(this.options.circle[i].radius>999999) {
@ -1405,7 +1406,7 @@ class CircleDiffuse extends Base {
}
}
this._radius = radius
inputElm.value = value
// inputElm.value = value
CircleDiffuse.create(this)
}
}

View File

@ -62,7 +62,7 @@ class CurvelineObject extends Base {
options['extend-width'] || options['extend-width'] === 0
? options['extend-width']
: 10
this.options['extend-color'] = options['extend-color'] || 'rgba(255,222,0,0.3)'
this.options['extend-color'] = options['extend-color'] || 'rgba(255,255,80,0.3)'
this.options.show =
options.show || options.show === false ? options.show : true
this.options.heightMode = (options.heightMode || options.heightMode == 0) ? options.heightMode : 2

View File

@ -33,7 +33,7 @@ class PolylineObject extends Base {
* @param options.smooth=false {boolean} 线段圆滑
* @param options.extend=false {boolean} 线缓冲
* @param options['extend-width']=10 {number} 线缓冲宽度
* @param options['extend-color']=rgba(255,222,0,0.5) {number} 线缓冲颜色
* @param options['extend-color']=rgba(255,255,80,0.3) {number} 线缓冲颜色
* @param options.show=true {boolean} 显隐
* @param {Array.<object>} options.positions 坐标数组 [{lng,lat},...]
* @param options.label {object} 标注
@ -70,7 +70,7 @@ class PolylineObject extends Base {
options['extend-width'] || options['extend-width'] === 0
? options['extend-width']
: 10
this.options['extend-color'] = options['extend-color'] || 'rgba(255,222,0,0.3)'
this.options['extend-color'] = options['extend-color'] || 'rgba(255,255,80,0.3)'
this.options.show =
options.show || options.show === false ? options.show : true
this.options.heightMode = (options.heightMode || options.heightMode == 0) ? options.heightMode : 2