From f0351f77f11779d72b502f5244a00927c33f012b Mon Sep 17 00:00:00 2001
From: sbjw <sbjw.happy@163.com>
Date: Wed, 11 Mar 2026 03:31:03 +0000
Subject: [PATCH] 细节整理
---
src/example/ExampleXzxxPage.js | 31 ++++++++++++++++++++++++++++---
1 files changed, 28 insertions(+), 3 deletions(-)
diff --git a/src/example/ExampleXzxxPage.js b/src/example/ExampleXzxxPage.js
index d47e048..ae9efd5 100644
--- a/src/example/ExampleXzxxPage.js
+++ b/src/example/ExampleXzxxPage.js
@@ -58,12 +58,28 @@
}]
},
+ "单色线": {
+ type: "line",
+ bklx: 'solid',
+ bkkd: 4,
+ color: '#64c324',
+ useModify: false,
+ points: [{
+ lon: 103.73554539488224,
+ lat: 31.005068100060593,
+ height: 0,
+ }, {
+ lon: 104.73554539488224,
+ lat: 32.005068100060593,
+ height: 0,
+ }]
+ },
"双色线": {
type: "line",
bklx: 'double',
- bkkd: 10,
- color: '#64c324',
- color2: '#6932cc',
+ bkkd: 4,
+ color: '#ff0000',
+ color2: '#0000ff',
useModify: false,
points: [{
lon: 103.73554539488224,
@@ -153,6 +169,14 @@
options.push(this.optionObjs[key]);
}
this.mapFunction.mapApiService.showDrawDatas(options);
+
+ // this.mapFunction.mapApiService.draw(options[0]);
+ // setTimeout(() => {
+ // let p = this.mapFunction.mapApiService.getDraw(options[0].code);
+ // p.drawEnd.subscribe(value => {
+ // alert(p.export());
+ // })
+ // })
}
};
@@ -206,6 +230,7 @@
plotUrl={this.state.plotUrl}
mapRef={this}
showDefaultLayer={false}
+ global={[102.5, 30.5, 103.5, 31.5]}
/>
</div>
<Button type="primary" onClick={this.showOptions.bind(this)}>显示已有标绘数据</Button>
--
Gitblit v1.9.3