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/ExampleLayerPage.md | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/public/example/ExampleLayerPage.md b/public/example/ExampleLayerPage.md
index b792cfc..f4702d3 100644
--- a/public/example/ExampleLayerPage.md
+++ b/public/example/ExampleLayerPage.md
@@ -5,7 +5,7 @@
import React, {Component} from 'react'
import './CommonExample.css'
import './ExampleLayerPage.css'
-import {GIS} from "../iclient3d-plot-diy";
+import {GIS} from "iclient3d-plot-diy";
;
import {Button} from "antd";
@@ -36,6 +36,9 @@
addDemLayer() {
this.mapFunction.updateDemLayer(this.state.terrainUrl, true);
}
+ removeDemLayer() {
+ this.mapFunction.removeDemLayer(this.state.terrainUrl, true);
+ }
addGeoJsonLayer() {
this.mapFunction.showGeoJsonDataSource({
@@ -49,12 +52,20 @@
}, true);
}
+ hideGeoJsonLayer() {
+ this.mapFunction.hideLayer('id_for_geojson');
+ }
+
addSuperMapImageryLayer() {
this.mapFunction.showSuperMapImageryProvider({
code: 'id_for_imagery_provider',
url: this.state.superMapImageryUrl,
name: 'supermap_imagery_provider'
}, true);
+ }
+
+ hideSuperMapImageryLayer() {
+ this.mapFunction.hideLayer('id_for_imagery_provider');
}
render() {
@@ -79,18 +90,21 @@
value={this.state['terrainUrl']}
onChange={(v) => this.setState({terrainUrl: v.target.value})}/>
<Button type="primary" onClick={this.addDemLayer.bind(this)}>添加地形</Button>
+ <Button type="primary" onClick={this.removeDemLayer.bind(this)}>移除地形</Button>
<br/>
<span>矢量服务地址:</span>
<input type="text" placeholder={'请输入矢量服务地址'}
value={this.state['geojsonUrl']}
onChange={(v) => this.setState({geojsonUrl: v.target.value})}/>
<Button type="primary" onClick={this.addGeoJsonLayer.bind(this)}>添加矢量</Button>
+ <Button type="primary" onClick={this.hideGeoJsonLayer.bind(this)}>关闭矢量</Button>
<br/>
<span>影像服务地址:</span>
<input type="text" placeholder={'请输入影像服务地址'}
value={this.state['superMapImageryUrl']}
onChange={(v) => this.setState({superMapImageryUrl: v.target.value})}/>
<Button type="primary" onClick={this.addSuperMapImageryLayer.bind(this)}>添加影像</Button>
+ <Button type="primary" onClick={this.hideSuperMapImageryLayer.bind(this)}>关闭影像</Button>
</div>
<div className={"code_wrapper"}>
<div dangerouslySetInnerHTML={{__html: this.state.htmlString}}></div>
--
Gitblit v1.9.3