This commit is contained in:
zh
2025-09-01 16:26:25 +08:00
parent 6fa99df21c
commit 29629b9d43
5 changed files with 117 additions and 31 deletions

View File

@ -35,9 +35,20 @@ class CircleViewShed extends Tools {
this.Dialog = _Dialog
this._EventBinding = new EventBinding()
this.html = null
let tools = new Tools(sdk)
YJ.Analysis.AnalysesResults.push(this)
CircleViewShed.edit(this)
// CircleViewShed.create(this)
// CircleViewShed.edit(this)
let terrainAvailability = this.viewer.terrainProvider.availability;
if (!terrainAvailability) {
tools.message({ type: 'warning', text: '未加载地形数据!' })
// window.ELEMENT && window.ELEMENT.Message({
// message: '未加载地形数据!',
// type: 'warning',
// duration: 1500
// });
return
}
CircleViewShed.create(this)
}
get viewPointHeight() {
@ -87,7 +98,7 @@ class CircleViewShed extends Tools {
let Draw = new YJ.Draw.DrawCircle(that.sdk)
Draw.start(async (a, options) => {
// that.center = options.center
if(!options) {
if (!options) {
return
}
that.radius = options.radius