修改样式
This commit is contained in:
@ -13,6 +13,7 @@ class DrawPolygon extends Draw {
|
||||
* */
|
||||
constructor(sdk, options = {}) {
|
||||
super(sdk, options)
|
||||
this.color = options.color || 'rgba(255,0,0,0.5)'
|
||||
this.polygonHasCreated = false
|
||||
}
|
||||
|
||||
@ -34,8 +35,8 @@ class DrawPolygon extends Draw {
|
||||
positions: new Cesium.CallbackProperty((e) => {
|
||||
return that.positions.concat(that.positions[0])
|
||||
}),
|
||||
width: 2,
|
||||
material: Cesium.Color.fromCssColorString('#c1c505').withAlpha(0.5),
|
||||
width: 3,
|
||||
material: Cesium.Color.fromCssColorString(that.color).withAlpha(1),
|
||||
clampToGround: true,
|
||||
zIndex: 99999999
|
||||
},
|
||||
|
Reference in New Issue
Block a user