mars3d 3.3.15 → 3.3.16

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
@@ -25,10 +25,12 @@
25
25
  当前仓库包含SDK更新日志、和其他仓库导航。
26
26
 
27
27
 
28
+
28
29
  Github:[https://github.com/marsgis/mars3d](https://github.com/marsgis/mars3d)
29
30
 
30
31
  国内Gitee:[https://gitee.com/marsgis/mars3d](https://gitee.com/marsgis/mars3d)
31
32
 
33
+ 更新日志: [CHANGE.md](./CHANGE.md)
32
34
 
33
35
 
34
36
  ## 功能示例
@@ -49,8 +51,8 @@ Github:[https://github.com/marsgis/mars3d](https://github.com/marsgis/mars3d)
49
51
  |原生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
52
  |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
53
  |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) |
54
+ |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) |
55
+ |CS桌面端程序 |[查看](https://www.bilibili.com/video/BV1N94y1R7ds/)| [mars3d-electron](https://github.com/marsgis/mars3d-electron) |[mars3d-electron](https://gitee.com/marsgis/mars3d-electron) |
54
56
  |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
57
 
56
58
 
@@ -64,7 +66,7 @@ Github:[https://github.com/marsgis/mars3d](https://github.com/marsgis/mars3d)
64
66
  |基础项目 原生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
67
  |基础项目 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
68
  |基础项目 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) |
69
+ |基础项目 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
70
  |三维地球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
71
 
70
72
 
package/dist/mars3d.css CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D三维可视化平台 mars3d
3
3
  *
4
- * 版本信息:v3.3.15
5
- * 编译日期:2022-06-20 10:04:39
4
+ * 版本信息:v3.3.16
5
+ * 编译日期:2022-07-04 13:55:36
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2022-02-01
8
8
  */
@@ -495,7 +495,6 @@
495
495
  margin: -2px;
496
496
  box-sizing: content-box;
497
497
  }
498
- /**内置的DivGraphic通用样式【动画点】*/
499
498
  .mars3d-animation-point,
500
499
  .mars3d-animation-point:after,
501
500
  .mars3d-animation-point:before,
@@ -529,6 +528,14 @@
529
528
  box-shadow: 0 0 2em currentColor, 0 0 0.5em currentColor;
530
529
  position: absolute;
531
530
  }
531
+ .mars3d-animation-point .mars3d-animation-point-lbl {
532
+ position: absolute;
533
+ transform: translate(-50%, -120%);
534
+ left: 50%;
535
+ font-size: 16px;
536
+ width: fit-content;
537
+ white-space: nowrap;
538
+ }
532
539
  .mars3d-animation-point p {
533
540
  position: absolute;
534
541
  left: 50%;
@@ -596,26 +603,26 @@
596
603
  filter: alpha(opacity=1);
597
604
  }
598
605
  25% {
599
- width: 12px;
600
- height: 12px;
606
+ width: 120%;
607
+ height: 120%;
601
608
  opacity: 0.7;
602
609
  filter: alpha(opacity=70);
603
610
  }
604
611
  50% {
605
- width: 20px;
606
- height: 20px;
612
+ width: 200%;
613
+ height: 200%;
607
614
  opacity: 0.5;
608
615
  filter: alpha(opacity=50);
609
616
  }
610
617
  75% {
611
- width: 30px;
612
- height: 30px;
618
+ width: 300%;
619
+ height: 300%;
613
620
  opacity: 0.2;
614
621
  filter: alpha(opacity=20);
615
622
  }
616
623
  to {
617
- width: 40px;
618
- height: 40px;
624
+ width: 400%;
625
+ height: 400%;
619
626
  opacity: 0;
620
627
  filter: alpha(opacity=0);
621
628
  }
@@ -628,26 +635,26 @@
628
635
  filter: alpha(opacity=1);
629
636
  }
630
637
  25% {
631
- width: 12px;
632
- height: 12px;
638
+ width: 120%;
639
+ height: 120%;
633
640
  opacity: 0.7;
634
641
  filter: alpha(opacity=70);
635
642
  }
636
643
  50% {
637
- width: 20px;
638
- height: 20px;
644
+ width: 200%;
645
+ height: 200%;
639
646
  opacity: 0.5;
640
647
  filter: alpha(opacity=50);
641
648
  }
