修改点线面默认样式
This commit is contained in:
@ -34,10 +34,10 @@ class LabelObject extends Base {
|
||||
}
|
||||
this.options.text = textArray.join('\n')
|
||||
this.options.fontFamily = options.fontFamily || 0
|
||||
this.font = getFontFamily(this.options.fontFamily) || 'Helvetica'
|
||||
this.font = getFontFamily(this.options.fontFamily) || 'SimHei'
|
||||
this.options.fontSize = options.fontSize || 20
|
||||
this.options.lineWidth = options.lineWidth || 4
|
||||
this.options.lineColor = options.lineColor || '#fff000'
|
||||
this.options.lineColor = options.lineColor || '#00ffff80'
|
||||
this.options.color = options.color || '#ffffff'
|
||||
this.options.ground =
|
||||
options.ground || options.ground === false ? options.ground : true
|
||||
@ -46,8 +46,8 @@ class LabelObject extends Base {
|
||||
? options.pixelOffset
|
||||
: 20
|
||||
this.options.backgroundColor = options.backgroundColor || [
|
||||
'#42c6ef',
|
||||
'#42c6ef'
|
||||
'#00ffff80',
|
||||
'#00ffff80'
|
||||
]
|
||||
this.event = new MouseEvent(this.sdk)
|
||||
this.entity
|
||||
@ -407,7 +407,7 @@ class LabelObject extends Base {
|
||||
|
||||
set fontFamily(v) {
|
||||
this.options.fontFamily = v || 0
|
||||
this.font = getFontFamily(this.options.fontFamily) || 'Helvetica'
|
||||
this.font = getFontFamily(this.options.fontFamily) || 'SimHei'
|
||||
this.updateBillboardImage()
|
||||
}
|
||||
|
||||
@ -415,7 +415,7 @@ class LabelObject extends Base {
|
||||
return this.options.lineWidth
|
||||
}
|
||||
set lineWidth(v) {
|
||||
this.options.lineWidth = Number(v)
|
||||
this.options.lineWidth = ((Number(v) || Number(v) === 0) ? Number(v) : 4)
|
||||
if (!this.entity) {
|
||||
return
|
||||
}
|
||||
@ -443,7 +443,7 @@ class LabelObject extends Base {
|
||||
return this.options.pixelOffset
|
||||
}
|
||||
set lineColor(v) {
|
||||
this.options.lineColor = v
|
||||
this.options.lineColor = v || '#00ffff80'
|
||||
if (!this.entity) {
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user