From 5662a8178281c2c228a1d785d01534e24e68c64b Mon Sep 17 00:00:00 2001
From: sbjw <sbjw.happy@163.com>
Date: Mon, 23 Mar 2026 13:02:18 +0000
Subject: [PATCH] 发布1.0.45版本 1、去除开启地形探测模式 2、修复拨盘问题 3、修复上一版本terrainUrlIsSct的初始化问题。 4、修复上一版本更新时的报错问题
---
src/example/ExampleBlcPage.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/example/ExampleBlcPage.js b/src/example/ExampleBlcPage.js
index 3020f58..4db4874 100644
--- a/src/example/ExampleBlcPage.js
+++ b/src/example/ExampleBlcPage.js
@@ -11,6 +11,7 @@
super(props);
this.state = {
htmlString: '<h3>正在加载中...</h3>',
+ scale: 0
};
}
@@ -49,6 +50,9 @@
this.setState({htmlString: window.marked.parse(mdText)});
});
//监听拨盘事件
+ this.mapFunction.addScaleListener((scale) => {
+ this.setState({scale: scale});
+ })
}
showData() {
@@ -78,6 +82,7 @@
<Button type="primary" onClick={() => this.setCameraHeightByScale(2500)}>1:2500</Button>
<Button type="primary" onClick={() => this.setCameraHeightByScale(10000)}>1:10000</Button>
<Button type="primary" onClick={() => this.setCameraHeightByScale(50000)}>1:50000</Button>
+ <span>当前比例尺: {this.state.scale}</span>
<div className={"code_wrapper"}>
<div dangerouslySetInnerHTML={{__html: this.state.htmlString}}></div>
</div>
--
Gitblit v1.9.3