From c5e0f2ccf5790657a209d0499dac2291d75f58c5 Mon Sep 17 00:00:00 2001
From: sbjw <sbjw.happy@163.com>
Date: Wed, 11 Mar 2026 08:48:38 +0000
Subject: [PATCH] 增加rc2测试

---
 public/MapApiService.md |   91 +++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 86 insertions(+), 5 deletions(-)

diff --git a/public/MapApiService.md b/public/MapApiService.md
index 3d8ce3f..5514893 100644
--- a/public/MapApiService.md
+++ b/public/MapApiService.md
@@ -3,7 +3,7 @@
 ### 方法
 
 | 方法                          | 说明           |
-|-----------------------------|--------------|
+|-----------------------------|-----------------------|
 | enableTilt                  | 启用旋转和倾斜      |
 | disableTilt                 | 禁用旋转和倾斜      |
 | setToHeading                | 回归到当前视角      |            |
@@ -32,8 +32,17 @@
 | clearMeasure                | 清除绘制         |
 | mapSwitch                   | 地图切换         |
 | preciseLerpSampling   | 输入两个点,进行按距离进行采样 |
-| sampleTerrainMostDetailed   | 根据经纬度坐标获取对应的高程 |
+| sampleTerrainMostDetailed   | 根据Cartesian3数组获取对应的高程 |
+| sampleTerrain   | 根据经纬度坐标获取对应的高程        |
 | getMeasureHandler           | 获取线量算handler |
+| mapRightClickEvent          | 右键事件                  |
+| showDraw                    | 显示Draw                |
+| hideDraw                    | 隐藏Draw                |
+| updateModel                 | 更新选择方法                |
+| clearSelected                 | 清除已选择                 |
+| triggerSelected                 | 外部选择                  |
+| clearDrawSelect                 | 清除框选                  |
+| useDrawSelect                 | 打开框选                  |
 ### 具体方法
 
 ##### showDrawDatas(options)
@@ -290,7 +299,10 @@
 
 ---
 
-#### mapSwitch()
+#### mapSwitch(mapType)
+| 参数   | 必须    | 类型     | 说明                            |
+|------|-------|--------|-------------------------------|
+| mapType | false | string | '2' 表示2维, '2_5'表示2.5维,'3'表示3维 |
 
 二三维地图切换
 
@@ -332,12 +344,81 @@
 根据经纬度坐标获取对应的高程
 
 | 参数   | 必须   | 类型       | 说明          |
-|------|------|----------|-------------|
-| points | true | object[] | 经纬度数组         |
+|------|------|--------------|-------------|
+| points | true | Cartesian3[] | 数组         |
+---
 
+#### sampleTerrain(points)
+根据经纬度坐标获取对应的高程
+| 参数     | 必须   | 类型                                            | 说明    |
+|--------|------|-----------------------------------------------|-------|
+| points | true | {lon: number; lat: number; height: number;}[] | 经纬度数组 |
 ---
 #### getMeasureHandler()
 
 获取线量算handler
 
 ---
+
+#### showDraw(code)
+
+显示Draw
+
+| 参数   | 必须   | 类型     | 说明 |
+|------|------|--------|----|
+| code | true | string | 编号 |
+
+---
+
+#### hideDraw(code)
+
+隐藏Draw
+
+| 参数   | 必须   | 类型     | 说明 |
+|------|------|--------|----|
+| code | true | string | 编号 |
+
+---
+
+#### updateModel(model)
+
+更新模式
+select: 选择
+modify: 修改(默认)
+
+| 参数   | 必须   | 类型     | 说明 |
+|------|------|--------|----|
+| model | true | string | 模式 |
+
+---
+
+#### clearSelected()
+
+清除已选择
+
+---
+
+#### triggerSelected(codes)
+
+外部选择对象
+
+| 参数   | 必须   | 类型       | 说明   |
+|------|------|----------|------|
+| codes | true | string[] | 手动添加 |
+
+---
+
+#### clearDrawSelect()
+
+清除框选
+
+---
+
+#### useDrawSelect(type, multi)
+
+使用框选
+
+| 参数   | 必须   | 类型      | 说明                |
+|------|------|---------|-------------------|
+| type | true | string  | box 和 polygon中的一种 |
+| multi | true | boolean | 是否连续框选            |

--
Gitblit v1.9.3