642
649
  75% {
643
- width: 30px;
644
- height: 30px;
650
+ width: 300%;
651
+ height: 300%;
645
652
  opacity: 0.2;
646
653
  filter: alpha(opacity=20);
647
654
  }
648
655
  to {
649
- width: 40px;
650
- height: 40px;
656
+ width: 400%;
657
+ height: 400%;
651
658
  opacity: 0;
652
659
  filter: alpha(opacity=0);
653
660
  }
@@ -660,26 +667,26 @@
660
667
  filter: alpha(opacity=1);
661
668
  }
662
669
  25% {
663
- width: 12px;
664
- height: 12px;
670
+ width: 120%;
671
+ height: 120%;
665
672
  opacity: 0.7;
666
673
  filter: alpha(opacity=70);
667
674
  }
668
675
  50% {
669
- width: 20px;
670
- height: 20px;
676
+ width: 200%;
677
+ height: 200%;
671
678
  opacity: 0.5;
672
679
  filter: alpha(opacity=50);
673
680
  }
674
681
  75% {
675
- width: 30px;
676
- height: 30px;
682
+ width: 300%;
683
+ height: 300%;
677
684
  opacity: 0.2;
678
685
  filter: alpha(opacity=20);
679
686
  }
680
687
  to {
681
- width: 40px;
682
- height: 40px;
688
+ width: 400%;
689
+ height: 400%;
683
690
  opacity: 0;
684
691
  filter: alpha(opacity=0);
685
692
  }
@@ -692,26 +699,26 @@
692
699
  filter: alpha(opacity=1);
693
700
  }
694
701
  25% {
695
- width: 12px;
696
- height: 12px;
702
+ width: 120%;
703
+ height: 120%;
697
704
  opacity: 0.7;
698
705
  filter: alpha(opacity=70);
699
706
  }
700
707
  50% {
701
- width: 20px;
702
- height: 20px;
708
+ width: 200%;
709
+ height: 200%;
703
710
  opacity: 0.5;
704
711
  filter: alpha(opacity=50);
705
712
  }
706
713
  75% {
707
- width: 30px;
708
- height: 30px;
714
+ width: 300%;
715
+ height: 300%;
709
716
  opacity: 0.2;
710
717
  filter: alpha(opacity=20);
711
718
  }
712
719
  to {
713
- width: 40px;
714
- height: 40px;
720
+ width: 400%;
721
+ height: 400%;
715
722
  opacity: 0;
716
723
  filter: alpha(opacity=0);
717
724
  }
@@ -724,26 +731,26 @@
724
731
  filter: alpha(opacity=1);
725
732
  }
726
733
  25% {
727
- width: 12px;
728
- height: 12px;
734
+ width: 120%;
735
+ height: 120%;
729
736
  opacity: 0.7;
730
737
  filter: alpha(opacity=70);
731
738
  }
732
739
  50% {
733
- width: 20px;
734
- height: 20px;
740
+ width: 200%;
741
+ height: 200%;
735
742
  opacity: 0.5;
736
743
  filter: alpha(opacity=50);
737
744
  }
738
745
  75% {
739
- width: 30px;
740
- height: 30px;
746
+ width: 300%;
747
+ height: 300%;
741
748
  opacity: 0.2;
742
749
  filter: alpha(opacity=20);
743
750
  }
744
751
  to {
745
- width: 40px;
746
- height: 40px;
752
+ width: 400%;
753
+ height: 400%;
747
754
  opacity: 0;
748
755
  filter: alpha(opacity=0);
749
756
  }
package/dist/mars3d.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.3.15
6
- * 编译日期:2022-06-20 10:04:36
5
+ * 版本信息:v3.3.16
6
+ * 编译日期:2022-07-04 13:55:36
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2022-02-01
9
9
  */
