From 544007676ff4accb0238666ad5cda560fc29663a Mon Sep 17 00:00:00 2001
From: sbjw <sbjw.happy@163.com>
Date: Tue, 27 Jan 2026 08:36:05 +0000
Subject: [PATCH] 使用1.0.37版本
---
src/example/ExampleDrawPage.js | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/example/ExampleDrawPage.js b/src/example/ExampleDrawPage.js
index 4e77aac..84064b1 100644
--- a/src/example/ExampleDrawPage.js
+++ b/src/example/ExampleDrawPage.js
@@ -10,6 +10,7 @@
optionObjs = {
"目标简标": {
+ code: '123123',
bz: true,
bzlx: 'simple',
jbwb: 'R:00017',
@@ -239,6 +240,7 @@
.then(mdText => {
this.setState({htmlString: window.marked.parse(mdText)});
});
+ this.showOptions();
}
showOptions = () => {
@@ -251,6 +253,10 @@
}
};
+ showOptions2 = () => {
+ this.mapFunction.mapApiService.showDrawDatas([this.optionObjs['目标简标']]);
+ }
+
async draw(option) {
this.closeUpdate();
@@ -261,7 +267,7 @@
delete option.height;
let p = await this.mapFunction.mapApiService.draw(option);
p.drawEnd.subscribe(value => {
- alert(p.export());
+ // alert(p.export());
})
this.drawOps.push(p);
}
@@ -414,6 +420,7 @@
showDefaultLayer={true}
/>
</div>
+ <Button type="primary" onClick={this.showOptions2.bind(this)}>2222</Button>
<Button type="primary" onClick={this.showOptions.bind(this)}>显示已有标绘数据</Button>
{buttons}
<Button type="primary" onClick={this.export.bind(this)}>导出绘制配置</Button>
--
Gitblit v1.9.3