mars3d 3.5.13 → 3.5.15

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
@@ -91,9 +91,8 @@ Github:[https://github.com/marsgis/mars3d](https://github.com/marsgis/mars3d)
91
91
  |基础项目 原生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) |
92
92
  |基础项目 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) |
93
93
  |基础项目 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) |
94
- |基础项目 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) |
95
- |三维地球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) |
96
-
94
+ |三维地球APP项目| [查看](http://mars3d.cn/dev/guide/project/app-vue.html) | [查看](https://www.bilibili.com/video/BV1iY4y1t7jk/)| [mars3d-vue-app](https://github.com/marsgis/mars3d-vue-app) |[mars3d-vue-app](https://gitee.com/marsgis/mars3d-vue-app) |
95
+ |基础项目 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) |
97
96
 
98
97
 
99
98
 
package/dist/mars3d.css CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D三维可视化平台 mars3d
3
3
  *
4
- * 版本信息:v3.5.13
5
- * 编译日期:2023-06-26 22:15:37
4
+ * 版本信息:v3.5.15
5
+ * 编译日期:2023-07-10 19:13:59
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2023-03-17
8
8
  */
package/dist/mars3d.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.5.13
6
- * 编译日期:2023-06-26 22:15:36
5
+ * 版本信息:v3.5.15
6
+ * 编译日期:2023-07-10 19:13:59
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2023-03-17
9
9
  */
