From f39e4480ffd7aa755fbed9cf405b50ed8d33342b Mon Sep 17 00:00:00 2001
From: sbjw <sbjw.happy@163.com>
Date: Thu, 05 Mar 2026 01:49:33 +0000
Subject: [PATCH] 更新样例\示例
---
public/example/ExampleXzxxPage.md | 45 ++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 42 insertions(+), 3 deletions(-)
diff --git a/public/example/ExampleXzxxPage.md b/public/example/ExampleXzxxPage.md
index 22f7312..af20317 100644
--- a/public/example/ExampleXzxxPage.md
+++ b/public/example/ExampleXzxxPage.md
@@ -62,11 +62,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',
- color: '#64c324',
- color2: '#6932cc',
+ bkkd: 4,
+ color: '#ff0000',
+ color2: '#0000ff',
useModify: false,
points: [{
lon: 103.73554539488224,
@@ -80,8 +97,9 @@
},
"通信抗测向线2": {
type: "txdkcxx2",
- kcjd: 30,
+ kcjd: 120,
kcgls: 10,
+ kcwb: '123123',
color: '#0059FFA3',
lon: 103.73554539488224,
lat: 31.005068100060593,
@@ -116,6 +134,17 @@
lat: 32.005068100060593,
height: 0,
}]
+ },
+ "干扰波束": {
+ type: "grbs",
+ color: '#D5013A',
+ useModify: false,
+ lon: 102.23554539488224,
+ lat: 31.005068100060593,
+ height: 0,
+ qsjd: 30,
+ zzjd: 130,
+ bj: 100
}
}
line_star
@@ -134,6 +163,7 @@
.then(mdText => {
this.setState({htmlString: window.marked.parse(mdText)});
});
+ this.showOptions();
}
showOptions = () => {
@@ -143,6 +173,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());
+ // })
+ // })
}
};
@@ -196,6 +234,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