修改tip提示语
This commit is contained in:
@ -595,7 +595,7 @@ class StandText extends Base {
|
||||
selectPoint = pick.id
|
||||
this.nodePoints.splice(pick.id.index, 1)
|
||||
this.sdk.viewer.entities.remove(pick.id)
|
||||
this.tip.set_text('左键开始,右键结束,CTRL+右键撤销')
|
||||
this.tip.set_text('左键单击确认顶点位置,右键单击结束,CTRL+右键撤销')
|
||||
originalPosition = this.cartesian3Towgs84(cartesian, this.sdk.viewer)
|
||||
this.entity.wall.positions = new Cesium.CallbackProperty(function () {
|
||||
return Cesium.Cartesian3.fromDegreesArray(fromDegreesArray)
|
||||
@ -615,6 +615,15 @@ class StandText extends Base {
|
||||
if(isAdd) {
|
||||
this.options.positions.splice(selectPoint.index, 1)
|
||||
}
|
||||
if (!that.options.positions || that.options.positions.length < 2) {
|
||||
console.warn('最少需要两个坐标!')
|
||||
window.ELEMENT && window.ELEMENT.Message({
|
||||
message: '最少需要两个坐标!',
|
||||
type: 'warning',
|
||||
duration: 1500
|
||||
});
|
||||
that.options.positions = [...previous]
|
||||
}
|
||||
cb(null, this.options.positions)
|
||||
}
|
||||
let positions = this.options.positions
|
||||
|
||||
Reference in New Issue
Block a user