@@ -1847,6 +1847,7 @@ declare class Compass extends BaseControl {
1847
1847
  /**
1848
1848
  * 时钟仪表控制 控件 (Cesium原生)
1849
1849
  * @param [options] - 参数对象,包括以下:
1850
+ * @param [ticks = [0.1, 0.25, 0.5, 1.0, 2.0, 5.0, 10.0, 15.0, 30.0, 60.0, 120.0, 300.0, 600.0, 900.0, 1800.0, 3600.0]] - 可选的步长
1850
1851
  * @param [options.id = createGuid()] - 对象的id标识
1851
1852
  * @param [options.enabled = true] - 对象的启用状态
1852
1853
  * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container
@@ -1856,7 +1857,7 @@ declare class Animation extends BaseCzmControl {
1856
1857
  id?: string | number;
1857
1858
  enabled?: boolean;
1858
1859
  parentContainer?: HTMLElement;
1859
- });
1860
+ }, ticks?: number[]);
1860
1861
  }
1861
1862
 
1862
1863
  /**
@@ -1934,12 +1935,14 @@ declare class Geocoder extends BaseCzmControl {
1934
1935
  /**
1935
1936
  * 全屏按钮 控件 (Cesium原生)
1936
1937
  * @param [options] - 参数对象,包括以下:
1938
+ * @param [options.title = "初始视图"] - 提示信息
1937
1939
  * @param [options.id = createGuid()] - 对象的id标识
1938
1940
  * @param [options.enabled = true] - 对象的启用状态
1939
1941
  * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.toolbar
1940
1942
  */
1941
1943
  declare class HomeButton extends BaseCzmControl {
1942
1944
  constructor(options?: {
1945
+ title?: string;
1943
1946
  id?: string | number;
1944
1947
  enabled?: boolean;
1945
1948
  parentContainer?: HTMLElement;
@@ -2545,9 +2548,9 @@ declare class BaseClass {
2545
2548
  /**
2546
2549
  * 是否绑定了抛出事件到指定父类
2547
2550
  * @param obj - 父类对象
2548
- * @returns 当前对象本身,可以链式调用
2551
+ * @returns 是否绑定了抛出事件
2549
2552
  */
2550
- hasEventParent(obj: any): BaseClass;
2553
+ hasEventParent(obj: any): boolean;
2551
2554
  }
2552
2555
 
2553
2556
  /**
@@ -6139,72 +6142,6 @@ declare class Route extends BasePointPrimitive {
6139
6142
  }): Promise<any>;
6140
6143
  }
6141
6144
 
6142
- /**
6143
- * 天际线体 矢量对象 <br>
6144
- * 说明:自动计算当前相机所视区域的天际线闭合区域
6145
- * @param options - 参数对象,包括以下:
6146
- * @param options.style - 样式信息
6147
- * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
6148
- * @param [options.appearance] - [cesium原生]用于渲染图元的外观。
6149
- * @param [options.attributes] - [cesium原生]每个实例的属性。
6150
- * @param [options.depthFailAppearance] - 当深度测试失败时,用于为该图元着色的外观。
6151
- * @param [options.vertexCacheOptimize = false] - 当true,几何顶点优化前和后顶点着色缓存。
6152
- * @param [options.interleave = false] - 当true时,几何顶点属性被交叉,这可以略微提高渲染性能,但会增加加载时间。
6153
- * @param [options.compressVertices = true] - 当true时,几何顶点被压缩,这将节省内存。提升效率。
6154
- * @param [options.releaseGeometryInstances = true] - 当true时,图元不保留对输入geometryInstances的引用以节省内存。
6155
- * @param [options.allowPicking = true] - 当true时,每个几何图形实例只能通过{@link Scene#pick}进行挑选。当false时,保存GPU内存。
6156
- * @param [options.cull = true] - 当true时,渲染器会根据图元的边界体积来剔除它们的截锥和地平线。设置为false,如果你手动剔除图元,可以获得较小的性能提升。
6157
- * @param [options.asynchronous = true] - 确定该图元是异步创建还是阻塞创建,直到就绪。
6158
- * @param [options.debugShowBoundingVolume = false] - 仅供调试。确定该图元命令的边界球是否显示。
6159
- * @param [options.debugShowShadowVolume = false] - 仅供调试。贴地时,确定是否绘制了图元中每个几何图形的阴影体积。必须是true创建卷之前要释放几何图形或选项。releaseGeometryInstance必须是false。
6160
- * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
6161
- * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
6162
- * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
6163
- * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数
6164
- * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定
6165
- * @param [options.id = createGuid()] - 矢量数据id标识
6166
- * @param [options.name = ''] - 矢量数据名称
6167
- * @param [options.show = true] - 矢量数据是否显示
6168
- * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件
6169
- * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
6170
- * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。
6171
- * @param [options.flyToOptions] - 加载完成数据后是否自动飞行定位到数据所在的区域的对应 {@link BaseGraphic#flyTo}方法参数。
6172
- */
6173
- declare class SkylineBody extends PolygonPrimitive {
6174
- constructor(options: {
6175
- style: PolygonPrimitive.StyleOptions | any;
6176
- attr?: any;
6177
- appearance?: Cesium.Appearance;
6178
- attributes?: Cesium.Appearance;
6179
- depthFailAppearance?: Cesium.Appearance;
6180
- vertexCacheOptimize?: boolean;
6181
- interleave?: boolean;
6182
- compressVertices?: boolean;
6183
- releaseGeometryInstances?: boolean;
6184
- allowPicking?: boolean;
6185
- cull?: boolean;
6186
- asynchronous?: boolean;
6187
- debugShowBoundingVolume?: boolean;
6188
- debugShowShadowVolume?: boolean;
6189
- popup?: string | any[] | ((...params: any[]) => any);
6190
- popupOptions?: Popup.StyleOptions | any;
6191
- tooltip?: string | any[] | ((...params: any[]) => any);
6192
- tooltipOptions?: Tooltip.StyleOptions | any;
6193
- contextmenuItems?: any;
6194
- id?: string | number;
6195
- name?: string;
6196
- show?: boolean;
6197
- eventParent?: BaseClass | boolean;
6198
- allowDrillPick?: boolean | ((...params: any[]) => any);
6199
- flyTo?: boolean;
6200
- flyToOptions?: any;
6201
- });
6202
- /**
6203
- * 相机位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
6204
- */
6205
- position: Cesium.Cartesian3 | LngLatPoint;
6206
- }
6207
-
6208
6145
  declare namespace Tetrahedron {
6209
6146
  /**
6210
6147
  * 四面体(顶部正方形+倒立的三角椎体) 支持的样式信息
@@ -9290,13 +9227,6 @@ declare class EditPoly extends EditBase {
9290
9227
  declare class EditPolygon extends EditPoly {
9291
9228
  }
9292
9229
 
9293
- /**
9294
- * Polygon对象 标绘处理对应的编辑类,
9295
- * 用于外部扩展使用,绘制的点与显示的点不一致的标号
9296
- */
9297
- declare class EditPolygonEx extends EditPolygon {
9298
- }
9299
-
9300
9230
  /**
9301
9231
  * Polygon对象Grid视频编辑 标绘处理对应的编辑类
9302
9232
  */
@@ -9326,6 +9256,12 @@ declare class EditTileset extends EditBase {
9326
9256
  startRotateMatrix(graphic?: BaseGraphic): void;
9327
9257
  }
9328
9258
 
9259
+ /**
9260
+ * Video2D对象 标绘处理对应的编辑类
9261
+ */
9262
+ declare class EditVideo2D extends EditBase {
9263
+ }
9264
+
9329
9265
  /**
9330
9266
  * Wall对象 标绘处理对应的编辑类,
9331
9267
  */
@@ -11004,6 +10940,11 @@ declare class PolygonEntity extends BasePolyEntity {
11004
10940
  * @returns 当前坐标集合
11005
10941
  */
11006
10942
  setCallbackPositions(positions?: string[] | any[][] | LngLatPoint[]): Cesium.Cartesian3[];
10943
+ /**
10944
+ * 获取数据的最大高度
10945
+ * @returns 高度
10946
+ */
10947
+ getMaxHeight(): number;
11007
10948
  }
11008
10949
 
11009
10950
  declare namespace PolylineEntity {
@@ -11769,6 +11710,10 @@ declare class Video2D extends PolygonEntity {
11769
11710
  flyTo?: boolean;
11770
11711
  flyToOptions?: any;
11771
11712
  });
11713
+ /**
11714
+ * 编辑处理类
11715
+ */
11716
+ readonly EditClass: EditVideo2D;
11772
11717
  /**
11773
11718
  * 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
11774
11719
  */
@@ -12573,7 +12518,8 @@ declare class Lune extends PolygonEntity {
12573
12518
  /**
12574
12519
  * 正多边形 Entity矢量数据
12575
12520
  * @param options - 参数对象,包括以下:
12576
- * @param options.positions - 坐标位置
12521
+ * @param options.position - 中心点坐标位置
12522
+ * @param [options.positions] - 坐标位置
12577
12523
  * @param options.style - 样式信息,还包括:
12578
12524
  * @param [options.style.border = 3] - 边数量
12579
12525
  * @param options.style.radius - 区域的半径(单位:米)
@@ -12600,7 +12546,8 @@ declare class Lune extends PolygonEntity {
12600
12546
  */
12601
12547
  declare class Regular extends PolygonEntity {
12602
12548
  constructor(options: {
12603
- positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[];
12549
+ position: LngLatPoint | Cesium.Cartesian3 | any[];
12550
+ positions?: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[];
12604
12551
  style: {
12605
12552
  border?: number;
12606
12553
  radius: number;
@@ -12653,7 +12600,8 @@ declare class Regular extends PolygonEntity {
12653
12600
  /**
12654
12601
  * 扇形(3个点) Entity矢量数据
12655
12602
  * @param options - 参数对象,包括以下:
12656
- * @param options.positions - 坐标位置
12603
+ * @param options.position - 中心点坐标位置
12604
+ * @param [options.positions] - 坐标位置
12657
12605
  * @param options.style - 样式信息,还包括:
12658
12606
  * @param options.style.radius - 扇形区域的半径(单位:米)
12659
12607
  * @param options.style.startAngle - 扇形区域的开始角度(正东方向为0,顺时针到360度)
@@ -12681,7 +12629,8 @@ declare class Regular extends PolygonEntity {
12681
12629
  */
12682
12630
  declare class Sector extends PolygonEntity {
12683
12631
  constructor(options: {
12684
- positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[];
12632
+ position: LngLatPoint | Cesium.Cartesian3 | any[];
12633
+ positions?: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[];
12685
12634
  style: {
12686
12635
  radius: number;
12687
12636
  startAngle: number;
@@ -15210,6 +15159,7 @@ declare namespace DoubleSidedPlane {
15210
15159
  * @property [vertexShaderSource] - 可选的GLSL顶点着色器源,覆盖默认的顶点着色器。
15211
15160
  * @property [fragmentShaderSource] - 可选的GLSL片段着色器源覆盖默认的片段着色器。
15212
15161
  * @property [renderState] - 可选渲染状态,以覆盖默认渲染状态。
15162
+ * @property [label] - 支持附带文字的显示
15213
15163
  */
15214
15164
  type StyleOptions = any | {
15215
15165
  dimensions_x?: number;
@@ -15231,6 +15181,7 @@ declare namespace DoubleSidedPlane {
15231
15181
  vertexShaderSource?: string;
15232
15182
  fragmentShaderSource?: string;
15233
15183
  renderState?: any;
15184
+ label?: LabelEntity.StyleOptions | any;
15234
15185
  };
15235
15186
  }
15236
15187
 
@@ -18714,6 +18665,7 @@ declare class KmlLayer extends CzmGeoJsonLayer {
18714
18665
  * @param [options.clustering] - 设置聚合相关参数[entity点类型时]:
18715
18666
  * @param [options.clustering.enabled = false] - 是否开启聚合
18716
18667
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
18668
+ * @param [options.clustering.minimumClusterSize = 2] - 可以聚集的屏幕空间对象的最小数量
18717
18669
  * @param [options.clustering.clampToGround = true] - 是否贴地
18718
18670
  * @param [options.clustering.style] - 聚合点的样式参数
18719
18671
  * @param [options.clustering.radius = 28] - 圆形图标的整体半径大小(单位:像素)
@@ -18788,6 +18740,7 @@ declare class ArcGisWfsLayer extends LodGraphicLayer {
18788
18740
  clustering?: {
18789
18741
  enabled?: boolean;
18790
18742
  pixelRange?: number;
18743
+ minimumClusterSize?: number;
18791
18744
  clampToGround?: boolean;
18792
18745
  style?: BillboardEntity.StyleOptions | any;
18793
18746
  radius?: number;
@@ -18991,6 +18944,7 @@ declare class ArcGisWfsSingleLayer extends GeoJsonLayer {
18991
18944
  * @param [options.clustering] - 设置聚合相关参数(仅对Entity点数据有效):
18992
18945
  * @param [options.clustering.enabled = false] - 是否开启聚合
18993
18946
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
18947
+ * @param [options.clustering.minimumClusterSize = 2] - 可以聚集的屏幕空间对象的最小数量
18994
18948
  * @param [options.clustering.clampToGround = true] - 是否贴地
18995
18949
  * @param [options.clustering.style] - 聚合点的样式参数
18996
18950
  * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素)
@@ -19063,6 +19017,7 @@ declare class BusineDataLayer extends GraphicLayer {
19063
19017
  clustering?: {
19064
19018
  enabled?: boolean;
19065
19019
  pixelRange?: number;
19020
+ minimumClusterSize?: number;
19066
19021
  clampToGround?: boolean;
19067
19022
  style?: BillboardEntity.StyleOptions | any;
19068
19023
  radius?: number;
@@ -19151,6 +19106,7 @@ declare class BusineDataLayer extends GraphicLayer {
19151
19106
  * @param [options.clustering] - 设置聚合相关参数:
19152
19107
  * @param [options.clustering.enabled = false] - 是否开启聚合
19153
19108
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
19109
+ * @param [options.clustering.minimumClusterSize = 2] - 可以聚集的屏幕空间对象的最小数量
19154
19110
  * @param [options.clustering.clampToGround = true] - 是否贴地
19155
19111
  * @param [options.clustering.style] - 聚合点的样式参数
19156
19112
  * @param [options.clustering.radius = 28] - 圆形图标的整体半径大小(单位:像素)
@@ -19202,6 +19158,7 @@ declare class GeodePoiLayer extends LodGraphicLayer {
19202
19158
  clustering?: {
19203
19159
  enabled?: boolean;
19204
19160
  pixelRange?: number;
19161
+ minimumClusterSize?: number;
19205
19162
  clampToGround?: boolean;
19206
19163
  style?: BillboardEntity.StyleOptions | any;
19207
19164
  radius?: number;
@@ -19340,6 +19297,7 @@ declare namespace GeoJsonLayer {
19340
19297
  * @param [options.clustering] - 设置聚合相关参数(仅对Entity点数据有效):
19341
19298
  * @param [options.clustering.enabled = false] - 是否开启聚合
19342
19299
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
19300
+ * @param [options.clustering.minimumClusterSize = 2] - 可以聚集的屏幕空间对象的最小数量
19343
19301
  * @param [options.clustering.clampToGround = true] - 是否贴地
19344
19302
  * @param [options.clustering.style] - 聚合点的样式参数
19345
19303
  * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素)
@@ -19415,6 +19373,7 @@ declare class GeoJsonLayer extends GraphicLayer {
19415
19373
  clustering?: {
19416
19374
  enabled?: boolean;
19417
19375
  pixelRange?: number;
19376
+ minimumClusterSize?: number;
19418
19377
  clampToGround?: boolean;
19419
19378
  style?: BillboardEntity.StyleOptions | any;
19420
19379
  radius?: number;
@@ -19763,6 +19722,7 @@ declare namespace GraphicLayer {
19763
19722
  * @param [options.clustering] - 设置聚合相关参数(仅对Entity点数据有效):
19764
19723
  * @param [options.clustering.enabled = false] - 是否开启聚合
19765
19724
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
19725
+ * @param [options.clustering.minimumClusterSize = 2] - 可以聚集的屏幕空间对象的最小数量
19766
19726
  * @param [options.clustering.clampToGround = true] - 是否贴地
19767
19727
  * @param [options.clustering.style] - 聚合点的样式参数
19768
19728
  * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素)
@@ -19826,6 +19786,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
19826
19786
  clustering?: {
19827
19787
  enabled?: boolean;
19828
19788
  pixelRange?: number;
19789
+ minimumClusterSize?: number;
19829
19790
  clampToGround?: boolean;
19830
19791
  style?: BillboardEntity.StyleOptions | any;
19831
19792
  radius?: number;
@@ -20297,11 +20258,10 @@ declare namespace I3SLayer {
20297
20258
  *
20298
20259
  * //以下是3dtiles图层参数
20299
20260
  * @param [options.maximumScreenSpaceError = 16] - 用于驱动细化细节级别的最大屏幕空间错误。可以简单理解为:数值加大,能让最终成像变模糊。
20300
- * @param [options.maximumMemoryUsage = 512] - 数据集可以使用的最大内存量(以MB计),这个参数要根据当前客户端显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50% 左右,比如我的显存是4G,这个可以设置到2048左右。那么既保证不超过显存限制,又可以最大利用显存缓存。<br />
20301
- * 解释:
20302
- * 这个参数默认是512,也即是当几何体和纹理资源大于512MB的时候,cesium就会淘汰掉当前帧中没有visited的所有块,这个值其实很小,也是cesium为了避免资源占用过高的一个保障.<br />
20303
- * 这个值如果设置的过小,导致cesium几乎每帧都在尝试淘汰数据,增加了遍历的时间,也同时增加了崩溃的风险。<br />
20304
- * 这个值如果设置的过大,cesium的淘汰机制失效,那么容易导致显存超过显卡内存,也会导致崩溃。 这个值应该处于最差视角下资源占用 和 显存最大量之间。<br />
20261
+ * @param [options.cacheBytes = 536870912] - 如果缓存包含当前视图不需要的块,则块缓存将被修剪到的大小(以字节为单位)
20262
+ * @param [options.maximumCacheOverflowBytes = 536870912] - 如果当前视图需要超过{@link Cesium3DTileset#cacheBytes},则允许缓存净空的最大额外内存(以字节为单位)。
20263
+ * @param [options.maximumMemoryUsage = 512] - 【cesium 1.107+弃用】数据集可以使用的最大内存量(以MB计),这个参数要根据当前客户端显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50% 左右,比如我的显存是4G,这个可以设置到2048左右。那么既保证不超过显存限制,又可以最大利用显存缓存。<br />
20264
+ * *
20305
20265
  * @param [options.style] - 模型样式, 使用{@link https://github.com/CesiumGS/3d-tiles/tree/master/specification/Styling|3D Tiles Styling language}.
20306
20266
  * @param [options.marsJzwStyle = false] - 开启或设置建筑物特效样式。
20307
20267
  * @param [options.customShader] - 自定义shader效果
@@ -20370,6 +20330,8 @@ declare class I3SLayer extends BaseGraphicLayer {
20370
20330
  traceFetches?: boolean;
20371
20331
  geoidTiledTerrainProvider?: any | Cesium.ArcGISTiledElevationTerrainProvider;
20372
20332
  maximumScreenSpaceError?: number;
20333
+ cacheBytes?: number;
20334
+ maximumCacheOverflowBytes?: number;
20373
20335
  maximumMemoryUsage?: number;
20374
20336
  style?: any | Cesium.Cesium3DTileStyle | ((...params: any[]) => any);
20375
20337
  marsJzwStyle?: boolean | string;
@@ -20572,6 +20534,7 @@ declare namespace LodGraphicLayer {
20572
20534
  * @param [options.clustering] - 设置聚合相关参数:
20573
20535
  * @param [options.clustering.enabled = false] - 是否开启聚合
20574
20536
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
20537
+ * @param [options.clustering.minimumClusterSize = 2] - 可以聚集的屏幕空间对象的最小数量
20575
20538
  * @param [options.clustering.clampToGround = true] - 是否贴地
20576
20539
  * @param [options.clustering.radius = 28] - 圆形图标的整体半径大小(单位:像素)
20577
20540
  * @param [options.clustering.radiusIn = radius-5] - 圆形图标的内圆半径大小(单位:像素)
@@ -20638,6 +20601,7 @@ declare class LodGraphicLayer extends GraphicLayer {
20638
20601
  clustering?: {
20639
20602
  enabled?: boolean;
20640
20603
  pixelRange?: number;
20604
+ minimumClusterSize?: number;
20641
20605
  clampToGround?: boolean;
20642
20606
  radius?: number;
20643
20607
  radiusIn?: number;
@@ -20718,7 +20682,9 @@ declare class LodGraphicLayer extends GraphicLayer {
20718
20682
  * OSM在线 建筑物模型
20719
20683
  * @param options - 参数对象,参数包括以下:
20720
20684
  * @param [options.maximumScreenSpaceError = 16] - 用于驱动细化细节级别的最大屏幕空间错误。数值加大,能让最终成像变模糊
20721
- * @param [options.maximumMemoryUsage = 512] - 数据集可以使用的最大内存量(以MB计)。这个参数默认是512,也即是当几何体和纹理资源大于512MB的时候,Cesium就会淘汰掉当前帧中没有visited的所有块,这个值其实很小,也是cesium为了避免资源占用过高的一个保障,不过上述我们也估算过最差情况下,没有做纹理crn压缩的情况下,这个值很容易被超过,导致很多人误以为cesium的淘汰没有效果。这个值如果设置的过小,导致cesium几乎每帧都在尝试淘汰数据,增加了遍历的时间,也同时增加了崩溃的风险。这个值如果设置的过大,cesium的淘汰机制失效,那么容易导致显存超过显卡内存,也会导致崩溃。 这个值应该处于最差视角下资源占用 和 显存最大量之间。结论:这个参数要根据当前显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50 % 左右,比如我的显存是6G,这个可以设置到3000左右。那么既保证不超过显存限制,又可以最大利用显存缓存,配合crn压缩之后,这个几乎可以保证你第二次查看模型同一位置的时候,看不到加载过程,非常棒。
20685
+ * @param [options.cacheBytes = 536870912] - 如果缓存包含当前视图不需要的块,则块缓存将被修剪到的大小(以字节为单位)
20686
+ * @param [options.maximumCacheOverflowBytes = 536870912] - 如果当前视图需要超过{@link Cesium3DTileset#cacheBytes},则允许缓存净空的最大额外内存(以字节为单位)。
20687
+ * @param [options.maximumMemoryUsage = 512] - 【cesium 1.107+弃用】数据集可以使用的最大内存量(以MB计),这个参数要根据当前客户端显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50% 左右,比如我的显存是4G,这个可以设置到2048左右。那么既保证不超过显存限制,又可以最大利用显存缓存。<br />
20722
20688
  * @param [options.style] - 模型样式, 使用{@link https://github.com/CesiumGS/3d-tiles/tree/master/specification/Styling|3D Tiles Styling language}.
20723
20689
  * @param [options.marsJzwStyle = false] - 开启或设置建筑物特效样式。
20724
20690
  * @param [options.customShader] - 自定义shader效果
@@ -20764,6 +20730,8 @@ declare class LodGraphicLayer extends GraphicLayer {
20764
20730
  declare class OsmBuildingsLayer extends TilesetLayer {
20765
20731
  constructor(options: {
20766
20732
  maximumScreenSpaceError?: number;
20733
+ cacheBytes?: number;
20734
+ maximumCacheOverflowBytes?: number;
20767
20735
  maximumMemoryUsage?: number;
20768
20736
  style?: any | Cesium.Cesium3DTileStyle | ((...params: any[]) => any);
20769
20737
  marsJzwStyle?: boolean | string;
@@ -20868,11 +20836,9 @@ declare namespace TilesetLayer {
20868
20836
  * @param options - 参数对象, 构造参数建议从{@link http://mars3d.cn/editor-vue.html?id=layer-tileset/manager/edit|模型编辑页面}设置后保存参数后拷贝json参数即可。参数包括以下:
20869
20837
  * @param options.url - tileset的主JSON文件的 url ,ION资源时可以写 url: Cesium.IonResource.fromAssetId(8564),
20870
20838
  * @param [options.maximumScreenSpaceError = 16] - 用于驱动细化细节级别的最大屏幕空间错误。可以简单理解为:数值加大,能让最终成像变模糊。
20871
- * @param [options.maximumMemoryUsage = 512] - 数据集可以使用的最大内存量(以MB计),这个参数要根据当前客户端显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50% 左右,比如我的显存是4G,这个可以设置到2048左右。那么既保证不超过显存限制,又可以最大利用显存缓存。<br />
20872
- * 解释:
20873
- * 这个参数默认是512,也即是当几何体和纹理资源大于512MB的时候,cesium就会淘汰掉当前帧中没有visited的所有块,这个值其实很小,也是cesium为了避免资源占用过高的一个保障.<br />
20874
- * 这个值如果设置的过小,导致cesium几乎每帧都在尝试淘汰数据,增加了遍历的时间,也同时增加了崩溃的风险。<br />
20875
- * 这个值如果设置的过大,cesium的淘汰机制失效,那么容易导致显存超过显卡内存,也会导致崩溃。 这个值应该处于最差视角下资源占用 和 显存最大量之间。<br />
20839
+ * @param [options.cacheBytes = 536870912] - 如果缓存包含当前视图不需要的块,则块缓存将被修剪到的大小(以字节为单位)
20840
+ * @param [options.maximumCacheOverflowBytes = 536870912] - 如果当前视图需要超过{@link Cesium3DTileset#cacheBytes},则允许缓存净空的最大额外内存(以字节为单位)。
20841
+ * @param [options.maximumMemoryUsage = 512] - 【cesium 1.107+弃用】数据集可以使用的最大内存量(以MB计),这个参数要根据当前客户端显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50% 左右,比如我的显存是4G,这个可以设置到2048左右。那么既保证不超过显存限制,又可以最大利用显存缓存。<br />
20876
20842
  * @param [options.position] - 自定义新的中心点位置(移动模型)
20877
20843
  * @param [options.position.lng] - 经度值, 180 - 180
20878
20844
  * @param [options.position.lat] - 纬度值, -90 - 90
@@ -20994,6 +20960,8 @@ declare class TilesetLayer extends BaseGraphicLayer {
20994
20960
  constructor(options: {
20995
20961
  url: string | Cesium.Resource | Cesium.IonResource;
20996
20962
  maximumScreenSpaceError?: number;
20963
+ cacheBytes?: number;
20964
+ maximumCacheOverflowBytes?: number;
20997
20965
  maximumMemoryUsage?: number;
20998
20966
  position?: {
20999
20967
  lng?: number;
@@ -21428,6 +21396,7 @@ declare class TilesetLayer extends BaseGraphicLayer {
21428
21396
  * @param [options.clustering] - Entity点数据时,设置聚合相关参数:
21429
21397
  * @param [options.clustering.enabled = false] - 是否开启聚合
21430
21398
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
21399
+ * @param [options.clustering.minimumClusterSize = 2] - 可以聚集的屏幕空间对象的最小数量
21431
21400
  * @param [options.clustering.clampToGround = true] - 是否贴地
21432
21401
  * @param [options.clustering.style] - 聚合点的样式参数
21433
21402
  * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素)
@@ -21516,6 +21485,7 @@ declare class WfsLayer extends LodGraphicLayer {
21516
21485
  clustering?: {
21517
21486
  enabled?: boolean;
21518
21487
  pixelRange?: number;
21488
+ minimumClusterSize?: number;
21519
21489
  clampToGround?: boolean;
21520
21490
  style?: BillboardEntity.StyleOptions | any;
21521
21491
  radius?: number;
@@ -25417,7 +25387,6 @@ declare namespace Map {
25417
25387
  * @property [distanceLegend] - 比例尺, 对应 {@link DistanceLegend}构造参数
25418
25388
  * @property [clockAnimate] - 时钟控制, 对应{@link ClockAnimate}构造参数
25419
25389
  * @property [animation = true] - 时钟仪表控制(Cesium原生)
25420
- * @property [animationTicks] - 时钟仪表控制(Cesium原生)的可选步长
25421
25390
  * @property [timeline = true] - 时间线, 是否创建下侧时间线控件面板
25422
25391
  * @property [overviewMap] - 鹰眼地图, 对应{@link OverviewMap }构造参数
25423
25392
  * @property [mapSplit] - 卷帘对比, 对应{@link MapSplit }构造参数
@@ -25458,7 +25427,6 @@ declare namespace Map {
25458
25427
  distanceLegend?: any;
25459
25428
  clockAnimate?: any;
25460
25429
  animation?: boolean;
25461
- animationTicks?: number[];
25462
25430
  timeline?: boolean;
25463
25431
  overviewMap?: any;
25464
25432
  mapSplit?: any;
@@ -25807,20 +25775,6 @@ declare class Map extends BaseClass {
25807
25775
  * 是否只拾取地形上的点,忽略模型和矢量数据
25808
25776
  */
25809
25777
  onlyPickTerrainPosition: boolean;
25810
- /**
25811
- * 整个Map场景中Cesium3DTiles使用的总显存数量
25812
- * <pre>
25813
- * 这个可以设置到显存的50% 左右,合理设置此值可以有效的减少甚至避免 WebGL 由于爆显存而导致的报错。
25814
- *
25815
- * 值得注意的是:
25816
- * 这里设置的最大使用显存并不是一个强制性的值,它仅仅起到一个阈值的作用。
25817
- * 也就是当场景中 3DTiles 使用的显存超过该值时,才会触发缓存回收机制。
25818
- * 而缓存回收后,使用的总显存并不一定会降到该值以下。
25819
- * 比如,在当前相机视角下,3DTiles 需要 200MB 才能达到对应的显示精度,
25820
- * 而最大使用显存设置到 100MB 时,最终使用的显存将以 Cesium 需要的显存为准,也就是 200MB。
25821
- * <pre>
25822
- */
25823
- tilesetMaxTotalMemory: number;
25824
25778
  /**
25825
25779
  * 获取鼠标事件控制器
25826
25780
  */
@@ -30900,7 +30854,6 @@ declare namespace WindLayer {
30900
30854
  * @param [options.dropRateBump = 0.01] - 下降速度
30901
30855
  * @param [options.speedFactor = 0.5] - 速度系数
30902
30856
  * @param [options.lineWidth = 2.0] - 线宽度
30903
- * @param [options.fixedHeight = 0] - 粒子点的固定的海拔高度
30904
30857
  * @param [options.colors = ["rgb(206,255,255)"]] - 颜色色带数组
30905
30858
  * @param [options.id = createGuid()] - 图层id标识
30906
30859
  * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
@@ -30925,7 +30878,6 @@ declare class WindLayer extends BaseLayer {
30925
30878
  dropRateBump?: number;
30926
30879
  speedFactor?: number;
30927
30880
  lineWidth?: number;
30928
- fixedHeight?: number;
30929
30881
  colors?: string[];
30930
30882
  id?: string | number;
30931
30883
  pid?: string | number;
@@ -31522,6 +31474,7 @@ declare class QueryArcServer extends BaseClass {
31522
31474
  * @param [queryOptions.where] - 自定义的检索条件,与text二选一
31523
31475
  * @param [queryOptions.graphic] - 限定的搜索区域
31524
31476
  * @param [queryOptions.page = true] - 是否分页查询,false时不分页,一次性查询返回
31477
+ * @param [queryOptions.parameters] - 其他参数,arcgis服务本身支持的参数均支持
31525
31478
  * @param [queryOptions.success] - 查询完成的回调方法
31526
31479
  * @param [queryOptions.error] - 查询失败的回调方法
31527
31480
  * @returns 查询完成的Promise,等价于success参数
@@ -31533,6 +31486,7 @@ declare class QueryArcServer extends BaseClass {
31533
31486
  where?: string;
31534
31487
  graphic?: BaseGraphic | any;
31535
31488
  page?: boolean;
31489
+ parameters?: any;
31536
31490
  success?: (...params: any[]) => any;
31537
31491
  error?: (...params: any[]) => any;
31538
31492
  }): Promise<any>;
@@ -33205,6 +33159,7 @@ declare type getSlope_endItem = (event: {
33205
33159
  * @param [options.imageBottom] - 当显示开挖区域的井时,井底面贴图URL
33206
33160
  * @param [options.diffHeight] - 当显示开挖区域的井时,设置所有区域的挖掘深度(单位:米)
33207
33161
  * @param [options.splitNum = 30] - 当显示开挖区域的井时,井墙面每两点之间插值个数(概略值,有经纬网网格来插值)
33162
+ * @param [options.dynamicView = true] - 是否监听事件,动态隐藏非视域内区域
33208
33163
  * @param [options.id = createGuid()] - 对象的id标识
33209
33164
  * @param [options.enabled = true] - 对象的启用状态
33210
33165
  * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
@@ -33217,6 +33172,7 @@ declare class TerrainClip extends TerrainOldEditBase {
33217
33172
  imageBottom?: string;
33218
33173
  diffHeight?: number;
33219
33174
  splitNum?: number;
33175
+ dynamicView?: boolean;
33220
33176
  id?: string | number;
33221
33177
  enabled?: boolean;
33222
33178
  eventParent?: BaseClass | boolean;
@@ -36249,7 +36205,7 @@ declare namespace Util {
36249
36205
  * @param [options.symbol] - symbol配置,与style二选一
36250
36206
  * @param [options.symbol.type] - 标识数据类型
36251
36207
  * @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并,仅适用symbol配置。
36252
- * @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各矢量数据的style参数。{@link GraphicType}
36208
+ * @param [options.symbol.styleOptions] - Style样式,每种不同类型数据都有不同的样式,具体见各矢量数据的style参数。{@link GraphicType}
36253
36209
  * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。
36254
36210
  * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
36255
36211
  * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
@@ -36263,7 +36219,7 @@ declare namespace Util {
36263
36219
  symbol?: {
36264
36220
  type?: GraphicType | string;
36265
36221
  merge?: boolean;
36266
- styleOptions: any;
36222
+ styleOptions?: any;
36267
36223
  styleField?: string;
36268
36224
  styleFieldOptions?: any;
36269
36225
  callback?: (...params: any[]) => any;