From b81ea6c48de42a6d64d7bb8d6483ac9aa0273e43 Mon Sep 17 00:00:00 2001
From: sbjw <sbjw.happy@163.com>
Date: Fri, 17 Oct 2025 08:00:31 +0000
Subject: [PATCH] 发布1.0.25版本 1、map2d参数 ,未有异常 2、雷达对目标探测标绘、通信畅通区域标绘、通信网标绘、掩护区域标绘功能修复 3、绘图的drawEnd返回两次的问题。 4、增加动态取点的样例 5、showDefaultLayer调整为false 6、增加bzColor属性,用于调整详标简标文本的颜色
---
public/example/ExampleDrawPage.md | 26 ++++++++++++++++++++++----
1 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/public/example/ExampleDrawPage.md b/public/example/ExampleDrawPage.md
index 768af17..d2225de 100644
--- a/public/example/ExampleDrawPage.md
+++ b/public/example/ExampleDrawPage.md
@@ -4,7 +4,7 @@
```jsx
import React, {Component} from 'react'
import './ExampleDrawPage.css'
-import {GIS} from "../iclient3d-plot-diy";
+import {GIS} from "iclient3d-plot-diy";
;
import {Button} from "antd";
@@ -39,7 +39,7 @@
bz: true,
bzlx: 'simple',
jbwb: "P:00019",
- type: "fx",
+ type: "2010",
useModify: false,
lon: 102.76054539488224, lat: 31.000468100060593, height: 0,
points: [{lon: 102.76554539488224, lat: 31.000468100060593, height: 0}, {
@@ -54,7 +54,7 @@
bzlx: 'detail',
jbwb: 'P:00019',
xbwb: "F16-1\n美国\n16:45:56\nR:00019\nC:00019",
- type: "fx",
+ type: "2010",
useModify: false,
lon: 102.73054539488224, lat: 31.001068100060593, height: 0,
points: [{lon: 102.73554539488224, lat: 31.001068100060593, height: 0}, {
@@ -255,6 +255,19 @@
}
};
+ showOptions2 = () => {
+
+ this.mapFunction.mapApiService.showDrawDatas([{
+ type: 'lddkgrps',
+ bj: 1,
+ qsjd: 30,
+ zzjd: 75,
+ lon: 102.72004539488224, lat: 30.991068100060593, height: 0,
+ useModify: false
+ }]);
+
+ }
+
async draw(option) {
this.closeUpdate();
@@ -263,7 +276,10 @@
delete option.lon;
delete option.lat;
delete option.height;
- let p = await this.mapFunction.mapApiService.draw(option)
+ let p = await this.mapFunction.mapApiService.draw(option);
+ p.drawEnd.subscribe(value => {
+ // alert(p.export());
+ })
this.drawOps.push(p);
}
@@ -408,12 +424,14 @@
this.mapFunction = e
}
}
+ useSvgIcon={true}
iconScales={[[0, 2000], [2000, 10000], [10000, 5000000]]}
plotUrl={this.state.plotUrl}
mapRef={this}
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