修改线段缓冲默认值
This commit is contained in:
@ -30,7 +30,7 @@ class CurvelineObject extends Base {
|
||||
* @param options.heightMode{number} 高度模式(0:海拔高度;1:相对高度;2:依附模式)
|
||||
* @param options['nose-to-tail']=false {boolean} 首尾相连
|
||||
* @param options.extend=false {boolean} 线缓冲
|
||||
* @param options['extend-width']=1 {number} 线缓冲宽度
|
||||
* @param options['extend-width']=10 {number} 线缓冲宽度
|
||||
* @param options['extend-color']=#ffde00 {number} 线缓冲颜色
|
||||
* @param options.show=true {boolean} 显隐
|
||||
* @param {Array.<object>} options.positions 坐标数组 [{lng,lat},...]
|
||||
@ -61,8 +61,8 @@ class CurvelineObject extends Base {
|
||||
this.options['extend-width'] =
|
||||
options['extend-width'] || options['extend-width'] === 0
|
||||
? options['extend-width']
|
||||
: 1
|
||||
this.options['extend-color'] = options['extend-color'] || '#ffde00'
|
||||
: 10
|
||||
this.options['extend-color'] = options['extend-color'] || 'rgba(255,222,0,0.3)'
|
||||
this.options.show =
|
||||
options.show || options.show === false ? options.show : true
|
||||
this.options.heightMode = (options.heightMode || options.heightMode == 0) ? options.heightMode : 2
|
||||
|
@ -32,8 +32,8 @@ class PolylineObject extends Base {
|
||||
* @param options['nose-to-tail']=false {boolean} 首尾相连
|
||||
* @param options.smooth=false {boolean} 线段圆滑
|
||||
* @param options.extend=false {boolean} 线缓冲
|
||||
* @param options['extend-width']=1 {number} 线缓冲宽度
|
||||
* @param options['extend-color']=#ffde00 {number} 线缓冲颜色
|
||||
* @param options['extend-width']=10 {number} 线缓冲宽度
|
||||
* @param options['extend-color']=rgba(255,222,0,0.5) {number} 线缓冲颜色
|
||||
* @param options.show=true {boolean} 显隐
|
||||
* @param {Array.<object>} options.positions 坐标数组 [{lng,lat},...]
|
||||
* @param options.label {object} 标注
|
||||
@ -69,8 +69,8 @@ class PolylineObject extends Base {
|
||||
this.options['extend-width'] =
|
||||
options['extend-width'] || options['extend-width'] === 0
|
||||
? options['extend-width']
|
||||
: 1
|
||||
this.options['extend-color'] = options['extend-color'] || '#ffde00'
|
||||
: 10
|
||||
this.options['extend-color'] = options['extend-color'] || 'rgba(255,222,0,0.3)'
|
||||
this.options.show =
|
||||
options.show || options.show === false ? options.show : true
|
||||
this.options.heightMode = (options.heightMode || options.heightMode == 0) ? options.heightMode : 2
|
||||
|
Reference in New Issue
Block a user