From 6f475ec20efbbb91d5d3d012284eeaa5b0a0bab0 Mon Sep 17 00:00:00 2001
From: sbjw <sbjw.happy@163.com>
Date: Fri, 27 Mar 2026 05:55:15 +0000
Subject: [PATCH] 使用50版本
---
src/example/ExampleDrawDyPage.js | 162 +++++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 143 insertions(+), 19 deletions(-)
diff --git a/src/example/ExampleDrawDyPage.js b/src/example/ExampleDrawDyPage.js
index b2bb1b5..f58bb8f 100644
--- a/src/example/ExampleDrawDyPage.js
+++ b/src/example/ExampleDrawDyPage.js
@@ -13,14 +13,34 @@
allowPicking: false,
code: '123123',
bz: true,
+ bzColor: '#e000ff',
+ bzLineColor: '#ff0000',
bzlx: 'simple',
jbwb: 'R:00017',
+ text: '123',
+ showText: true,
type: "2002",
- returnHeight: true,
useModify: false,
lon: 102.73054539488224, lat: 31.005468100060593, height: 0,
- points: [],
iconSize: [[20, 20], [30, 30], [40, 40]]
+ },
+ "目标醒目": {
+ allowPicking: false,
+ bz: true,
+ bzColor: '#0000FF',
+ bzLineColor: '#000000',
+ bzlx: 'simple',
+ jbwb: 'R:00017',
+ xz: true,
+ xzColor: '#00ff00',
+ xx: true,
+ xxColor: '#ff0000',
+ type: "2002",
+ iconColor: '#dddddd',
+ returnHeight: true,
+ useModify: false,
+ lon: 102.73554539488224, lat: 31.005068100060593, height: 0,
+ points: []
},
"目标详标": {
allowPicking: false,
@@ -234,18 +254,106 @@
points: [{lon: 102.732420985008, lat: 30.97756325857848, height: 0},
{lon: 102.73983041603873, lat: 30.97804986175468, height: 0}]
},
- "目标醒目": {
- allowPicking: false,
- bz: true,
- xz: true,
- bzlx: 'simple',
- jbwb: 'R:00017',
- type: "2002",
- returnHeight: true,
+
+ "干扰关系线": {
+ type: "grgxx",
+ color: '#ffff00',
useModify: false,
- lon: 102.73554539488224, lat: 31.005068100060593, height: 0,
+ points: [{
+ lon: 104.73554539488224,
+ lat: 31.005068100060593,
+ height: 0,
+ }, {
+ lon: 103.73554539488224,
+ lat: 32.005068100060593,
+ height: 0,
+ }]
+ },
+
+ "单色线": {
+ 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: 4,
+ color: '#ff0000',
+ color2: '#0000ff',
+ useModify: false,
+ points: [{
+ lon: 103.73554539488224,
+ lat: 31.005068100060593,
+ height: 0,
+ }, {
+ lon: 104.73554539488224,
+ lat: 32.005068100060593,
+ height: 0,
+ }]
+ },
+ "通信抗测向线2": {
+ type: "txdkcxx2",
+ kcjd: 120,
+ kcgls: 10,
+ kcwb: '123123',
+ color: '#0059FFA3',
+ lon: 103.73554539488224,
+ lat: 31.005068100060593,
+ height: 0,
+ useModify: false,
points: []
},
+ "团指任务分界线": {
+ type: "tzrwfjx",
+ color: '#D5013A',
+ useModify: false,
+ points: [{
+ lon: 102.73554539488224,
+ lat: 31.005068100060593,
+ height: 0,
+ }, {
+ lon: 103.73554539488224,
+ lat: 32.005068100060593,
+ height: 0,
+ }]
+ },
+ "连指任务分界线": {
+ type: "lzrwfjx",
+ color: '#D5013A',
+ useModify: false,
+ points: [{
+ lon: 102.45554539488224,
+ lat: 31.005068100060593,
+ height: 0,
+ }, {
+ lon: 103.45554539488224,
+ 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
+ }
}
drawOps = [];
@@ -255,8 +363,8 @@
super(props);
this.state = {
htmlString: '<h3>正在加载中...</h3>',
- rate: 200,
- drawCount: 150
+ rate: 1000,
+ drawCount: 100
};
}
@@ -292,9 +400,10 @@
}
let arr = [];
+ let index = 0;
for (let key in this.optionObjs) {
if (!this.optionObjs[key].code) {
- this.optionObjs[key].code = this.optionObjs[key].type;
+ this.optionObjs[key].code = this.optionObjs[key].type + ( index ++ );
}
arr.push(this.optionObjs[key]);
// if (this.optionObjs[key] && this.optionObjs[key].lat) {
@@ -319,11 +428,25 @@
for (let one of arr2) {
let option;
if (one && one.lat) {
- option = {
- lat: one.lat,
- lon: one.lon + i * 0.0001,
- height: one.height,
- allowPicking: one.allowPicking,
+ // 表示航迹
+ if (one.points) {
+ option = {
+ points: one.points.map(point => {
+ return {
+ lat: point.lat,
+ lon: point.lon + i * 0.0001,
+ height: point.height,
+ }
+ }),
+ allowPicking: one.allowPicking,
+ }
+ } else {
+ option = {
+ lat: one.lat,
+ lon: one.lon + i * 0.0001,
+ height: one.height,
+ allowPicking: one.allowPicking,
+ }
}
} else if (one && one.points) {
option = {
@@ -442,6 +565,7 @@
this.mapFunction = e
}
}
+ map2_5D={true}
useSvgIcon={true}
iconScales={[[0, 2000], [2000, 10000], [10000, 5000000]]}
plotUrl={this.state.plotUrl}
--
Gitblit v1.9.3