mars3d 3.4.1 → 3.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,17 +6,18 @@
6
6
  <p align="center">🌎 一款基于WebGL技术实现的三维地球客户端开发平台</p>
7
7
 
8
8
  <p align="center">
9
- <a target="_black" href="https://www.npmjs.com/package/mars3d">
10
- <img alt="Npm version" src="https://img.shields.io/npm/v/mars3d.svg?style=flat&logo=npm&label=version"/>
11
- </a>
12
- <a target="_black" href="https://www.npmjs.com/package/mars3d">
13
- <img alt="Npm downloads" src="https://img.shields.io/npm/dt/mars3d?style=flat&logo=npm">
14
- </a>
15
- <a target="_black" href="https://github.com/marsgis/mars3d">
16
- <img alt="GitHub stars" src="https://img.shields.io/github/stars/marsgis/mars3d?style=flat&logo=github">
17
- </a>
18
- <a href='https://gitee.com/marsgis/mars3d/stargazers'><img src='https://gitee.com/marsgis/mars3d/badge/star.svg?theme=dark' alt='star'></img></a>
19
-
9
+ <a target="_black" href="https://www.npmjs.com/package/mars3d">
10
+ <img alt="Npm version" src="https://img.shields.io/npm/v/mars3d.svg?style=flat&logo=npm&label=版本号" />
11
+ </a>
12
+ <a target="_black" href="https://www.npmjs.com/package/mars3d">
13
+ <img alt="Npm downloads" src="https://img.shields.io/npm/dt/mars3d?style=flat&logo=npm&label=下载量" />
14
+ </a>
15
+ <a target="_black" href="https://github.com/marsgis/mars3d">
16
+ <img alt="GitHub stars" src="https://img.shields.io/github/stars/marsgis/mars3d?style=flat&logo=github" />
17
+ </a>
18
+ <a target="_black" href="https://gitee.com/marsgis/mars3d">
19
+ <img src="https://gitee.com/marsgis/mars3d/badge/star.svg?theme=dark" alt="star" />
20
+ </a>
20
21
  </p>
21
22
 
22
23
  [**English**](./README_EN.md) |[**中文**](./README.md)
@@ -25,10 +26,12 @@
25
26
  当前仓库包含SDK更新日志、和其他仓库导航。
26
27
 
27
28
 
