页面分离修改
This commit is contained in:
@ -35,12 +35,12 @@ class CircleViewShed extends Tools {
|
||||
this.Dialog = _Dialog
|
||||
this._EventBinding = new EventBinding()
|
||||
this.html = null
|
||||
let tools = new Tools(sdk)
|
||||
this.tools = new Tools(sdk)
|
||||
YJ.Analysis.AnalysesResults.push(this)
|
||||
// CircleViewShed.edit(this)
|
||||
let terrainAvailability = this.viewer.terrainProvider.availability;
|
||||
if (!terrainAvailability) {
|
||||
tools.message({ type: 'warning', text: '未加载地形数据!' })
|
||||
this.tools.message({ type: 'warning', text: '未加载地形数据!' })
|
||||
// window.ELEMENT && window.ELEMENT.Message({
|
||||
// message: '未加载地形数据!',
|
||||
// type: 'warning',
|
||||
@ -48,6 +48,9 @@ class CircleViewShed extends Tools {
|
||||
// });
|
||||
return
|
||||
}
|
||||
// CircleViewShed.create(this)
|
||||
}
|
||||
draw() {
|
||||
CircleViewShed.create(this)
|
||||
}
|
||||
|
||||
@ -69,6 +72,20 @@ class CircleViewShed extends Tools {
|
||||
item.value = viewPointHeight
|
||||
})
|
||||
}
|
||||
get viewPointHeights() {
|
||||
return this.viewPointHeight
|
||||
}
|
||||
|
||||
set viewPointHeights(v) {
|
||||
let viewPointHeight = Math.floor(Number(v) * 10) / 10
|
||||
if (isNaN(viewPointHeight)) {
|
||||
viewPointHeight = 1.8
|
||||
}
|
||||
if (viewPointHeight < 0) {
|
||||
viewPointHeight = 0
|
||||
}
|
||||
this.viewPointHeight = viewPointHeight
|
||||
}
|
||||
|
||||
get precision() {
|
||||
return this.options.precision
|
||||
@ -87,8 +104,25 @@ class CircleViewShed extends Tools {
|
||||
item.value = precision
|
||||
})
|
||||
}
|
||||
get precisions() {
|
||||
return this.precision
|
||||
}
|
||||
|
||||
set precisions(val) {
|
||||
this.precision = val
|
||||
}
|
||||
|
||||
static create(that) {
|
||||
let terrainAvailability = that.viewer.terrainProvider.availability;
|
||||
if (!terrainAvailability) {
|
||||
that.tools.message({ type: 'warning', text: '未加载地形数据!' })
|
||||
// window.ELEMENT && window.ELEMENT.Message({
|
||||
// message: '未加载地形数据!',
|
||||
// type: 'warning',
|
||||
// duration: 1500
|
||||
// });
|
||||
return
|
||||
}
|
||||
let count = 0
|
||||
if (!YJ.Measure.GetMeasureStatus()) {
|
||||
if (that._DialogObject && that._DialogObject.close) {
|
||||
|
||||
Reference in New Issue
Block a user