@@ -144,11 +144,11 @@ declare enum EffectType {
144
144
  */
145
145
  declare enum EventType {
146
146
  /**
147
- * 添加对象
147
+ * 添加对象(本身)
148
148
  */
149
149
  add = "add",
150
150
  /**
151
- * 移除对象
151
+ * 移除对象(本身)
152
152
  */
153
153
  remove = "remove",
154
154
  /**
@@ -1907,10 +1907,10 @@ declare class MapSplit extends BaseControl {
1907
1907
  /**
1908
1908
  * 对瓦片图层设置卷帘方向
1909
1909
  * @param layer - 图层
1910
- * @param splitDirection - 图层显示的方向
1910
+ * @param [splitDirection] - 图层显示的方向
1911
1911
  * @returns 无
1912
1912
  */
1913
- setLayerSplitDirection(layer: BaseTileLayer | GroupLayer, splitDirection: Cesium.SplitDirection): void;
1913
+ setLayerSplitDirection(layer: BaseTileLayer | GroupLayer, splitDirection?: Cesium.SplitDirection): void;
1914
1914
  /**
1915
1915
  * 控件类型
1916
1916
  */
@@ -4973,8 +4973,8 @@ declare class ParticleSystem extends BasePointPrimitive {
4973
4973
  declare namespace Tetrahedron {
4974
4974
  /**
4975
4975
  * 四面体(顶部正方形+倒立的三角椎体) 支持的样式信息
4976
- * @property [width = 20] - 顶部正方形长宽,单位:米
4977
- * @property [height = 30] - 倒立的三角椎体部分高度,单位:米
4976
+ * @property [width = 20] - 顶部大小,顶部正方形长宽,单位:米
4977
+ * @property [height = 30] - 椎体高度,倒立的三角椎体部分高度,单位:米
4978
4978
  * @property [color = new Cesium.Color(0.8, 0.8, 0, 0.8)] - 颜色
4979
4979
  * @property [animation = true] - 是否动画
4980
4980
  * @property [moveHeight = 30] - 动画时,上下移动的单程总高度,单位:米
@@ -4993,7 +4993,7 @@ declare namespace Tetrahedron {
4993
4993
  }
4994
4994
 
4995
4995
  /**
4996
- * 四面体(顶部正方形+倒立的三角椎体),该对象暂不支持鼠标交互和拾取
4996
+ * 四面体(顶部正方形+倒立的三角椎体)
4997
4997
  * @param options - 参数对象,包括以下:
4998
4998
  * @param options.position - 坐标位置
4999
4999
  * @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。
@@ -5657,9 +5657,11 @@ declare class DivGraphic extends BaseGraphic {
5657
5657
  declare namespace DivLightPoint {
5658
5658
  /**
5659
5659
  * 动画的扩散div点 支持的样式信息
5660
- * @property [color = '#f33349'] - CSS颜色
5661
- * @property [horizontalOrigin] - 横向方向的定位
5662
- * @property [verticalOrigin] - 垂直方向的定位
5660
+ * @property [color = '#f33349'] - 点的颜色
5661
+ * @property [size = 10] - 高宽大小,单位:像素
5662
+ * @property [label] - 文本
5663
+ * @property [label.text] - 文本内容
5664
+ * @property [label.color] - 文本颜色
5663
5665
  * @property [offsetX] - 用于非规则div时,横向偏移的px像素值
5664
5666
  * @property [offsetY] - 用于非规则div时,垂直方向偏移的px像素值
5665
5667
  * @property [scaleByDistance = false] - 是否按视距缩放
@@ -5679,8 +5681,11 @@ declare namespace DivLightPoint {
5679
5681
  */
5680
5682
  type StyleOptions = any | {
5681
5683
  color?: string;
5682
- horizontalOrigin?: Cesium.HorizontalOrigin;
5683
- verticalOrigin?: Cesium.VerticalOrigin;
5684
+ size?: number;
5685
+ label?: {
5686
+ text?: string;
5687
+ color?: string;
5688
+ };
5684
5689
  offsetX?: number;
5685
5690
  offsetY?: number;
5686
5691
  scaleByDistance?: boolean;
@@ -12952,7 +12957,7 @@ declare namespace CloudPrimitive {
12952
12957
  * 积云 Primitive矢量数据 支持的样式信息
12953
12958
  * @property scale - 积云的比例(以米为单位)。该scale属性会影响广告牌的大小,但不会影响云的实际外观。
12954
12959
  * @property maximumSize - 积云的最大尺寸。这定义了云可以出现的最大椭球体积。这不是保证特定的大小,而是指定了云出现的边界,改变它可以影响云的形状。
12955
- * @property slice - 云的“切片”,即为广告牌外观选择的云的特定横截面。给定一个介于 0 和 1 之间的值,切片根据其在 z 方向上的最大尺寸指定与云相交的深度。
12960
+ * @property slice - 切片,即为广告牌外观选择的云的特定横截面。给定一个介于 0 和 1 之间的值,切片根据其在 z 方向上的最大尺寸指定与云相交的深度。
12956
12961
  * @property [brightness = 1.0] - 亮度
12957
12962
  */
12958
12963
  type StyleOptions = any | {
@@ -19451,6 +19456,16 @@ declare class TilesetLayer extends BaseGraphicLayer {
19451
19456
  * @returns 当前对象本身,可以链式调用
19452
19457
  */
19453
19458
  closePopup(): BaseGraphicLayer;
19459
+ /**
19460
+ * 开始编辑对象
19461
+ * @returns 无
19462
+ */
19463
+ startEditing(): void;
19464
+ /**
19465
+ * 停止编辑,释放正在编辑的对象。
19466
+ * @returns 无
19467
+ */
19468
+ stopEditing(): void;
19454
19469
  /**
19455
19470
  * 透明度,取值范围:0.0-1.0
19456
19471
  */
@@ -23253,18 +23268,27 @@ declare namespace Map {
23253
23268
  * 以下是Cesium.Viewer所支持的options【控件相关的写在另外的control属性中】
23254
23269
  * @property [sceneMode = Cesium.SceneMode.SCENE3D] - 初始场景模式。可以设置进入场景后初始是2D、2.5D、3D 模式。
23255
23270
  * @property [scene3DOnly = false] - 为 true 时,每个几何实例将仅以3D渲染以节省GPU内存。
23256
- * @property [mapProjection = new Cesium.GeographicProjection()] - 在二维模式下地图的呈现坐标系,默认为EPSG4326坐标系,如果需要EPSG3857墨卡托坐标系展示,传 new Cesium.WebMercatorProjection() 即可
23271
+ * @property [mapProjection = new Cesium.GeographicProjection()] - 在二维模式下时,地图的呈现坐标系,默认为EPSG4326坐标系,如果需要EPSG3857墨卡托坐标系展示,传 new Cesium.WebMercatorProjection() 即可
23272
+ * @property [mapMode2D = Cesium.MapMode2D.INFINITE_SCROLL] - 在二维模式下时,地图是可旋转的还是可以在水平方向无限滚动。
23257
23273
  * @property [shouldAnimate = true] - 是否开启时钟动画
23258
23274
  * @property [shadows = false] - 是否启用日照阴影
23259
23275
  * @property [useDefaultRenderLoop = true] - 如果此小部件应控制渲染循环,则为true,否则为false。
23260
23276
  * @property [targetFrameRate] - 使用默认渲染循环时的目标帧速率。
23261
23277
  * @property [useBrowserRecommendedResolution = true] - 如果为true,则以浏览器建议的分辨率渲染,并忽略 window.devicePixelRatio 。
23262
23278
  * @property [automaticallyTrackDataSourceClocks = true] - 如果为true,则此小部件将自动跟踪新添加的数据源的时钟设置,并在数据源的时钟发生更改时进行更新。如果要独立配置时钟,请将其设置为false。
23263
- * @property [contextOptions] - WebGL创建属性 传递给 Cesium.Scene 的 options 。{@link Cesium.Scene}.
23279
+ * @property [contextOptions = {}] - WebGL创建属性 传递给 Cesium.Scene 的 options 。{@link Cesium.Scene}
23280
+ * @property [contextOptions.allowTextureFilterAnisotropic = true] - 允许纹理过滤各向异性
23281
+ * @property [contextOptions.requestWebgl2 = false] - 是否启用webgl2
23282
+ * @property [contextOptions.webgl] - WebGL画布,用于 canvas.getContext("webgl", webglOptions)
23283
+ * @property [contextOptions.webgl.alpha = false] - 是否包含alpha缓冲区,如果需要DIV透明时,需要改为true
23284
+ * @property [contextOptions.webgl.antialias] - 是否执行抗锯齿
23285
+ * @property [contextOptions.webgl.failIfMajorPerformanceCaveat] - 如果系统性能较低,是否创建上下文
23286
+ * @property [contextOptions.webgl.depth] - 绘图缓冲区的深度缓冲区至少为16位
23287
+ * @property [contextOptions.webgl.stencil = true] - 绘图缓冲区具有至少8位的模板缓冲区
23288
+ * @property [contextOptions.webgl.powerPreference = "high-performance"] - 对用户代理的提示,指示GPU的哪种配置适合WebGL上下文
23264
23289
  * @property [orderIndependentTranslucency = true] - 如果为true,并且配置支持它,则使用顺序无关的半透明性。
23265
23290
  * @property [terrainShadows = Cesium.ShadowMode.RECEIVE_ONLY] - 确定地形是否投射或接收来自光源的阴影。
23266
- * @property [mapMode2D = Cesium.MapMode2D.INFINITE_SCROLL] - 确定2D地图是可旋转的还是可以在水平方向无限滚动。
23267
- * @property [requestRenderMode = false] - 是否显示渲染,如果为真,渲染帧只会在需要时发生,这是由场景中的变化决定的。启用可以减少你的应用程序的CPU/GPU使用量,并且在移动设备上使用更少的电池,但是需要使用 {@link Scene#requestRender} 在这种模式下显式地渲染一个新帧。在许多情况下,在API的其他部分更改场景后,这是必要的。参见 {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
23291
+ * @property [requestRenderMode = false] - 是否显式渲染,如果为真,渲染帧只会在需要时发生,这是由场景中的变化决定的。启用可以减少你的应用程序的CPU/GPU使用量,并且在移动设备上使用更少的电池,但是需要使用 {@link Scene#requestRender} 在这种模式下显式地渲染一个新帧。在许多情况下,在API的其他部分更改场景后,这是必要的。参见 {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
23268
23292
  * @property [maximumRenderTimeChange = 0.0] - 如果requestRenderMode为true,这个值定义了在请求渲染之前允许的模拟时间的最大变化。参见 {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
23269
23293
  *
23270
23294
  * 以下是Cesium.Globe对象相关参数
@@ -23273,7 +23297,7 @@ declare namespace Map {
23273
23297
  * @property [globe.baseColor = '#546a53'] - 地球背景色 ,css颜色值
23274
23298
  * @property [globe.depthTestAgainstTerrain = false] - 是否启用深度监测,可以开启来测试矢量对象是否在地形下面或被遮挡。
23275
23299
  * @property [globe.showGroundAtmosphere = true] - 是否在地球上绘制的地面大气
23276
- * @property [globe.enableLighting = false] - 是否显示昼夜区域
23300
+ * @property [globe.enableLighting = false] - 是否显示晨昏线,可以看到地球的昼夜区域
23277
23301
  * @property [globe.tileCacheSize = 100] - 地形图块缓存的大小,表示为图块数。任何其他只要不需要渲染,就会释放超出此数目的图块这个框架。较大的数字将消耗更多的内存,但显示细节更快例如,当缩小然后再放大时。
23278
23302
  * @property [globe.terrainExaggeration = 1.0] - 地形夸张倍率,用于放大地形的标量。请注意,地形夸张不会修改其他相对于椭球的图元。
23279
23303
  * @property [globe.realAlt = false] - 地形夸张倍率,在测量高度和下侧提示的高度信息中是否转换为实际真实高度值。
@@ -23281,11 +23305,11 @@ declare namespace Map {
23281
23305
  *
23282
23306
  * 以下是Cesium.ScreenSpaceCameraController对象相关参数
23283
23307
  * @property [cameraController] - 相机操作相关参数
23284
- * @property [cameraController.zoomFactor = 3.0] - 鼠标滚轮放大的步长参数
23285
- * @property [cameraController.constrainedAxis = true] - 为false时 解除在南北极区域鼠标操作限制
23286
- * @property [cameraController.minimumZoomDistance = 1.0] - 变焦时相机位置的最小量级(以米为单位),默认为1。该值是相机与地表(含地形)的相对距离。
23287
- * @property [cameraController.maximumZoomDistance = 50000000.0] - 变焦时相机位置的最大值(以米为单位)。该值是相机与地表(含地形)的相对距离。
23288
- * @property [cameraController.minimumCollisionTerrainHeight = 80000] - 低于此高度时绕鼠标键绕圈,大于时绕视图中心点绕圈。
23308
+ * @property [cameraController.minimumZoomDistance = 1.0] - 相机最近视距,变焦时相机位置的最小量级(以米为单位),默认为1。该值是相机与地表(含地形)的相对距离。
23309
+ * @property [cameraController.maximumZoomDistance = 50000000.0] - 相机最远视距,变焦时相机位置的最大值(以米为单位)。该值是相机与地表(含地形)的相对距离。
23310
+ * @property [cameraController.zoomFactor = 3.0] - 滚轮放大倍数,控制鼠标滚轮操作的步长
23311
+ * @property [cameraController.minimumCollisionTerrainHeight = 80000] - 最小碰撞高度,低于此高度时绕鼠标键绕圈,大于时绕视图中心点绕圈。
23312
+ * @property [cameraController.constrainedAxis = true] - 南北极绕轴心旋转,为false时 解除在南北极区域鼠标操作限制
23289
23313
  * @property [cameraController.enableRotate = true] - 2D和3D视图下,是否允许用户旋转相机
23290
23314
  * @property [cameraController.enableTranslate = true] - 2D和哥伦布视图下,是否允许用户平移地图
23291
23315
  * @property [cameraController.enableTilt = true] - 3D和哥伦布视图下,是否允许用户倾斜相机
@@ -23326,16 +23350,27 @@ declare namespace Map {
23326
23350
  sceneMode?: Cesium.SceneMode;
23327
23351
  scene3DOnly?: boolean;
23328
23352
  mapProjection?: Cesium.MapProjection;
23353
+ mapMode2D?: Cesium.MapMode2D;
23329
23354
  shouldAnimate?: boolean;
23330
23355
  shadows?: boolean;
23331
23356
  useDefaultRenderLoop?: boolean;
23332
23357
  targetFrameRate?: number;
23333
23358
  useBrowserRecommendedResolution?: boolean;
23334
23359
  automaticallyTrackDataSourceClocks?: boolean;
23335
- contextOptions?: any;
23360
+ contextOptions?: {
23361
+ allowTextureFilterAnisotropic?: boolean;
23362
+ requestWebgl2?: boolean;
23363
+ webgl?: {
23364
+ alpha?: boolean;
23365
+ antialias?: boolean;
23366
+ failIfMajorPerformanceCaveat?: boolean;
23367
+ depth?: boolean;
23368
+ stencil?: boolean;
23369
+ powerPreference?: string;
23370
+ };
23371
+ };
23336
23372
  orderIndependentTranslucency?: boolean;
23337
23373
  terrainShadows?: Cesium.ShadowMode;
23338
- mapMode2D?: Cesium.MapMode2D;
23339
23374
  requestRenderMode?: boolean;
23340
23375
  maximumRenderTimeChange?: number;
23341
23376
  globe?: {
@@ -23350,11 +23385,11 @@ declare namespace Map {
23350
23385
  terrainExaggerationRelativeHeight?: number;
23351
23386
  };
23352
23387
  cameraController?: {
23353
- zoomFactor?: number;
23354
- constrainedAxis?: boolean;
23355
23388
  minimumZoomDistance?: number;
23356
23389
  maximumZoomDistance?: number;
23390
+ zoomFactor?: number;
23357
23391
  minimumCollisionTerrainHeight?: number;
23392
+ constrainedAxis?: boolean;
23358
23393
  enableRotate?: boolean;
23359
23394
  enableTranslate?: boolean;
23360
23395
  enableTilt?: boolean;
@@ -23384,7 +23419,6 @@ declare namespace Map {
23384
23419
  * @property [contextmenu.preventDefault = true] - 是否取消右键菜单
23385
23420
  * @property [contextmenu.hasDefault = true] - 是否绑定默认的地图右键菜单
23386
23421
  * @property [popup] - 内置 Popup 控制参数
23387
- * @property [popup.isOnly = true] - 是否单个显示模式
23388
23422
  * @property [popup.depthTest = true] - 是否打开深度判断(true时判断是否在球背面)
23389
23423
  * @property [tooltip] - 内置 Tooltip 控制参数
23390
23424
  * @property [tooltip.cacheTime = 20] - 延迟缓存的时间,单位:毫秒
@@ -23431,7 +23465,6 @@ declare namespace Map {
23431
23465
  hasDefault?: boolean;
23432
23466
  };
23433
23467
  popup?: {
23434
- isOnly?: boolean;
23435
23468
  depthTest?: boolean;
23436
23469
  };
23437
23470
  tooltip?: {
@@ -29123,7 +29156,7 @@ declare namespace Shadows {
29123
29156
  * @param [options.multiplier = 1600] - 时钟倍率,控制速度
29124
29157
  * @param [options.time] - 当前时间
29125
29158
  * @param [options.terrain = true] - 是否启用地形的阴影效果,在平原地区或无地形时可以关闭
29126
- * @param [options.lighting = true] - 是否启用地球昼夜区域的覆盖效果
29159
+ * @param [options.lighting = true] - 是否显示晨昏线,可以看到地球的昼夜区域
29127
29160
  * @param [options.id = uuid()] - 对象的id标识
29128
29161
  * @param [options.enabled = true] - 对象的启用状态
29129
29162
  * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
@@ -30454,6 +30487,11 @@ declare class TilesetFlat extends TilesetEditBase {
30454
30487
  * 压平高度 (单位:米),基于压平区域最低点高度的偏移量
30455
30488
  */
30456
30489
  height: number;
30490
+ /**
30491
+ * 更新压平高度 (单位:米)
30492
+ * @param height - 高度值(单位:米)
30493
+ */
30494
+ updateHeight(height: number): void;
30457
30495
  }
30458
30496
 
30459
30497
  declare namespace TilesetFlood {
@@ -32330,6 +32368,12 @@ declare namespace PolyUtil {
32330
32368
  * @returns 返回经纬度值,示例: { xmin: 73.16895, xmax: 134.86816, ymin: 12.2023, ymax: 54.11485 }
32331
32369
  */
32332
32370
  function formatRectangle(rectangle: Cesium.Rectangle, digits?: number): any;
32371
+ /**
32372
+ * 计算geojson的边界范围
32373
+ * @param [geojson] - Geojson对象
32374
+ * @returns 返回经纬度值,示例: { xmin: 73.16895, xmax: 134.86816, ymin: 12.2023, ymax: 54.11485 }
32375
+ */
32376
+ function getExtentByGeoJSON(geojson?: any): any;
32333
32377
  /**
32334
32378
  * 获取 坐标数组 的 矩形边界值
32335
32379
  * @param positions - 坐标数组
@@ -32698,7 +32742,7 @@ declare namespace Util {
32698
32742
  * @param [options = {}] - 参数对象:
32699
32743
  * @param options.attr - 属性值
32700
32744
  * @param options.template - 模版配置,支持:'all'、数组、字符串模板
32701
- * @param options.title - 标题
32745
+ * @param [options.title] - 标题
32702
32746
  * @param [options.edit = false] - 是否返回编辑输入框
32703
32747
  * @param [options.width = 190] - edit:true时的,编辑输入框宽度值
32704
32748
  * @returns Html字符串
@@ -32706,7 +32750,7 @@ declare namespace Util {
32706
32750
  function getTemplateHtml(options?: {
32707
32751
  attr: any;
32708
32752
  template: string | Globe.getTemplateHtml_template[] | ((...params: any[]) => any) | any;
32709
- title: string;
32753
+ title?: string;
32710
32754
  edit?: boolean;
32711
32755
  width?: number;
32712
32756
  }): string;
@@ -32901,6 +32945,7 @@ declare namespace Util {
32901
32945
  * @param [textStyle.stroke = false] - 是否描边文本。
32902
32946
  * @param [textStyle.strokeWidth = 1] - 文本描边的宽度。
32903
32947
  * @param [textStyle.strokeColor = Cesium.Color.BLACK] - 文本描边的颜色。
32948
+ * @param [textStyle.background = false] - 是否背景色。
32904
32949
  * @param [textStyle.backgroundColor = Cesium.Color.TRANSPARENT] - 画布的背景色。
32905
32950
  * @param [textStyle.padding = 0] - 要在文本周围添加的填充的像素大小。
32906
32951
  * @param [textStyle.outlineWidth] - 边框的宽度。
@@ -32915,6 +32960,7 @@ declare namespace Util {
32915
32960
  stroke?: boolean;
32916
32961
  strokeWidth?: number;
32917
32962
  strokeColor?: Cesium.Color;
32963
+ background?: boolean;
32918
32964
  backgroundColor?: Cesium.Color;
32919
32965
  padding?: number;
32920
32966
  outlineWidth?: number;