修改点线面默认样式
This commit is contained in:
@ -63,9 +63,9 @@ class BillboardObject extends Base {
|
||||
*@param options.label {object} 标注文字的参数
|
||||
*@param [options.label.text] {string} 标注中文字
|
||||
*@param [options.label.show=true] {boolean} 标注文字显示/隐藏
|
||||
*@param [options.label.fontFamily=0] {number} 标注文字字体 0:思源黑体;1:庞门正道标题体;2:数黑体
|
||||
*@param [options.label.fontFamily=0] {number} 标注文字字体 0:黑体;1:思源黑体;2:庞门正道标题体;3:数黑体
|
||||
*@param [options.label.fontSize=39] {number} 标注文字大小 单位px,微软雅黑
|
||||
*@param [options.label.color=#07f8e4] {string} 标注文字颜色
|
||||
*@param [options.label.color=#00ffff] {string} 标注文字颜色
|
||||
*@param _Dialog {object} 弹框事件
|
||||
*@param _Dialog.confirmCallBack {function} 弹框确认时的回调
|
||||
*@param _Dialog.instructSubmit(id,name,instruct) {function} 提交指令(ID, 名称,指令内容)
|
||||
@ -107,7 +107,7 @@ class BillboardObject extends Base {
|
||||
: true
|
||||
this.options.label.fontFamily = options.label.fontFamily || 0
|
||||
this.options.label.fontSize = options.label.fontSize || 39
|
||||
this.options.label.color = options.label.color || '#FFFF00'
|
||||
this.options.label.color = options.label.color || '#00ffff'
|
||||
this.options.positions = options.positions = options.positions || {}
|
||||
this.options.positions.lng = Number(
|
||||
Number(options.positions.lng || 0).toFixed(8)
|
||||
@ -916,7 +916,7 @@ class BillboardObject extends Base {
|
||||
return this.options.label.color
|
||||
}
|
||||
set labelColor(v) {
|
||||
this.options.label.color = v
|
||||
this.options.label.color = v || '#00ffff'
|
||||
this.renewPoint()
|
||||
if (this._elms.labelColor) {
|
||||
this._elms.labelColor.forEach((item, i) => {
|
||||
@ -924,14 +924,14 @@ class BillboardObject extends Base {
|
||||
el: item.el,
|
||||
size: 'mini', //颜色box类型
|
||||
alpha: true, //是否开启透明度
|
||||
defaultColor: v,
|
||||
defaultColor: this.options.label.color,
|
||||
disabled: false, //是否禁止打开颜色选择器
|
||||
openPickerAni: 'opacity', //打开颜色选择器动画
|
||||
sure: c => {
|
||||
this.labelColor = c
|
||||
}, //点击确认按钮事件回调
|
||||
clear: () => {
|
||||
this.labelColor = 'rgba(255,255,255,1)'
|
||||
this.labelColor = 'rgba(0,255,255,1)'
|
||||
} //点击清空按钮事件回调
|
||||
})
|
||||
this._elms.labelColor[i] = colorPicker
|
||||
|
Reference in New Issue
Block a user