29
+
28
30
  Github:[https://github.com/marsgis/mars3d](https://github.com/marsgis/mars3d)
29
31
 
30
32
  国内Gitee:[https://gitee.com/marsgis/mars3d](https://gitee.com/marsgis/mars3d)
31
33
 
34
+ 更新日志: [CHANGE.md](./CHANGE.md)
32
35
 
33
36
 
34
37
  ## 功能示例
@@ -49,8 +52,8 @@ Github:[https://github.com/marsgis/mars3d](https://github.com/marsgis/mars3d)
49
52
  |原生JS技术栈 |[查看](https://www.bilibili.com/video/BV1za41177ZW/)| [mars3d-es5-template](https://github.com/marsgis/mars3d-es5-template) |[mars3d-es5-template](https://gitee.com/marsgis/mars3d-es5-template) |
50
53
  |Vue技术栈 |[查看](https://www.bilibili.com/video/BV17P4y1F7gv/)| [mars3d-vue-template](https://github.com/marsgis/mars3d-vue-template) |[mars3d-vue-template](https://gitee.com/marsgis/mars3d-vue-template) |
51
54
  |React技术栈 |[查看](https://www.bilibili.com/video/BV1nZ4y1b7W7/)| [mars3d-react-template](https://github.com/marsgis/mars3d-react-template) |[mars3d-react-template](https://gitee.com/marsgis/mars3d-react-template) |
52
- |Angular技术栈 |暂无 | [mars3d-angular-template](https://github.com/marsgis/mars3d-angular-template) |[mars3d-angular-template](https://gitee.com/marsgis/mars3d-angular-template) |
53
- |CS桌面端程序 |暂无| [mars3d-electron](https://github.com/marsgis/mars3d-electron) |[mars3d-electron](https://gitee.com/marsgis/mars3d-electron) |
55
+ |Angular技术栈 |[查看](https://www.bilibili.com/video/BV13Y411K7xs/) | [mars3d-angular-template](https://github.com/marsgis/mars3d-angular-template) |[mars3d-angular-template](https://gitee.com/marsgis/mars3d-angular-template) |
56
+ |CS桌面端程序 |[查看](https://www.bilibili.com/video/BV1N94y1R7ds/)| [mars3d-electron](https://github.com/marsgis/mars3d-electron) |[mars3d-electron](https://gitee.com/marsgis/mars3d-electron) |
54
57
  |APP移动端程序 |[查看](https://www.bilibili.com/video/BV18F41157qR/)|[mars3d-uni-app](https://github.com/marsgis/mars3d-uni-app) |[mars3d-uni-app](https://gitee.com/marsgis/mars3d-uni-app) |
55
58
 
56
59
 
@@ -64,7 +67,7 @@ Github:[https://github.com/marsgis/mars3d](https://github.com/marsgis/mars3d)
64
67
  |基础项目 原生JS版 |[查看](http://mars3d.cn/dev/guide/project/jcxm-es5.html) | [查看](https://www.bilibili.com/video/BV1nF41157Rn/)| [mars3d-es5-project](https://github.com/marsgis/mars3d-es5-project) |[mars3d-es5-project](https://gitee.com/marsgis/mars3d-es5-project) |
65
68
  |基础项目 Vue版|[查看](http://mars3d.cn/dev/guide/project/jcxm-vue.html) |[查看](https://www.bilibili.com/video/BV1JF411q7Ut/)| [mars3d-vue-project](https://github.com/marsgis/mars3d-vue-project) |[mars3d-vue-project](https://gitee.com/marsgis/mars3d-vue-project) |
66
69
  |基础项目 Vue版+admin管理 |无 | 无| [mars3d-vue-project-admin](https://github.com/marsgis/mars3d-vue-project-admin) |[mars3d-vue-project-admin](https://gitee.com/marsgis/mars3d-vue-project-admin) |
67
- |基础项目 React版|[查看](http://mars3d.cn/dev/guide/project/jcxm-react.html) |暂无| [mars3d-react-project](https://github.com/marsgis/mars3d-react-project) |[mars3d-react-project](https://gitee.com/marsgis/mars3d-react-project) |
70
+ |基础项目 React版|[查看](http://mars3d.cn/dev/guide/project/jcxm-react.html) |[查看](https://www.bilibili.com/video/BV1n3411u7Dm/)| [mars3d-react-project](https://github.com/marsgis/mars3d-react-project) |[mars3d-react-project](https://gitee.com/marsgis/mars3d-react-project) |
68
71
  |三维地球APP项目| [查看](http://mars3d.cn/dev/guide/project/app-vue.html) | [查看](https://www.bilibili.com/video/BV1iY4y1t7jk/)| [付费提供](http://mars3d.cn/details.html?id=app-vue) | [付费提供](http://mars3d.cn/details.html?id=app-vue) |
69
72
 
70
73
 
package/dist/mars3d.css CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D三维可视化平台 mars3d
3
3
  *
4
- * 版本信息:v3.4.1
5
- * 编译日期:2022-07-25 16:20:12
4
+ * 版本信息:v3.4.4
5
+ * 编译日期:2022-08-15 14:40:13
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2022-06-01
8
8
  */
package/dist/mars3d.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.4.1
6
- * 编译日期:2022-07-25 16:20:12
5
+ * 版本信息:v3.4.4
6
+ * 编译日期:2022-08-15 14:40:13
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2022-06-01
9
9
  */
@@ -1063,6 +1063,7 @@ declare enum LayerType {
1063
1063
  graphic,
1064
1064
  graphicGroup,
1065
1065
  geojson,
1066
+ busineData,
1066
1067
  lodGraphic,
1067
1068
  wfs,
1068
1069
  arcgis_wfs,
@@ -1268,8 +1269,8 @@ declare namespace MaterialType {
1268
1269
  const Grid: string;
1269
1270
  /**
1270
1271
  * 面状:棋盘
1271
- * @property [evenColor = Cesium.Color.WHITE] - 主色
1272
- * @property [oddColor = Cesium.Color.BLACK] - 衬色,棋盘中另外一个颜色
1272
+ * @property [lightColor = Cesium.Color.WHITE] - 主色
1273
+ * @property [darkColor = Cesium.Color.BLACK] - 衬色,棋盘中另外一个颜色
1273
1274
  * @property [repeat = new Cesium.Cartesian2(2.0, 2.0)] - 数量,在每个方向重复的次数
1274
1275
  */
1275
1276
  const Checkerboard: string;
@@ -1970,8 +1971,8 @@ declare class MapCompare extends BaseControl {
1970
1971
  */
1971
1972
  declare class MapSplit extends BaseControl {
1972
1973
  constructor(options?: {
1973
- leftLayer?: BaseTileLayer;
1974
- rightLayer?: BaseTileLayer;
1974
+ leftLayer?: BaseTileLayer | BaseTileLayer[] | any;
1975
+ rightLayer?: BaseTileLayer | BaseTileLayer[] | any;
1975
1976
  id?: string | number;
1976
1977
  enabled?: boolean;
1977
1978
  parentContainer?: HTMLElement;
@@ -8977,8 +8978,9 @@ declare namespace FontBillboardEntity {
8977
8978
  /**
8978
8979
  * Font CSS字体点转图片后的图标点 Entity 支持的样式信息
8979
8980
  * @property [iconClass = ""] - 字体css样式
8980
- * @property [iconSize = 50] - 字体大小
8981
8981
  * @property [color = '#ff0000'] - 字体颜色
8982
+ * @property [iconSize = 50] - 字体大小,单位:像素
8983
+ * @property [iconPadding = 10] - 字体DIV生成时div内的padding值
8982
8984
  * @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
8983
8985
  * @property [scale = 1] - 图像大小的比例
8984
8986
  * @property [rotation = 0] - 旋转角度(弧度值),正北为0,逆时针旋转
@@ -9016,8 +9018,9 @@ declare namespace FontBillboardEntity {
9016
9018
  */
9017
9019
  type StyleOptions = any | {
9018
9020
  iconClass?: string;
9019
- iconSize?: number;
9020
9021
  color?: string;
9022
+ iconSize?: number;
9023
+ iconPadding?: number;
9021
9024
  opacity?: number;
9022
9025
  scale?: number;
9023
9026
  rotation?: number;
@@ -9490,13 +9493,13 @@ declare class ModelEntity extends BasePointEntity {
9490
9493
  * @param options.position - 指定目标位置的坐标
9491
9494
  * @param [options.time = 5] - 移动的时长(单位 秒),控制速度
9492
9495
  * @param [options.onEnd] - 移动完成的回调方法
9493
- * @returns
9496
+ * @returns 绘制创建完成的Promise,等价于onEnd参数
9494
9497
  */
9495
9498
  moveTo(options?: {
9496
9499
  position: LngLatPoint | Cesium.Cartesian3 | number[];
9497
9500
  time?: number;
9498
9501
  onEnd?: (...params: any[]) => any;
9499
- }): void;
9502
+ }): Promise<ModelEntity | any>;
9500
9503
  /**
9501
9504
  * 飞行定位至数据所在的视角
9502
9505
  * @param [options = {}] - 参数对象:
@@ -10974,7 +10977,8 @@ declare class Video2D extends PolygonEntity {
10974
10977
  declare namespace WallEntity {
10975
10978
  /**
10976
10979
  * 墙 支持的样式信息
10977
- * @property [diffHeight = 100] - 墙高
10980
+ * @property [diffHeight = 100] - 墙高,
10981
+ * @property [fixedTop = false] - 墙顶部是否使用统一的水平高度值
10978
10982
  * @property [minimumHeights] - 没有指定diffHeight时,可以指定用于墙壁底部而不是球体表面的高度数组。
10979
10983
  * @property [maximumHeights] - 没有指定diffHeight时,可以指定用于墙顶的高度数组,而不是每个位置的高度。
10980
10984
  * @property [fill = true] - 是否填充
@@ -11003,6 +11007,7 @@ declare namespace WallEntity {
11003
11007
  */
11004
11008
  type StyleOptions = any | {
11005
11009
  diffHeight?: number;
11010
+ fixedTop?: boolean;
11006
11011
  minimumHeights?: number[];
11007
11012
  maximumHeights?: number[];
11008
11013
  fill?: boolean;
@@ -11695,14 +11700,14 @@ declare class Regular extends PolygonEntity {
11695
11700
  readonly EditClass: EditRegular;
11696
11701
  /**
11697
11702
  * 计算当前矢量对象的边界坐标点
11698
- * @param positions - 坐标位置
11703
+ * @param center - 坐标位置
11699
11704
  * @param options - 控制参数
11700
11705
  * @param [options.border = 3] - 边数量
11701
11706
  * @param options.radius - 区域的半径(单位:米)
11702
11707
  * @param [options.startAngle = 0] - 区域的开始角度(正东方向为0,顺时针到360度)
11703
11708
  * @returns 边界坐标点
11704
11709
  */
11705
- static getOutlinePositions(positions: Cesium.Cartesian3[], options: {
11710
+ static getOutlinePositions(center: Cesium.Cartesian3, options: {
11706
11711
  border?: number;
11707
11712
  radius: number;
11708
11713
  startAngle?: number;
@@ -11771,14 +11776,14 @@ declare class Sector extends PolygonEntity {
11771
11776
  readonly EditClass: EditSector;
11772
11777
  /**
11773
11778
  * 计算当前矢量对象的边界坐标点
11774
- * @param positions - 坐标位置
11779
+ * @param center - 中心点坐标位置
11775
11780
  * @param options - 控制参数
11776
11781
  * @param options.radius - 扇形区域的半径(单位:米)
11777
11782
  * @param options.startAngle - 扇形区域的开始角度(正东方向为0,顺时针到360度)
11778
11783
  * @param options.endAngle - 扇形区域的结束角度(正东方向为0,顺时针到360度)
11779
11784
  * @returns 边界坐标点
11780
11785
  */
11781
- static getOutlinePositions(positions: Cesium.Cartesian3[], options: {
11786
+ static getOutlinePositions(center: Cesium.Cartesian3, options: {
11782
11787
  radius: number;
11783
11788
  startAngle: number;
11784
11789
  endAngle: number;
@@ -17153,6 +17158,169 @@ declare class ArcGisWfsSingleLayer extends GeoJsonLayer {
17153
17158
  }): GeoJsonLayer;
17154
17159
  }
17155
17160
 
17161
+ /**
17162
+ * 业务数据(通过API接口获取)图层, 主要是为了封装后简化使用,或直接配置到config.json,也可以自行构造Graphic矢量对象加到GraphicLayer。<br />
17163
+ *
17164
+ * 样式信息:通过symbol配置graphic类型和样式<br />
17165
+ * 坐标信息:建议接口返回中有规范的坐标字段lat\lng\alt或用formatPosition方法自定义解析
17166
+ * @param [options] - 参数对象,包括以下:
17167
+ * @param [options.url] - geojson文件或服务url地址
17168
+ * @param [options.data] - geojson格式规范数据对象,与url二选一即可。
17169
+ * @param [options.dataColumn] - 接口返回数据中,对应的业务数据数组所在的读取字段名称,支持多级(用.分割);如果数据直接返回数组时可以不配置。
17170
+ * @param [options.formatData] - 可以对加载的数据进行格式化或转换操作
17171
+ * @param [options.lngColumn = "lng"] - 点坐标时,经度值对应的字段名称
17172
+ * @param [options.latColumn = "lat"] - 点坐标时,纬度值对应的字段名称
17173
+ * @param [options.altColumn = "alt"] - 点坐标时,高度值对应的字段名称
17174
+ * @param [options.formatPosition] - 可以对加载的坐标进行格式化或转换操作
17175
+ * @param [options.onCreateGraphic] - 解析geojson后,外部自定义方法来创建Graphic对象
17176
+ * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
17177
+ * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0
17178
+ * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。
17179
+ * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature)
17180
+ * @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon
17181
+ * @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各{@link GraphicType}矢量数据的style参数。
17182
+ * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。
17183
+ * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
17184
+ * @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。
17185
+ * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
17186
+ * @param [options.graphicOptions] - 默认的graphic的构造参数,每种不同类型数据都有不同的属性,具体见各{@link GraphicType}矢量数据的构造参数。
17187
+ * @param [options.clustering] - 设置聚合相关参数(仅对Entity点数据有效):
17188
+ * @param [options.clustering.enabled = false] - 是否开启聚合
17189
+ * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
17190
+ * @param [options.clustering.clampToGround = true] - 是否贴地
17191
+ * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素)
17192
+ * @param [options.clustering.fontColor = '#ffffff'] - 内置样式时,数字的颜色
17193
+ * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 内置样式时,圆形图标的背景颜色
17194
+ * @param [options.clustering.opacity = 0.5] - 内置样式时,圆形图标的透明度
17195
+ * @param [options.clustering.borderWidth = 5] - 圆形图标的边框宽度(单位:像素),0不显示
17196
+ * @param [options.clustering.borderColor = 'rgba(110, 204, 57, 0.5)'] - 内置样式时,圆形图标的边框颜色
17197
+ * @param [options.clustering.borderOpacity = 0.6] - 内置样式时,圆形图标边框的透明度
17198
+ * @param [options.clustering.getImage] - 自定义聚合的图标样式,例如:getImage:function(count) { return image}
17199
+ * @param [options.proxy] - 加载资源时要使用的代理服务url。
17200
+ * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对
17201
+ * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}
17202
+ * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }
17203
+ * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板
17204
+ * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括:
17205
+ * @param [options.popupOptions.title] - 固定的标题名称
17206
+ * @param [options.popupOptions.titleField] - 标题对应的属性字段名称
17207
+ * @param [options.popupOptions.noTitle] - 不显示标题
17208
+ * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。
17209
+ * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括:
17210
+ * @param [options.tooltipOptions.title] - 固定的标题名称
17211
+ * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称
17212
+ * @param [options.tooltipOptions.noTitle] - 不显示标题
17213
+ * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定
17214
+ * @param [options.id = createGuid()] - 图层id标识
17215
+ * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
17216
+ * @param [options.name = ''] - 图层名称
17217
+ * @param [options.show = true] - 图层是否显示
17218
+ * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡
17219
+ * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView}
17220
+ * @param options.center.lng - 经度值, 180 - 180
17221
+ * @param options.center.lat - 纬度值, -90 - 90
17222
+ * @param [options.center.alt] - 高度值
17223
+ * @param [options.center.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0-360
17224
+ * @param [options.center.pitch] - 俯仰角度值,绕纬度线旋转角度, 0-360
17225
+ * @param [options.center.roll] - 翻滚角度值,绕经度线旋转角度, 0-360
17226
+ * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent}
17227
+ * @param options.extent.xmin - 最小经度值, -180 至 180
17228
+ * @param options.extent.xmax - 最大经度值, -180 至 180
17229
+ * @param options.extent.ymin - 最小纬度值, -90 至 90
17230
+ * @param options.extent.ymax - 最大纬度值, -90 至 90
17231
+ * @param [options.extent.height = 0] - 矩形高度值
17232
+ * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。
17233
+ */
17234
+ declare class BusineDataLayer extends GraphicLayer {
17235
+ constructor(options?: {
17236
+ url?: string;
17237
+ data?: any;
17238
+ dataColumn?: string;
17239
+ formatData?: (...params: any[]) => any;
17240
+ lngColumn?: string;
17241
+ latColumn?: string;
17242
+ altColumn?: string;
17243
+ formatPosition?: (...params: any[]) => any;
17244
+ onCreateGraphic?: (...params: any[]) => any;
17245
+ allowDrillPick?: boolean | ((...params: any[]) => any);
17246
+ opacity?: number;
17247
+ zIndex?: number;
17248
+ symbol?: {
17249
+ type?: GraphicType | string;
17250
+ styleOptions: any;
17251
+ styleField?: string;
17252
+ styleFieldOptions?: any;
17253
+ merge?: boolean;
17254
+ callback?: (...params: any[]) => any;
17255
+ };
17256
+ graphicOptions?: any;
17257
+ clustering?: {
17258
+ enabled?: boolean;
17259
+ pixelRange?: number;
17260
+ clampToGround?: boolean;
17261
+ radius?: number;
17262
+ fontColor?: string;
17263
+ color?: string;
17264
+ opacity?: number;
17265
+ borderWidth?: number;
17266
+ borderColor?: string;
17267
+ borderOpacity?: number;
17268
+ getImage?: (...params: any[]) => any;
17269
+ };
17270
+ proxy?: string;
17271
+ templateValues?: any;
17272
+ queryParameters?: any;
17273
+ headers?: any;
17274
+ popup?: string | Globe.getTemplateHtml_template[] | ((...params: any[]) => any);
17275
+ popupOptions?: {
17276
+ title?: string;
17277
+ titleField?: string;
17278
+ noTitle?: string;
17279
+ };
17280
+ tooltip?: string | Globe.getTemplateHtml_template[] | ((...params: any[]) => any) | any;
17281
+ tooltipOptions?: {
17282
+ title?: string;
17283
+ titleField?: string;
17284
+ noTitle?: string;
17285
+ };
17286
+ contextmenuItems?: any;
17287
+ id?: string | number;
17288
+ pid?: string | number;
17289
+ name?: string;
17290
+ show?: boolean;
17291
+ eventParent?: BaseClass | boolean;
17292
+ center?: {
17293
+ lng: number;
17294
+ lat: number;
17295
+ alt?: number;
17296
+ heading?: number;
17297
+ pitch?: number;
17298
+ roll?: number;
17299
+ };
17300
+ extent?: {
17301
+ xmin: number;
17302
+ xmax: number;
17303
+ ymin: number;
17304
+ ymax: number;
17305
+ height?: number;
17306
+ };
17307
+ flyTo?: boolean;
17308
+ });
17309
+ /**
17310
+ * 加载新数据 或 刷新数据
17311
+ * @param [newOptions] - 新设定的参数,会与类的构造参数合并。
17312
+ * @param [newOptions.url] - API接口url地址
17313
+ * @param [newOptions.data] - API接口对应的数据对象,与url二选一即可。
17314
+ * @param [newOptions.类参数] - 包含当前类支持的所有参数
17315
+ * @returns 当前对象本身,可以链式调用
17316
+ */
17317
+ load(newOptions?: {
17318
+ url?: string;
17319
+ data?: any;
17320
+ 类参数?: any;
17321
+ }): BusineDataLayer;
17322
+ }
17323
+
17156
17324
  /**
17157
17325
  * 高德在线POI图层
17158
17326
  * @param [options] - 参数对象,包括以下:
@@ -17357,6 +17525,18 @@ declare namespace GeoJsonLayer {
17357
17525
  * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对
17358
17526
  * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}
17359
17527
  * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }
17528
+ * @param [options.clustering] - 设置聚合相关参数(仅对Entity点数据有效):
17529
+ * @param [options.clustering.enabled = false] - 是否开启聚合
17530
+ * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
17531
+ * @param [options.clustering.clampToGround = true] - 是否贴地
17532
+ * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素)
17533
+ * @param [options.clustering.fontColor = '#ffffff'] - 内置样式时,数字的颜色
17534
+ * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 内置样式时,圆形图标的背景颜色
17535
+ * @param [options.clustering.opacity = 0.5] - 内置样式时,圆形图标的透明度
17536
+ * @param [options.clustering.borderWidth = 5] - 圆形图标的边框宽度(单位:像素),0不显示
17537
+ * @param [options.clustering.borderColor = 'rgba(110, 204, 57, 0.5)'] - 内置样式时,圆形图标的边框颜色
17538
+ * @param [options.clustering.borderOpacity = 0.6] - 内置样式时,圆形图标边框的透明度
17539
+ * @param [options.clustering.getImage] - 自定义聚合的图标样式,例如:getImage:function(count) { return image}
17360
17540
  * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板
17361
17541
  * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括:
17362
17542
  * @param [options.popupOptions.title] - 固定的标题名称
@@ -17418,6 +17598,19 @@ declare class GeoJsonLayer extends GraphicLayer {
17418
17598
  templateValues?: any;
17419
17599
  queryParameters?: any;
17420
17600
  headers?: any;
17601
+ clustering?: {
17602
+ enabled?: boolean;
17603
+ pixelRange?: number;
17604
+ clampToGround?: boolean;
17605
+ radius?: number;
17606
+ fontColor?: string;
17607
+ color?: string;
17608
+ opacity?: number;
17609
+ borderWidth?: number;
17610
+ borderColor?: string;
17611
+ borderOpacity?: number;
17612
+ getImage?: (...params: any[]) => any;
17613
+ };
17421
17614
  popup?: string | Globe.getTemplateHtml_template[] | ((...params: any[]) => any);
17422
17615
  popupOptions?: {
17423
17616
  title?: string;
@@ -17747,7 +17940,7 @@ declare namespace GraphicLayer {
17747
17940
  * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
17748
17941
  * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
17749
17942
  * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
17750
- * @param [options.clustering] - Entity点数据时,设置聚合相关参数:
17943
+ * @param [options.clustering] - 设置聚合相关参数(仅对Entity点数据有效):
17751
17944
  * @param [options.clustering.enabled = false] - 是否开启聚合
17752
17945
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
17753
17946
  * @param [options.clustering.clampToGround = true] - 是否贴地
@@ -18026,7 +18219,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
18026
18219
  * @param [options.objectsToExclude] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
18027
18220
  * @param options.endItem - 每计算完成1个graphic高度后 的回调方法
18028
18221
  * @param options.end - 异步计算高度完成所有graphic后 的回调方法
18029
- * @returns 绘制创建完成的Promise,等价于callback参数
18222
+ * @returns 绘制创建完成的Promise
18030
18223
  */
18031
18224
  autoSurfaceHeight(options?: {
18032
18225
  has3dtiles?: boolean;
@@ -31623,9 +31816,10 @@ declare namespace GraphicUtil {
31623
31816
  * 注册矢量数据类
31624
31817
  * @param type - 矢量数据类型
31625
31818
  * @param graphicClass - 矢量数据类
31819
+ * @param [isPoint] - 是否为点状数据
31626
31820
  * @returns 无
31627
31821
  */
31628
- function register(type: string, graphicClass: BaseGraphic | any): void;
31822
+ function register(type: string, graphicClass: BaseGraphic | any, isPoint?: boolean): void;
31629
31823
  /**
31630
31824
  * 根据 矢量数据类型 获取 矢量数据类
31631
31825
  * @param type - 矢量数据类型
@@ -32227,6 +32421,13 @@ declare namespace PointUtil {
32227
32421
  }): number;
32228
32422
  /**
32229
32423
  * 异步精确计算坐标的 贴地(或贴模型)高度
32424
+ * @example
32425
+ * const position = graphic.position
32426
+ * mars3d.PointUtil.getSurfaceHeight(map.scene, graphic.position, { has3dtiles: true }).then((result) => {
32427
+ * console.log("原始高度为:" + result.height_original.toFixed(2) + ",贴地高度:" + result.height.toFixed(2))
32428
+ *
32429
+ * graphic.position = result.position
32430
+ * })
32230
32431
  * @param scene - 三维地图场景对象,一般用map.scene或viewer.scene
32231
32432
  * @param position - 坐标
32232
32433
  * @param [options = {}] - 参数对象:
@@ -33577,6 +33778,7 @@ declare namespace layer {
33577
33778
  export { GraphicLayer as DivLayer }
33578
33779
  export { GraphicGroupLayer }
33579
33780
  export { GeoJsonLayer }
33781
+ export { BusineDataLayer }
33580
33782
  export { TilesetLayer }
33581
33783
  export { OsmBuildingsLayer }
33582
33784
  export { GraticuleLayer }