From d7cf323b9315000b03e7f73b9ea818e54e7c8e51 Mon Sep 17 00:00:00 2001
From: sbjw <sbjw.happy@163.com>
Date: Sun, 21 Sep 2025 13:23:06 +0000
Subject: [PATCH] 1、增加getAllDraw()方法 2、增加默认初始化参数2dMap的功能,设置为true,表示默认为2d地图 3、修改线在加载地形的时候会出现空间断层的问题 4、修复动态修改颜色的bug 5、简标文本与详标文本对齐 6、修复扇形与面的显示问题

---
 src/example/ExamplePage.js |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/src/example/ExamplePage.js b/src/example/ExamplePage.js
index c59ac29..093b42f 100644
--- a/src/example/ExamplePage.js
+++ b/src/example/ExamplePage.js
@@ -5,7 +5,6 @@
 import {Button, Input} from "antd";
 import {updateLanguage} from "iclient3d-plot-diy";
 
-;
 
 export default class ExamplePage extends Component {
     constructor(props) {
@@ -15,6 +14,7 @@
             plotLanguage: localStorage.getItem('plot_language') || '',
             imageUrl: localStorage.getItem('plot_image') || '',
             demUrl: localStorage.getItem('plot_dem') || '',
+            addressSearchUrl: localStorage.getItem('addressSearchUrl') || '',
         };
     }
 
@@ -33,6 +33,11 @@
 
     updateDemUrl(event) {
         localStorage.setItem('plot_dem', this.state.demUrl || '');
+        alert('plotUrl服务地址设置成功');
+    }
+
+    updateAddressSearchUrl(event) {
+        localStorage.setItem('addressSearchUrl', this.state.addressSearchUrl || '');
         alert('plotUrl服务地址设置成功');
     }
 
@@ -68,6 +73,8 @@
                     <li><NavLink to='/example/defaultSelect'>初始化事件</NavLink></li>
                     <li><NavLink to='/example/fly'>飞行</NavLink></li>
                     <li><NavLink to='/example/dynamicBlc'>动态比例尺</NavLink></li>
+                    <li><NavLink to='/example/simpleEvent'>简单事件</NavLink></li>
+                    <li><NavLink to='/example/aggregator'>自动聚合</NavLink></li>
                 </ul>
                 <div className={"button_wrapper"}>
 
@@ -101,6 +108,17 @@
                         <Button type="primary" onClick={this.updateDemUrl.bind(this)}>设置</Button>
                     </Input.Group>
                     <br/>
+
+                    <span>公共地址查询URL:</span>
+                    <Input.Group compact>
+                        <Input
+                            placeholder={'公共地址查询URL'}
+                            defaultValue={this.state['addressSearchUrl']}
+                            onChange={(v) => this.setState({addressSearchUrl: v.target.value})}
+                        />
+                        <Button type="primary" onClick={this.updateAddressSearchUrl.bind(this)}>设置</Button>
+                    </Input.Group>
+                    <br/>
                     <span>公共语言:</span>
                     <Button type="primary" onClick={this.updateLanguage1.bind(this)}>中文</Button>
                     <Button type="primary" onClick={this.updateLanguage2.bind(this)}>英文</Button>

--
Gitblit v1.9.3