mars3d 3.3.5 → 3.3.8
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 +47 -26
- package/dist/mars3d.css +18 -7
- package/dist/mars3d.d.ts +963 -73
- package/dist/mars3d.js +4 -4
- package/package.json +2 -2
package/dist/mars3d.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Mars3D三维可视化平台 mars3d
|
|
4
4
|
*
|
|
5
|
-
* 版本信息:v3.3.
|
|
6
|
-
* 编译日期:2022-
|
|
5
|
+
* 版本信息:v3.3.8
|
|
6
|
+
* 编译日期:2022-05-09 21:31:02
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2022-02-01
|
|
9
9
|
*/
|
|
@@ -614,6 +614,266 @@ declare enum GraphicType {
|
|
|
614
614
|
satellite
|
|
615
615
|
}
|
|
616
616
|
|
|
617
|
+
/**
|
|
618
|
+
* SDK内部使用的一些图标配置,方便外部覆盖(建议Map构造前覆盖)。
|
|
619
|
+
* 如:默认右键菜单
|
|
620
|
+
*/
|
|
621
|
+
declare enum Icon {
|
|
622
|
+
/**
|
|
623
|
+
* 删除
|
|
624
|
+
*/
|
|
625
|
+
Delete = "fa fa-trash-o",
|
|
626
|
+
/**
|
|
627
|
+
* 查看此处坐标
|
|
628
|
+
*/
|
|
629
|
+
Coordinates = "fa fa-info-circle",
|
|
630
|
+
/**
|
|
631
|
+
* 查看当前视角
|
|
632
|
+
*/
|
|
633
|
+
CameraInfo = "fa fa-camera-retro",
|
|
634
|
+
/**
|
|
635
|
+
* 视角切换
|
|
636
|
+
*/
|
|
637
|
+
Camera = "fa fa-street-view",
|
|
638
|
+
/**
|
|
639
|
+
* 禁止进入地下
|
|
640
|
+
*/
|
|
641
|
+
UndergroundNo = "fa fa-ban",
|
|
642
|
+
/**
|
|
643
|
+
* 允许进入地下
|
|
644
|
+
*/
|
|
645
|
+
UndergroundYes = "fa fa-sort-amount-desc",
|
|
646
|
+
/**
|
|
647
|
+
* 绕此处环绕飞行
|
|
648
|
+
*/
|
|
649
|
+
RotatePointStart = "fa fa-retweet",
|
|
650
|
+
/**
|
|
651
|
+
* 关闭环绕飞行
|
|
652
|
+
*/
|
|
653
|
+
RotatePointStop = "fa fa-remove",
|
|
654
|
+
/**
|
|
655
|
+
* 移动到此处
|
|
656
|
+
*/
|
|
657
|
+
FlyToPoint = "fa fa-send-o",
|
|
658
|
+
/**
|
|
659
|
+
* 第一视角站到此处
|
|
660
|
+
*/
|
|
661
|
+
FirstPerspective = "fa fa-male",
|
|
662
|
+
/**
|
|
663
|
+
* 开启键盘漫游
|
|
664
|
+
*/
|
|
665
|
+
KeyboardRoamYes = "fa fa-keyboard-o",
|
|
666
|
+
/**
|
|
667
|
+
* 关闭键盘漫游
|
|
668
|
+
*/
|
|
669
|
+
KeyboardRoamNo = "fa fa-keyboard-o",
|
|
670
|
+
/**
|
|
671
|
+
* 取消锁定
|
|
672
|
+
*/
|
|
673
|
+
TrackedEntityNo = "fa fa-unlock-alt",
|
|
674
|
+
/**
|
|
675
|
+
* 三维模型
|
|
676
|
+
*/
|
|
677
|
+
Tileset = "fa fa-building-o",
|
|
678
|
+
/**
|
|
679
|
+
* 显示模型三角网
|
|
680
|
+
*/
|
|
681
|
+
TilesetWireframeYes = "fa fa-connectdevelop",
|
|
682
|
+
/**
|
|
683
|
+
* 关闭模型三角网
|
|
684
|
+
*/
|
|
685
|
+
TilesetWireframeNo = "fa fa-connectdevelop",
|
|
686
|
+
/**
|
|
687
|
+
* 显示模型包围盒
|
|
688
|
+
*/
|
|
689
|
+
TilesetBoundingVolumeYes = "fa fa-codepen",
|
|
690
|
+
/**
|
|
691
|
+
* 关闭模型包围盒
|
|
692
|
+
*/
|
|
693
|
+
TilesetBoundingVolumeNo = "fa fa-codepen",
|
|
694
|
+
/**
|
|
695
|
+
* 地形服务
|
|
696
|
+
*/
|
|
697
|
+
Terrain = "fa fa-globe",
|
|
698
|
+
/**
|
|
699
|
+
* 开启地形
|
|
700
|
+
*/
|
|
701
|
+
TerrainYes = "fa fa-medium",
|
|
702
|
+
/**
|
|
703
|
+
* 关闭地形
|
|
704
|
+
*/
|
|
705
|
+
TerrainNo = "fa fa-medium",
|
|
706
|
+
/**
|
|
707
|
+
* 显示地形三角网
|
|
708
|
+
*/
|
|
709
|
+
TerrainWireframeYes = "fa fa-connectdevelop",
|
|
710
|
+
/**
|
|
711
|
+
* 关闭地形三角网
|
|
712
|
+
*/
|
|
713
|
+
TerrainWireframeNo = "fa fa-connectdevelop",
|
|
714
|
+
/**
|
|
715
|
+
* 图上量算
|
|
716
|
+
*/
|
|
717
|
+
Measure = "fa fa-share-alt",
|
|
718
|
+
/**
|
|
719
|
+
* 距离
|
|
720
|
+
*/
|
|
721
|
+
MeasureDistance = "fa fa-minus",
|
|
722
|
+
/**
|
|
723
|
+
* 面积
|
|
724
|
+
*/
|
|
725
|
+
MeasureArea = "fa fa-medium",
|
|
726
|
+
/**
|
|
727
|
+
* 高度差
|
|
728
|
+
*/
|
|
729
|
+
MeasureHeight = "fa fa-sort-amount-asc",
|
|
730
|
+
/**
|
|
731
|
+
* 角度
|
|
732
|
+
*/
|
|
733
|
+
MeasureAngle = "fa fa-road",
|
|
734
|
+
/**
|
|
735
|
+
* 图上标记
|
|
736
|
+
*/
|
|
737
|
+
Draw = "fa fa-eyedropper",
|
|
738
|
+
/**
|
|
739
|
+
* 标记点
|
|
740
|
+
*/
|
|
741
|
+
DrawPoint = "fa fa-map-marker",
|
|
742
|
+
/**
|
|
743
|
+
* 标记线
|
|
744
|
+
*/
|
|
745
|
+
DrawPolyline = "fa fa-reorder",
|
|
746
|
+
/**
|
|
747
|
+
* 标记面
|
|
748
|
+
*/
|
|
749
|
+
DrawPolygon = "fa fa-medium",
|
|
750
|
+
/**
|
|
751
|
+
* 标记圆
|
|
752
|
+
*/
|
|
753
|
+
DrawCircle = "fa fa-genderless",
|
|
754
|
+
/**
|
|
755
|
+
* 标记矩形
|
|
756
|
+
*/
|
|
757
|
+
DrawRectangle = "fa fa-retweet",
|
|
758
|
+
/**
|
|
759
|
+
* 允许编辑
|
|
760
|
+
*/
|
|
761
|
+
DrawEditYes = "fa fa-pencil",
|
|
762
|
+
/**
|
|
763
|
+
* 禁止编辑
|
|
764
|
+
*/
|
|
765
|
+
DrawEditNo = "fa fa-pencil-square",
|
|
766
|
+
/**
|
|
767
|
+
* 导出GeoJSON
|
|
768
|
+
*/
|
|
769
|
+
DrawDownJson = "fa fa-file-text-o",
|
|
770
|
+
/**
|
|
771
|
+
* 特效效果
|
|
772
|
+
*/
|
|
773
|
+
Effect = "fa fa-rss",
|
|
774
|
+
/**
|
|
775
|
+
* 开启下雨
|
|
776
|
+
*/
|
|
777
|
+
RainEffectYes = "fa fa-tint",
|
|
778
|
+
/**
|
|
779
|
+
* 关闭下雨
|
|
780
|
+
*/
|
|
781
|
+
RainEffectNo = "fa fa-tint",
|
|
782
|
+
/**
|
|
783
|
+
* 开启下雪
|
|
784
|
+
*/
|
|
785
|
+
SnowEffectYes = "fa fa-yelp",
|
|
786
|
+
SnowEffectNo = "fa fa-yelp",
|
|
787
|
+
/**
|
|
788
|
+
* 开启雾天气
|
|
789
|
+
*/
|
|
790
|
+
FogEffectYes = "fa fa-spinner",
|
|
791
|
+
/**
|
|
792
|
+
* 关闭雾天气
|
|
793
|
+
*/
|
|
794
|
+
FogEffectNo = "fa fa-spinner",
|
|
795
|
+
/**
|
|
796
|
+
* 开启泛光
|
|
797
|
+
*/
|
|
798
|
+
BloomEffectYes = "fa fa-bullseye",
|
|
799
|
+
/**
|
|
800
|
+
* 关闭泛光
|
|
801
|
+
*/
|
|
802
|
+
BloomEffectNo = "fa fa-bullseye",
|
|
803
|
+
/**
|
|
804
|
+
* 开启亮度
|
|
805
|
+
*/
|
|
806
|
+
BrightnessEffectYes = "fa fa-trello",
|
|
807
|
+
/**
|
|
808
|
+
* 关闭亮度
|
|
809
|
+
*/
|
|
810
|
+
BrightnessEffectNo = "fa fa-trello",
|
|
811
|
+
/**
|
|
812
|
+
* 开启夜视
|
|
813
|
+
*/
|
|
814
|
+
NightVisionEffectYes = "fa fa-dashboard",
|
|
815
|
+
/**
|
|
816
|
+
* 关闭夜视
|
|
817
|
+
*/
|
|
818
|
+
NightVisionEffectNo = "fa fa-dashboard",
|
|
819
|
+
/**
|
|
820
|
+
* 开启黑白
|
|
821
|
+
*/
|
|
822
|
+
BlackAndWhiteEffectYes = "fa fa-star-half-full",
|
|
823
|
+
/**
|
|
824
|
+
* 关闭黑白
|
|
825
|
+
*/
|
|
826
|
+
BlackAndWhiteEffectNo = "fa fa-star-half-full",
|
|
827
|
+
/**
|
|
828
|
+
* 开启拾取高亮
|
|
829
|
+
*/
|
|
830
|
+
OutlineEffectYes = "fa fa-ticket",
|
|
831
|
+
/**
|
|
832
|
+
* 关闭拾取高亮
|
|
833
|
+
*/
|
|
834
|
+
OutlineEffectNo = "fa fa-ticket",
|
|
835
|
+
/**
|
|
836
|
+
* 场景设置
|
|
837
|
+
*/
|
|
838
|
+
Scene = "fa fa-gear",
|
|
839
|
+
/**
|
|
840
|
+
* 开启深度监测
|
|
841
|
+
*/
|
|
842
|
+
DepthTestYes = "fa fa-eye-slash",
|
|
843
|
+
/**
|
|
844
|
+
* 关闭深度监测
|
|
845
|
+
*/
|
|
846
|
+
DepthTestNo = "fa fa-eye",
|
|
847
|
+
/**
|
|
848
|
+
* 显示星空背景
|
|
849
|
+
*/
|
|
850
|
+
SkyBoxYes = "fa fa-moon-o",
|
|
851
|
+
/**
|
|
852
|
+
* 关闭星空背景
|
|
853
|
+
*/
|
|
854
|
+
SkyBoxNo = "fa fa-moon-o",
|
|
855
|
+
/**
|
|
856
|
+
* 开启日照阴影
|
|
857
|
+
*/
|
|
858
|
+
ShadowYes = "fa fa-sun-o",
|
|
859
|
+
/**
|
|
860
|
+
* 关闭日照阴影
|
|
861
|
+
*/
|
|
862
|
+
ShadowNo = "fa fa-sun-o",
|
|
863
|
+
/**
|
|
864
|
+
* 开启大气渲染
|
|
865
|
+
*/
|
|
866
|
+
SkyAtmosphereYes = "fa fa-soundcloud",
|
|
867
|
+
/**
|
|
868
|
+
* 关闭大气渲染
|
|
869
|
+
*/
|
|
870
|
+
SkyAtmosphereNo = "fa fa-soundcloud",
|
|
871
|
+
/**
|
|
872
|
+
* 场景出图
|
|
873
|
+
*/
|
|
874
|
+
ExpImage = "fa fa-download"
|
|
875
|
+
}
|
|
876
|
+
|
|
617
877
|
/**
|
|
618
878
|
* 多语种文本配置,
|
|
619
879
|
* 值为数组,对应{@link LangType}按照固定顺序排列,如:[中文简体,中文繁體,English]
|
|
@@ -973,6 +1233,13 @@ declare namespace MaterialType {
|
|
|
973
1233
|
* @property [speed = 5.0] - 速度,值越大越快
|
|
974
1234
|
*/
|
|
975
1235
|
const LineTrail: string;
|
|
1236
|
+
/**
|
|
1237
|
+
* 线状: 泛光线 材质
|
|
1238
|
+
* @property [color = Cesium.Color.ORANGE] - 泛光颜色
|
|
1239
|
+
* @property [glow = 1.0] - 泛光强度
|
|
1240
|
+
* @property [speed = 5.0] - 速度,值越大越快
|
|
1241
|
+
*/
|
|
1242
|
+
const LineBloom: string;
|
|
976
1243
|
/**
|
|
977
1244
|
* 墙体: 走马灯围墙 材质
|
|
978
1245
|
* @property [image] - 背景图片URL
|
|
@@ -1082,6 +1349,20 @@ declare namespace MaterialType {
|
|
|
1082
1349
|
* @property [grainFrequency = 27.0] - 颗粒的频率
|
|
1083
1350
|
*/
|
|
1084
1351
|
const PolyWood: string;
|
|
1352
|
+
/**
|
|
1353
|
+
* 面状: 霓虹灯材质
|
|
1354
|
+
* @property [color = new Cesium.Color(2, 1, 0.0, 0.8)] - 颜色
|
|
1355
|
+
* @property [repeat = 30] - 圈数量
|
|
1356
|
+
* @property [frameRate = 60] - 每秒刷新次数
|
|
1357
|
+
*/
|
|
1358
|
+
const NeonLight: string;
|
|
1359
|
+
/**
|
|
1360
|
+
* 通用:水面材质 带蓝色光线波纹的
|
|
1361
|
+
* @property [specularMap] - 单一通道纹理用来指示水域的面积。
|
|
1362
|
+
* @property [normalMap] - 水正常扰动的法线图。
|
|
1363
|
+
* @property [alpha = 0.2] - 透明度
|
|
1364
|
+
*/
|
|
1365
|
+
const WaterLight: string;
|
|
1085
1366
|
/**
|
|
1086
1367
|
* 球体: 电弧球体效果 材质
|
|
1087
1368
|
* @property [color = new Cesium.Color(0.0, 1.0, 1.0, 0.7)] - 颜色
|
|
@@ -1101,6 +1382,7 @@ declare namespace MaterialType {
|
|
|
1101
1382
|
* @property [frameRate = 60] - 每秒刷新次数
|
|
1102
1383
|
*/
|
|
1103
1384
|
const CylinderWave: string;
|
|
1385
|
+
const DigitalFlow: string;
|
|
1104
1386
|
}
|
|
1105
1387
|
|
|
1106
1388
|
/**
|
|
@@ -1195,16 +1477,31 @@ declare namespace Token {
|
|
|
1195
1477
|
* 官网: {@link https://cesium.com/ion/signin/}
|
|
1196
1478
|
*/
|
|
1197
1479
|
const ion: string;
|
|
1480
|
+
/**
|
|
1481
|
+
* 更新Cesium官方的Ion服务key
|
|
1482
|
+
* @param item - token值
|
|
1483
|
+
*/
|
|
1484
|
+
function updateIon(item: string): void;
|
|
1198
1485
|
/**
|
|
1199
1486
|
* mapbox地图key,
|
|
1200
1487
|
* 官网:{@link https://account.mapbox.com}
|
|
1201
1488
|
*/
|
|
1202
1489
|
const mapbox: string;
|
|
1490
|
+
/**
|
|
1491
|
+
* 更新mapbox地图key
|
|
1492
|
+
* @param item - token值
|
|
1493
|
+
*/
|
|
1494
|
+
function updateMapbox(item: string): void;
|
|
1203
1495
|
/**
|
|
1204
1496
|
* 微软Bing地图key,
|
|
1205
1497
|
* 官网: {@link https://www.bingmapsportal.com/Application}
|
|
1206
1498
|
*/
|
|
1207
1499
|
const bing: string;
|
|
1500
|
+
/**
|
|
1501
|
+
* 更新微软Bing地图key
|
|
1502
|
+
* @param item - token值
|
|
1503
|
+
*/
|
|
1504
|
+
function updateBing(item: string): void;
|
|
1208
1505
|
/**
|
|
1209
1506
|
* 天地图key数组,
|
|
1210
1507
|
* 官网: {@link https://console.tianditu.gov.cn/api/key}
|
|
@@ -1214,6 +1511,11 @@ declare namespace Token {
|
|
|
1214
1511
|
* 天地图key,
|
|
1215
1512
|
*/
|
|
1216
1513
|
const tianditu: string;
|
|
1514
|
+
/**
|
|
1515
|
+
* 更新天地图key
|
|
1516
|
+
* @param item - token值
|
|
1517
|
+
*/
|
|
1518
|
+
function updateTianditu(item: string | string[]): void;
|
|
1217
1519
|
/**
|
|
1218
1520
|
* 高德key数组,
|
|
1219
1521
|
* 官网: {@link https://console.amap.com/dev/key/app}
|
|
@@ -1223,6 +1525,11 @@ declare namespace Token {
|
|
|
1223
1525
|
* 高德key,
|
|
1224
1526
|
*/
|
|
1225
1527
|
const gaode: string;
|
|
1528
|
+
/**
|
|
1529
|
+
* 更新高德key
|
|
1530
|
+
* @param item - token值
|
|
1531
|
+
*/
|
|
1532
|
+
function updateGaode(item: string | string[]): void;
|
|
1226
1533
|
/**
|
|
1227
1534
|
* 百度key数组,
|
|
1228
1535
|
* 官网: {@link http://lbsyun.baidu.com/apiconsole/key#/home}
|
|
@@ -1232,6 +1539,29 @@ declare namespace Token {
|
|
|
1232
1539
|
* 百度key,
|
|
1233
1540
|
*/
|
|
1234
1541
|
const baidu: string;
|
|
1542
|
+
/**
|
|
1543
|
+
* 更新百度key
|
|
1544
|
+
* @param item - token值
|
|
1545
|
+
*/
|
|
1546
|
+
function updateBaidu(item: string | string[]): void;
|
|
1547
|
+
/**
|
|
1548
|
+
* 更新所有SDK涉及的第3放Token值(如果具体使用类中传入时,已传入值优先)
|
|
1549
|
+
* @param token - 集合
|
|
1550
|
+
* @param [token.tianditu] - 天地图
|
|
1551
|
+
* @param [token.gaode] - 高德
|
|
1552
|
+
* @param [token.baidu] - 百度
|
|
1553
|
+
* @param [token.ion] - Ion服务
|
|
1554
|
+
* @param [token.mapbox] - mapbox地图
|
|
1555
|
+
* @param [token.bing] - 微软Bing地图
|
|
1556
|
+
*/
|
|
1557
|
+
function updateAll(token: {
|
|
1558
|
+
tianditu?: string | string[];
|
|
1559
|
+
gaode?: string | string[];
|
|
1560
|
+
baidu?: string | string[];
|
|
1561
|
+
ion?: string;
|
|
1562
|
+
mapbox?: string;
|
|
1563
|
+
bing?: string;
|
|
1564
|
+
}): void;
|
|
1235
1565
|
}
|
|
1236
1566
|
|
|
1237
1567
|
/**
|
|
@@ -1746,7 +2076,7 @@ declare namespace ToolButton {
|
|
|
1746
2076
|
* 工具栏 单个按钮控件
|
|
1747
2077
|
* @param [options] - 参数对象,包括以下:
|
|
1748
2078
|
* @param [options.title = ''] - 按钮标题
|
|
1749
|
-
* @param [options.icon] -
|
|
2079
|
+
* @param [options.icon] - 按钮图标,可以是:图片url路径、base64字符串、svg字符串、字体图标class名
|
|
1750
2080
|
* @param [options.click] - 按钮单击后的回调方法
|
|
1751
2081
|
* @param [options.id = uuid()] - 对象的id标识
|
|
1752
2082
|
* @param [options.enabled = true] - 对象的启用状态
|
|
@@ -2014,7 +2344,7 @@ declare class BaseThing extends BaseClass {
|
|
|
2014
2344
|
* 天空盒子是用真正的赤道平均春分点(TEME)轴定义的。仅在3D中支持。当转换为2D或哥伦布视图时,天空盒会淡出。
|
|
2015
2345
|
* 天空盒子的大小不能超过{@link Cesium.Scene#maximumCubeMapSize}。
|
|
2016
2346
|
* @example
|
|
2017
|
-
* scene.skyBox = new mars3d.GroundSkyBox({
|
|
2347
|
+
* map.scene.skyBox = new mars3d.GroundSkyBox({
|
|
2018
2348
|
* sources : {
|
|
2019
2349
|
* positiveX : 'skybox_px.png',
|
|
2020
2350
|
* negativeX : 'skybox_nx.png',
|
|
@@ -2048,6 +2378,90 @@ declare class GroundSkyBox extends Cesium.SkyBox {
|
|
|
2048
2378
|
});
|
|
2049
2379
|
}
|
|
2050
2380
|
|
|
2381
|
+
/**
|
|
2382
|
+
* Thing对象(如特效、分析、管理类等)组,可以用于将多个Thing对象组合起来方便控制
|
|
2383
|
+
* @param [options] - 参数对象,包括以下:
|
|
2384
|
+
* @param [options.things] - 子Thing对象数组
|
|
2385
|
+
* @param [options.id = uuid()] - 对象的id标识
|
|
2386
|
+
* @param [options.enabled = true] - 对象的启用状态
|
|
2387
|
+
* @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡
|
|
2388
|
+
*/
|
|
2389
|
+
declare class GroupThing extends BaseThing {
|
|
2390
|
+
constructor(options?: {
|
|
2391
|
+
things?: any;
|
|
2392
|
+
id?: string | number;
|
|
2393
|
+
enabled?: boolean;
|
|
2394
|
+
eventParent?: BaseClass | boolean;
|
|
2395
|
+
});
|
|
2396
|
+
/**
|
|
2397
|
+
* 子Thing对象对象数组
|
|
2398
|
+
*/
|
|
2399
|
+
readonly arrThing: BaseThing[];
|
|
2400
|
+
/**
|
|
2401
|
+
* 是否空组 ,空组目前就Thing对象管理用于Thing对象分组节点(虚拟节点)。
|
|
2402
|
+
*/
|
|
2403
|
+
readonly hasEmptyGroup: boolean;
|
|
2404
|
+
/**
|
|
2405
|
+
* 是否有子Thing对象
|
|
2406
|
+
*/
|
|
2407
|
+
readonly hasChildThing: boolean;
|
|
2408
|
+
/**
|
|
2409
|
+
* 子Thing对象的个数
|
|
2410
|
+
*/
|
|
2411
|
+
readonly length: number;
|
|
2412
|
+
/**
|
|
2413
|
+
* 添加所有子对象到map上
|
|
2414
|
+
* @returns 当前对象本身,可以链式调用
|
|
2415
|
+
*/
|
|
2416
|
+
addChildsToMap(): GroupThing;
|
|
2417
|
+
/**
|
|
2418
|
+
* 将所有子对象从map中移除
|
|
2419
|
+
* @returns 当前对象本身,可以链式调用
|
|
2420
|
+
*/
|
|
2421
|
+
removeMapChilds(): GroupThing;
|
|
2422
|
+
/**
|
|
2423
|
+
* 添加子Thing对象,并绑定关联关系。
|
|
2424
|
+
* @param childthing - 子Thing对象对象
|
|
2425
|
+
* @returns 当前对象本身,可以链式调用
|
|
2426
|
+
*/
|
|
2427
|
+
addThing(childthing: BaseThing): GroupThing;
|
|
2428
|
+
/**
|
|
2429
|
+
* 移除子Thing对象,并解除关联关系。
|
|
2430
|
+
* @param childthing - 子Thing对象对象
|
|
2431
|
+
* @returns 当前对象本身,可以链式调用
|
|
2432
|
+
*/
|
|
2433
|
+
removeThing(childthing: BaseThing): GroupThing;
|
|
2434
|
+
/**
|
|
2435
|
+
* 遍历每一个子Thing对象并将其作为参数传递给回调函数
|
|
2436
|
+
* @param method - 回调方法
|
|
2437
|
+
* @param context - 侦听器的上下文(this关键字将指向的对象)。
|
|
2438
|
+
* @returns 当前对象本身,可以链式调用
|
|
2439
|
+
*/
|
|
2440
|
+
eachThing(method: (...params: any[]) => any, context: any): GroupThing;
|
|
2441
|
+
/**
|
|
2442
|
+
* 获取所有内置子Thing对象对象
|
|
2443
|
+
* @returns 所有子Thing对象对象
|
|
2444
|
+
*/
|
|
2445
|
+
getThings(): BaseThing[];
|
|
2446
|
+
/**
|
|
2447
|
+
* 获取地图所有的子Thing对象对象(包括pid和id关联的Thing对象)
|
|
2448
|
+
* @returns 所有子Thing对象对象
|
|
2449
|
+
*/
|
|
2450
|
+
getInMapChilds(): BaseThing[];
|
|
2451
|
+
/**
|
|
2452
|
+
* 根据ID或取Thing对象
|
|
2453
|
+
* @param id - Thing对象id或uuid
|
|
2454
|
+
* @returns Thing对象对象
|
|
2455
|
+
*/
|
|
2456
|
+
getThingById(id: string | number): BaseThing | any;
|
|
2457
|
+
/**
|
|
2458
|
+
* 销毁当前对象
|
|
2459
|
+
* @param [noDel = false] - false:会自动delete释放所有属性,true:不delete绑定的变量
|
|
2460
|
+
* @returns 无
|
|
2461
|
+
*/
|
|
2462
|
+
destroy(noDel?: boolean): void;
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2051
2465
|
/**
|
|
2052
2466
|
* 坐标数组处理类
|
|
2053
2467
|
*/
|
|
@@ -2219,6 +2633,97 @@ declare class LocalWorldTransform {
|
|
|
2219
2633
|
worldToLocal(worldPoint: Cesium.Cartesian3, result?: Cesium.Cartesian3): Cesium.Cartesian3;
|
|
2220
2634
|
}
|
|
2221
2635
|
|
|
2636
|
+
/**
|
|
2637
|
+
* 3个天空盒(可以平滑过度), 在场景周围绘制星星等太空背景。
|
|
2638
|
+
* 天空盒子是用真正的赤道平均春分点(TEME)轴定义的。仅在3D中支持。当转换为2D或哥伦布视图时,天空盒会淡出。
|
|
2639
|
+
* 天空盒子的大小不能超过{@link Cesium.Scene#maximumCubeMapSize}。
|
|
2640
|
+
* @example
|
|
2641
|
+
* map.scene.skyBox = new mars3d.MultipleSkyBox({
|
|
2642
|
+
* sources: {
|
|
2643
|
+
* positiveX: "./img/skybox/1/px.png",
|
|
2644
|
+
* negativeX: "./img/skybox/1/nx.png",
|
|
2645
|
+
* positiveY: "./img/skybox/1/pz.png",
|
|
2646
|
+
* negativeY: "./img/skybox/1/nz.png",
|
|
2647
|
+
* positiveZ: "./img/skybox/1/py.png",
|
|
2648
|
+
* negativeZ: "./img/skybox/1/ny.png",
|
|
2649
|
+
* },
|
|
2650
|
+
* sources2: {
|
|
2651
|
+
* positiveX: "./img/skybox/2/px.png",
|
|
2652
|
+
* negativeX: "./img/skybox/2/nx.png",
|
|
2653
|
+
* positiveY: "./img/skybox/2/pz.png",
|
|
2654
|
+
* negativeY: "./img/skybox/2/nz.png",
|
|
2655
|
+
* positiveZ: "./img/skybox/2/py.png",
|
|
2656
|
+
* negativeZ: "./img/skybox/2/ny.png",
|
|
2657
|
+
* },
|
|
2658
|
+
* sources3: {
|
|
2659
|
+
* positiveX: "./img/skybox/3/px.png",
|
|
2660
|
+
* negativeX: "./img/skybox/3/nx.png",
|
|
2661
|
+
* positiveY: "./img/skybox/3/pz.png",
|
|
2662
|
+
* negativeY: "./img/skybox/3/nz.png",
|
|
2663
|
+
* positiveZ: "./img/skybox/3/py.png",
|
|
2664
|
+
* negativeZ: "./img/skybox/3/ny.png",
|
|
2665
|
+
* },
|
|
2666
|
+
* });
|
|
2667
|
+
* @param options - 对象,具有以下属性:
|
|
2668
|
+
* @param [options.sources] - 天空盒的6个立方体映射面的图片url
|
|
2669
|
+
* @param [options.sources.positiveX] - 映射面的图片url
|
|
2670
|
+
* @param [options.sources.negativeX] - 映射面的图片url
|
|
2671
|
+
* @param [options.sources.positiveY] - 映射面的图片url
|
|
2672
|
+
* @param [options.sources.negativeY] - 映射面的图片url
|
|
2673
|
+
* @param [options.sources.positiveZ] - 映射面的图片url
|
|
2674
|
+
* @param [options.sources.negativeZ] - 映射面的图片url
|
|
2675
|
+
* @param [options.sources2] - 天空盒的6个立方体映射面的图片url
|
|
2676
|
+
* @param [options.sources2.positiveX] - 映射面的图片url
|
|
2677
|
+
* @param [options.sources2.negativeX] - 映射面的图片url
|
|
2678
|
+
* @param [options.sources2.positiveY] - 映射面的图片url
|
|
2679
|
+
* @param [options.sources2.negativeY] - 映射面的图片url
|
|
2680
|
+
* @param [options.sources2.positiveZ] - 映射面的图片url
|
|
2681
|
+
* @param [options.sources2.negativeZ] - 映射面的图片url
|
|
2682
|
+
* @param [options.sources3] - 天空盒的6个立方体映射面的图片url
|
|
2683
|
+
* @param [options.sources3.positiveX] - 映射面的图片url
|
|
2684
|
+
* @param [options.sources3.negativeX] - 映射面的图片url
|
|
2685
|
+
* @param [options.sources3.positiveY] - 映射面的图片url
|
|
2686
|
+
* @param [options.sources3.negativeY] - 映射面的图片url
|
|
2687
|
+
* @param [options.sources3.positiveZ] - 映射面的图片url
|
|
2688
|
+
* @param [options.sources3.negativeZ] - 映射面的图片url
|
|
2689
|
+
* @param [options.select = 0.0] - 当前选择生效的天空盒,取值范围:0.0-2.0 , 当为 0 时显示sources、为 1 时显示sources2、为 2 时显示sources3,中间值过渡
|
|
2690
|
+
* @param [options.show = true] - 是否显示
|
|
2691
|
+
*/
|
|
2692
|
+
declare class MultipleSkyBox extends Cesium.SkyBox {
|
|
2693
|
+
constructor(options: {
|
|
2694
|
+
sources?: {
|
|
2695
|
+
positiveX?: string;
|
|
2696
|
+
negativeX?: string;
|
|
2697
|
+
positiveY?: string;
|
|
2698
|
+
negativeY?: string;
|
|
2699
|
+
positiveZ?: string;
|
|
2700
|
+
negativeZ?: string;
|
|
2701
|
+
};
|
|
2702
|
+
sources2?: {
|
|
2703
|
+
positiveX?: string;
|
|
2704
|
+
negativeX?: string;
|
|
2705
|
+
positiveY?: string;
|
|
2706
|
+
negativeY?: string;
|
|
2707
|
+
positiveZ?: string;
|
|
2708
|
+
negativeZ?: string;
|
|
2709
|
+
};
|
|
2710
|
+
sources3?: {
|
|
2711
|
+
positiveX?: string;
|
|
2712
|
+
negativeX?: string;
|
|
2713
|
+
positiveY?: string;
|
|
2714
|
+
negativeY?: string;
|
|
2715
|
+
positiveZ?: string;
|
|
2716
|
+
negativeZ?: string;
|
|
2717
|
+
};
|
|
2718
|
+
select?: number;
|
|
2719
|
+
show?: boolean;
|
|
2720
|
+
});
|
|
2721
|
+
/**
|
|
2722
|
+
* 当前选择生效的天空盒,取值范围:0.0-2.0, 当为 0 时显示sources、为 1 时显示sources2、为 2 时显示sources3,中间值过渡
|
|
2723
|
+
*/
|
|
2724
|
+
select: number;
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2222
2727
|
/**
|
|
2223
2728
|
* 特效 基类
|
|
2224
2729
|
* @param [options] - 参数对象,包括以下:
|
|
@@ -2291,25 +2796,70 @@ declare class BloomEffect extends BaseEffect {
|
|
|
2291
2796
|
stepSize?: number;
|
|
2292
2797
|
});
|
|
2293
2798
|
/**
|
|
2294
|
-
* 对比度,取值范围[-255.0,255.0]
|
|
2295
|
-
*/
|
|
2296
|
-
contrast: number;
|
|
2297
|
-
/**
|
|
2298
|
-
* 亮度, 将输入纹理的RGB值转换为色相、饱和度和亮度(HSB),然后将该值添加到亮度中
|
|
2299
|
-
*/
|
|
2300
|
-
brightness: number;
|
|
2301
|
-
/**
|
|
2302
|
-
* 增量.方程是 <code>exp((-0.5 * delta * delta) / (sigma * sigma))</code>。
|
|
2799
|
+
* 对比度,取值范围[-255.0,255.0]
|
|
2800
|
+
*/
|
|
2801
|
+
contrast: number;
|
|
2802
|
+
/**
|
|
2803
|
+
* 亮度, 将输入纹理的RGB值转换为色相、饱和度和亮度(HSB),然后将该值添加到亮度中
|
|
2804
|
+
*/
|
|
2805
|
+
brightness: number;
|
|
2806
|
+
/**
|
|
2807
|
+
* 增量.方程是 <code>exp((-0.5 * delta * delta) / (sigma * sigma))</code>。
|
|
2808
|
+
*/
|
|
2809
|
+
delta: number;
|
|
2810
|
+
/**
|
|
2811
|
+
* delta和sigma用于计算高斯滤波器的权值。方程是 <code>exp((-0.5 * delta * delta) / (sigma * sigma))</code>。
|
|
2812
|
+
*/
|
|
2813
|
+
sigma: number;
|
|
2814
|
+
/**
|
|
2815
|
+
* 步长,是下一个texel的距离
|
|
2816
|
+
*/
|
|
2817
|
+
stepSize: number;
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
/**
|
|
2821
|
+
* 选中对象的 泛光效果。
|
|
2822
|
+
* @param [options] - 参数对象
|
|
2823
|
+
* @param [options.eventType = "click"] - 高亮触发的事件类型,默认为单击。可选值:单击、鼠标移入,false时不内部控制
|
|
2824
|
+
* @param [options.color = Cesium.Color.WHITE] - 泛光颜色
|
|
2825
|
+
* @param [options.contrast = 128] - 对比度,取值范围[-255.0,255.0]
|
|
2826
|
+
* @param [options.brightness = -0.3] - 亮度, 将输入纹理的RGB值转换为色相、饱和度和亮度(HSB),然后将该值添加到亮度中。
|
|
2827
|
+
* @param [options.blurSamples = 32] - 模糊样本
|
|
2828
|
+
* @param [options.delta = 1.0] - 增量
|
|
2829
|
+
* @param [options.sigma = 3.78] - delta和sigma用于计算高斯滤波器的权值。方程是 <code>exp((-0.5 * delta * delta) / (sigma * sigma))</code>。
|
|
2830
|
+
* @param [options.stepSize = 5.0] - 步长,是下一个texel的距离
|
|
2831
|
+
* @param [options.ratio = 2.0] - 亮度增强比例
|
|
2832
|
+
* @param [options.threshold = 0.0] - 亮度阈值
|
|
2833
|
+
* @param [options.smoothWidth = 0.01] - 亮度光滑的宽度
|
|
2834
|
+
* @param [options.enabled = true] - 对象的启用状态
|
|
2835
|
+
*/
|
|
2836
|
+
declare class BloomTargetEffect extends BaseEffect {
|
|
2837
|
+
constructor(options?: {
|
|
2838
|
+
eventType?: EventType | boolean;
|
|
2839
|
+
color?: Cesium.Color;
|
|
2840
|
+
contrast?: number;
|
|
2841
|
+
brightness?: number;
|
|
2842
|
+
blurSamples?: number;
|
|
2843
|
+
delta?: number;
|
|
2844
|
+
sigma?: number;
|
|
2845
|
+
stepSize?: number;
|
|
2846
|
+
ratio?: number;
|
|
2847
|
+
threshold?: number;
|
|
2848
|
+
smoothWidth?: number;
|
|
2849
|
+
enabled?: boolean;
|
|
2850
|
+
});
|
|
2851
|
+
/**
|
|
2852
|
+
* 发光颜色
|
|
2303
2853
|
*/
|
|
2304
|
-
|
|
2854
|
+
color: Cesium.Color;
|
|
2305
2855
|
/**
|
|
2306
|
-
*
|
|
2856
|
+
* 高亮触发的事件类型,默认为单击。
|
|
2307
2857
|
*/
|
|
2308
|
-
|
|
2858
|
+
eventType: EventType | string;
|
|
2309
2859
|
/**
|
|
2310
|
-
*
|
|
2860
|
+
* 选中对象
|
|
2311
2861
|
*/
|
|
2312
|
-
|
|
2862
|
+
selected: any | any | undefined;
|
|
2313
2863
|
}
|
|
2314
2864
|
|
|
2315
2865
|
/**
|
|
@@ -2963,7 +3513,7 @@ declare class BaseGraphic extends BaseClass {
|
|
|
2963
3513
|
* graphic.bindContextMenu([
|
|
2964
3514
|
* {
|
|
2965
3515
|
* text: '删除对象',
|
|
2966
|
-
*
|
|
3516
|
+
* icon: 'fa fa-trash-o',
|
|
2967
3517
|
* callback: function (e) {
|
|
2968
3518
|
* let graphic = e.graphic
|
|
2969
3519
|
* if (graphic) {
|
|
@@ -2974,7 +3524,7 @@ declare class BaseGraphic extends BaseClass {
|
|
|
2974
3524
|
* ])
|
|
2975
3525
|
* @param content - 右键菜单配置数组,数组中每一项包括:
|
|
2976
3526
|
* @param [content.text] - 菜单文字
|
|
2977
|
-
* @param [content.
|
|
3527
|
+
* @param [content.icon] - 图标,可以是:图片url路径、base64字符串、svg字符串、字体图标class名
|
|
2978
3528
|
* @param [content.show] - 菜单项是否显示的回调方法
|
|
2979
3529
|
* @param [content.callback] - 菜单项单击后的回调方法
|
|
2980
3530
|
* @param [content.children] - 当有二级子菜单时,配置数组。
|
|
@@ -2985,7 +3535,7 @@ declare class BaseGraphic extends BaseClass {
|
|
|
2985
3535
|
*/
|
|
2986
3536
|
bindContextMenu(content: {
|
|
2987
3537
|
text?: string;
|
|
2988
|
-
|
|
3538
|
+
icon?: string;
|
|
2989
3539
|
show?: ((...params: any[]) => any) | boolean;
|
|
2990
3540
|
callback?: (...params: any[]) => any;
|
|
2991
3541
|
children?: any;
|
|
@@ -3859,7 +4409,7 @@ declare class PlaneCombine extends BasePolyCombine {
|
|
|
3859
4409
|
* @param [options.name = ''] - 矢量数据名称
|
|
3860
4410
|
* @param [options.show = true] - 矢量数据是否显示
|
|
3861
4411
|
* @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件
|
|
3862
|
-
* @param [options.allowDrillPick] -
|
|
4412
|
+
* @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
|
|
3863
4413
|
*/
|
|
3864
4414
|
declare class PolygonCombine extends BasePolyCombine {
|
|
3865
4415
|
constructor(options: {
|
|
@@ -5885,7 +6435,7 @@ declare class BasePointEntity extends BaseEntity {
|
|
|
5885
6435
|
* 按Cesium.CallbackProperty的方式 更新坐标(更加平滑)
|
|
5886
6436
|
* @param position - 坐标
|
|
5887
6437
|
*/
|
|
5888
|
-
setCallbackPosition(position: Cesium.Cartesian3): void;
|
|
6438
|
+
setCallbackPosition(position: string | any[] | any | Cesium.Cartesian3 | any): void;
|
|
5889
6439
|
/**
|
|
5890
6440
|
* 显示隐藏状态
|
|
5891
6441
|
*/
|
|
@@ -6031,7 +6581,7 @@ declare class BasePolyEntity extends BaseEntity {
|
|
|
6031
6581
|
* 按Cesium.CallbackProperty的方式 更新坐标集合(更加平滑)
|
|
6032
6582
|
* @param positions - 坐标数组
|
|
6033
6583
|
*/
|
|
6034
|
-
setCallbackPositions(positions:
|
|
6584
|
+
setCallbackPositions(positions: string[] | any[][] | LngLatPoint[]): void;
|
|
6035
6585
|
}
|
|
6036
6586
|
|
|
6037
6587
|
declare namespace BillboardEntity {
|
|
@@ -6344,6 +6894,150 @@ declare class BoxEntity extends BasePointEntity {
|
|
|
6344
6894
|
static fromDraw(layer: GraphicLayer, options: any): BoxEntity;
|
|
6345
6895
|
}
|
|
6346
6896
|
|
|
6897
|
+
declare namespace CanvasLabelEntity {
|
|
6898
|
+
/**
|
|
6899
|
+
* Canvas 文本点(label转图片) 支持的样式信息
|
|
6900
|
+
* @property [text = "文字"] - 文本内容,换行可以用换行符'\n'。
|
|
6901
|
+
* @property [scale = 1.0] - 指定缩放比例。
|
|
6902
|
+
* @property [horizontalOrigin] - 横向方向的定位
|
|
6903
|
+
* @property [verticalOrigin] - 垂直方向的定位
|
|
6904
|
+
* @property [font_family = "楷体"] - 字体 ,可选项:微软雅黑,宋体,楷体,隶书,黑体 等
|
|
6905
|
+
* @property [font_size = 30] - 字体大小
|
|
6906
|
+
* @property [font_weight = "normal"] - 是否加粗 ,可选项:bold (解释:是),normal (解释:否),
|
|
6907
|
+
* @property [font_style = "normal"] - 是否斜体 ,可选项:italic (解释:是),normal (解释:否),
|
|
6908
|
+
* @property [font = '30px normal normal 楷体'] - 上叙4个属性的一次性指定CSS字体的属性。
|
|
6909
|
+
* @property [textBaseline = 'bottom'] - 文本的基线。
|
|
6910
|
+
* @property [fill = true] - 是否填充
|
|
6911
|
+
* @property [color = "#ffffff"] - 文本颜色
|
|
6912
|
+
* @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
|
|
6913
|
+
* @property [stroke = false] - 是否衬色
|
|
6914
|
+
* @property [strokeColor = "#000000"] - 衬色颜色
|
|
6915
|
+
* @property [strokeWidth = 2.0] - 衬色宽度
|
|
6916
|
+
* @property [outlineColor = "#000000"] - 矩形边框的颜色。
|
|
6917
|
+
* @property [outlineWidth = 0.0] - 边框的宽度
|
|
6918
|
+
* @property [background = false] - 是否背景
|
|
6919
|
+
* @property [backgroundColor = "#000000"] - 背景颜色
|
|
6920
|
+
* @property [backgroundPadding = 0] - 背景内边距,指定文字与填充边界内容之间的空间(以像素为单位)。
|
|
6921
|
+
* @property [hasPixelOffset = false] - 是否存在偏移量
|
|
6922
|
+
* @property [pixelOffsetX = 0] - 横向偏移像素
|
|
6923
|
+
* @property [pixelOffsetY = 0] - 纵向偏移像素
|
|
6924
|
+
* @property [pixelOffset = Cartesian2.ZERO] - 指定像素偏移量。
|
|
6925
|
+
* @property [scaleByDistance = false] - 是否按视距缩放 或 设定基于与相机的距离设置比例。
|
|
6926
|
+
* @property [scaleByDistance_far = 1000000] - 上限
|
|
6927
|
+
* @property [scaleByDistance_farValue = 0.1] - 比例值
|
|
6928
|
+
* @property [scaleByDistance_near = 1000] - 下限
|
|
6929
|
+
* @property [scaleByDistance_nearValue = 1] - 比例值
|
|
6930
|
+
* @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定此框将显示在与摄像机的多大距离。
|
|
6931
|
+
* @property [distanceDisplayCondition_far = 100000] - 最大距离
|
|
6932
|
+
* @property [distanceDisplayCondition_near = 0] - 最小距离
|
|
6933
|
+
* @property [clampToGround = false] - 是否贴地
|
|
6934
|
+
* @property [heightReference = Cesium.HeightReference.NONE] - 指定高度相对于什么的属性。
|
|
6935
|
+
* @property [visibleDepth = true] - 是否被遮挡
|
|
6936
|
+
* @property [disableDepthTestDistance] - 指定从相机到禁用深度测试的距离。
|
|
6937
|
+
* @property [translucencyByDistance] - 用于基于与相机的距离设置半透明度。
|
|
6938
|
+
* @property [setHeight] - 指定坐标高度值(常用于图层中配置),也支持字符串模版配置
|
|
6939
|
+
* @property [addHeight] - 在现有坐标基础上增加的高度值(常用于图层中配置),也支持字符串模版配置
|
|
6940
|
+
*/
|
|
6941
|
+
type StyleOptions = {
|
|
6942
|
+
text?: string;
|
|
6943
|
+
scale?: number;
|
|
6944
|
+
horizontalOrigin?: Cesium.HorizontalOrigin;
|
|
6945
|
+
verticalOrigin?: Cesium.VerticalOrigin;
|
|
6946
|
+
font_family?: string;
|
|
6947
|
+
font_size?: number;
|
|
6948
|
+
font_weight?: string;
|
|
6949
|
+
font_style?: string;
|
|
6950
|
+
font?: string;
|
|
6951
|
+
textBaseline?: string;
|
|
6952
|
+
fill?: boolean;
|
|
6953
|
+
color?: string | Cesium.Color;
|
|
6954
|
+
opacity?: number;
|
|
6955
|
+
stroke?: boolean;
|
|
6956
|
+
strokeColor?: string | Cesium.Color;
|
|
6957
|
+
strokeWidth?: number;
|
|
6958
|
+
outlineColor?: string | Cesium.Color;
|
|
6959
|
+
outlineWidth?: number;
|
|
6960
|
+
background?: boolean;
|
|
6961
|
+
backgroundColor?: string | Cesium.Color;
|
|
6962
|
+
backgroundPadding?: number;
|
|
6963
|
+
hasPixelOffset?: boolean;
|
|
6964
|
+
pixelOffsetX?: number;
|
|
6965
|
+
pixelOffsetY?: number;
|
|
6966
|
+
pixelOffset?: Cesium.Cartesian2 | number[];
|
|
6967
|
+
scaleByDistance?: boolean | Cesium.NearFarScalar;
|
|
6968
|
+
scaleByDistance_far?: number;
|
|
6969
|
+
scaleByDistance_farValue?: number;
|
|
6970
|
+
scaleByDistance_near?: number;
|
|
6971
|
+
scaleByDistance_nearValue?: number;
|
|
6972
|
+
distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition;
|
|
6973
|
+
distanceDisplayCondition_far?: number;
|
|
6974
|
+
distanceDisplayCondition_near?: number;
|
|
6975
|
+
clampToGround?: boolean;
|
|
6976
|
+
heightReference?: Cesium.HeightReference;
|
|
6977
|
+
visibleDepth?: boolean;
|
|
6978
|
+
disableDepthTestDistance?: number;
|
|
6979
|
+
translucencyByDistance?: Cesium.NearFarScalar;
|
|
6980
|
+
setHeight?: number | string;
|
|
6981
|
+
addHeight?: number | string;
|
|
6982
|
+
};
|
|
6983
|
+
}
|
|
6984
|
+
|
|
6985
|
+
/**
|
|
6986
|
+
* Canvas 文本点(label转图片)
|
|
6987
|
+
* @param options - 参数对象,包括以下:
|
|
6988
|
+
* @param options.position - 坐标位置
|
|
6989
|
+
* @param options.style - 样式信息
|
|
6990
|
+
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
6991
|
+
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
6992
|
+
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
6993
|
+
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
6994
|
+
* @param [options.parent] - 要与此实体关联的父实体。
|
|
6995
|
+
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
6996
|
+
* @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。
|
|
6997
|
+
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
6998
|
+
* @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
|
|
6999
|
+
* @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
|
|
7000
|
+
* @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
|
|
7001
|
+
* @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数
|
|
7002
|
+
* @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定
|
|
7003
|
+
* @param [options.id = uuid()] - 矢量数据id标识
|
|
7004
|
+
* @param [options.name = ''] - 矢量数据名称
|
|
7005
|
+
* @param [options.show = true] - 矢量数据是否显示
|
|
7006
|
+
* @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件
|
|
7007
|
+
* @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
|
|
7008
|
+
*/
|
|
7009
|
+
declare class CanvasLabelEntity extends BasePointEntity {
|
|
7010
|
+
constructor(options: {
|
|
7011
|
+
position: LngLatPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string;
|
|
7012
|
+
style: CanvasLabelEntity.StyleOptions;
|
|
7013
|
+
attr?: any;
|
|
7014
|
+
availability?: Cesium.TimeIntervalCollection;
|
|
7015
|
+
description?: Cesium.Property | string;
|
|
7016
|
+
viewFrom?: Cesium.Property;
|
|
7017
|
+
parent?: Cesium.Entity;
|
|
7018
|
+
onBeforeCreate?: (...params: any[]) => any;
|
|
7019
|
+
drawShow?: boolean;
|
|
7020
|
+
addHeight?: number;
|
|
7021
|
+
popup?: string | any[] | ((...params: any[]) => any);
|
|
7022
|
+
popupOptions?: Popup.StyleOptions;
|
|
7023
|
+
tooltip?: string | any[] | ((...params: any[]) => any);
|
|
7024
|
+
tooltipOptions?: Tooltip.StyleOptions;
|
|
7025
|
+
contextmenuItems?: any;
|
|
7026
|
+
id?: string | number;
|
|
7027
|
+
name?: string;
|
|
7028
|
+
show?: boolean;
|
|
7029
|
+
eventParent?: BaseClass | boolean;
|
|
7030
|
+
allowDrillPick?: boolean | ((...params: any[]) => any);
|
|
7031
|
+
});
|
|
7032
|
+
/**
|
|
7033
|
+
* 通过标绘 来创建矢量对象
|
|
7034
|
+
* @param layer - 图层
|
|
7035
|
+
* @param options - 矢量对象的构造参数
|
|
7036
|
+
* @returns 矢量对象
|
|
7037
|
+
*/
|
|
7038
|
+
static fromDraw(layer: GraphicLayer, options: any): CanvasLabelEntity;
|
|
7039
|
+
}
|
|
7040
|
+
|
|
6347
7041
|
declare namespace CircleEntity {
|
|
6348
7042
|
/**
|
|
6349
7043
|
* 圆、圆柱 支持的样式信息
|
|
@@ -7656,7 +8350,7 @@ declare class EllipsoidEntity extends BasePointEntity {
|
|
|
7656
8350
|
declare namespace FontBillboardEntity {
|
|
7657
8351
|
/**
|
|
7658
8352
|
* Font CSS字体点转图片后的图标点 Entity 支持的样式信息
|
|
7659
|
-
* @property [iconClass = "
|
|
8353
|
+
* @property [iconClass = ""] - 字体css样式
|
|
7660
8354
|
* @property [iconSize = 50] - 字体大小
|
|
7661
8355
|
* @property [color = '#ff0000'] - 字体颜色
|
|
7662
8356
|
* @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
|
|
@@ -8453,7 +9147,7 @@ declare namespace PlaneEntity {
|
|
|
8453
9147
|
dimensions_x?: number;
|
|
8454
9148
|
dimensions_y?: number;
|
|
8455
9149
|
plane?: Cesium.Plane;
|
|
8456
|
-
plane_normal?: string;
|
|
9150
|
+
plane_normal?: string | Cesium.Cartesian3;
|
|
8457
9151
|
plane_distance?: number;
|
|
8458
9152
|
heading?: number;
|
|
8459
9153
|
pitch?: number;
|
|
@@ -8871,7 +9565,7 @@ declare class PolygonEntity extends BasePolyEntity {
|
|
|
8871
9565
|
* 按Cesium.CallbackProperty的方式 更新坐标集合(更加平滑)
|
|
8872
9566
|
* @param positions - 坐标数组
|
|
8873
9567
|
*/
|
|
8874
|
-
setCallbackPositions(positions:
|
|
9568
|
+
setCallbackPositions(positions: string[] | any[][] | LngLatPoint[]): void;
|
|
8875
9569
|
}
|
|
8876
9570
|
|
|
8877
9571
|
declare namespace PolylineEntity {
|
|
@@ -10728,6 +11422,8 @@ declare class StraightArrow extends PolygonEntity {
|
|
|
10728
11422
|
* @param options.style - 样式信息
|
|
10729
11423
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
10730
11424
|
* @param [options.label] - 测量结果文本的样式
|
|
11425
|
+
* @param [options.angleDecimal = 1] - 显示的 角度值 文本中保留的小数位
|
|
11426
|
+
* @param [options.decimal = 2] - 显示的 距离值 文本中保留的小数位
|
|
10731
11427
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
10732
11428
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
10733
11429
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -10756,6 +11452,8 @@ declare class AngleMeasure extends PolylineEntity {
|
|
|
10756
11452
|
style: PolylineEntity.StyleOptions;
|
|
10757
11453
|
attr?: any;
|
|
10758
11454
|
label?: LabelEntity.StyleOptions;
|
|
11455
|
+
angleDecimal?: number;
|
|
11456
|
+
decimal?: number;
|
|
10759
11457
|
availability?: Cesium.TimeIntervalCollection;
|
|
10760
11458
|
description?: Cesium.Property | string;
|
|
10761
11459
|
viewFrom?: Cesium.Property;
|
|
@@ -10805,6 +11503,7 @@ declare class AngleMeasure extends PolylineEntity {
|
|
|
10805
11503
|
* @param options.style - 样式信息
|
|
10806
11504
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
10807
11505
|
* @param [options.label] - 测量结果文本的样式
|
|
11506
|
+
* @param [options.decimal = 2] - 显示的 面积值 文本中保留的小数位
|
|
10808
11507
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
10809
11508
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
10810
11509
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -10833,6 +11532,7 @@ declare class AreaMeasure extends PolygonEntity {
|
|
|
10833
11532
|
style: PolygonEntity.StyleOptions;
|
|
10834
11533
|
attr?: any;
|
|
10835
11534
|
label?: LabelEntity.StyleOptions;
|
|
11535
|
+
decimal?: number;
|
|
10836
11536
|
availability?: Cesium.TimeIntervalCollection;
|
|
10837
11537
|
description?: Cesium.Property | string;
|
|
10838
11538
|
viewFrom?: Cesium.Property;
|
|
@@ -10888,6 +11588,7 @@ declare class AreaMeasure extends PolygonEntity {
|
|
|
10888
11588
|
* @param options.style - 样式信息
|
|
10889
11589
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
10890
11590
|
* @param [options.label] - 测量结果文本的样式
|
|
11591
|
+
* @param [options.decimal = 2] - 显示的 面积值 文本中保留的小数位
|
|
10891
11592
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
10892
11593
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
10893
11594
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -10916,6 +11617,7 @@ declare class AreaSurfaceMeasure extends AreaMeasure {
|
|
|
10916
11617
|
style: PolygonEntity.StyleOptions;
|
|
10917
11618
|
attr?: any;
|
|
10918
11619
|
label?: LabelEntity.StyleOptions;
|
|
11620
|
+
decimal?: number;
|
|
10919
11621
|
availability?: Cesium.TimeIntervalCollection;
|
|
10920
11622
|
description?: Cesium.Property | string;
|
|
10921
11623
|
viewFrom?: Cesium.Property;
|
|
@@ -10955,6 +11657,7 @@ declare class AreaSurfaceMeasure extends AreaMeasure {
|
|
|
10955
11657
|
* @param options.style - 样式信息
|
|
10956
11658
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
10957
11659
|
* @param [options.label] - 测量结果文本的样式
|
|
11660
|
+
* @param [options.decimal = 2] - 显示的 距离值 文本中保留的小数位
|
|
10958
11661
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
10959
11662
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
10960
11663
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -10983,6 +11686,7 @@ declare class DistanceMeasure extends PolylineEntity {
|
|
|
10983
11686
|
style: PolylineEntity.StyleOptions;
|
|
10984
11687
|
attr?: any;
|
|
10985
11688
|
label?: LabelEntity.StyleOptions;
|
|
11689
|
+
decimal?: number;
|
|
10986
11690
|
availability?: Cesium.TimeIntervalCollection;
|
|
10987
11691
|
description?: Cesium.Property | string;
|
|
10988
11692
|
viewFrom?: Cesium.Property;
|
|
@@ -11032,6 +11736,7 @@ declare class DistanceMeasure extends PolylineEntity {
|
|
|
11032
11736
|
* @param options.style - 样式信息
|
|
11033
11737
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
11034
11738
|
* @param [options.label] - 测量结果文本的样式
|
|
11739
|
+
* @param [options.decimal = 2] - 显示的 距离值 文本中保留的小数位
|
|
11035
11740
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
11036
11741
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
11037
11742
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -11060,6 +11765,7 @@ declare class DistanceSurfaceMeasure extends DistanceMeasure {
|
|
|
11060
11765
|
style: PolylineEntity.StyleOptions;
|
|
11061
11766
|
attr?: any;
|
|
11062
11767
|
label?: LabelEntity.StyleOptions;
|
|
11768
|
+
decimal?: number;
|
|
11063
11769
|
availability?: Cesium.TimeIntervalCollection;
|
|
11064
11770
|
description?: Cesium.Property | string;
|
|
11065
11771
|
viewFrom?: Cesium.Property;
|
|
@@ -11099,6 +11805,7 @@ declare class DistanceSurfaceMeasure extends DistanceMeasure {
|
|
|
11099
11805
|
* @param options.style - 样式信息
|
|
11100
11806
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
11101
11807
|
* @param [options.label] - 测量结果文本的样式
|
|
11808
|
+
* @param [options.decimal = 2] - 显示的 距离和高度值 文本中保留的小数位
|
|
11102
11809
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
11103
11810
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
11104
11811
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -11127,6 +11834,7 @@ declare class HeightMeasure extends PolylineEntity {
|
|
|
11127
11834
|
style: PolylineEntity.StyleOptions;
|
|
11128
11835
|
attr?: any;
|
|
11129
11836
|
label?: LabelEntity.StyleOptions;
|
|
11837
|
+
decimal?: number;
|
|
11130
11838
|
availability?: Cesium.TimeIntervalCollection;
|
|
11131
11839
|
description?: Cesium.Property | string;
|
|
11132
11840
|
viewFrom?: Cesium.Property;
|
|
@@ -11176,6 +11884,7 @@ declare class HeightMeasure extends PolylineEntity {
|
|
|
11176
11884
|
* @param options.style - 样式信息
|
|
11177
11885
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
11178
11886
|
* @param [options.label] - 测量结果文本的样式
|
|
11887
|
+
* @param [options.decimal = 2] - 显示的 距离和高度值 文本中保留的小数位
|
|
11179
11888
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
11180
11889
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
11181
11890
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -11204,6 +11913,7 @@ declare class HeightTriangleMeasure extends HeightMeasure {
|
|
|
11204
11913
|
style: PolylineEntity.StyleOptions;
|
|
11205
11914
|
attr?: any;
|
|
11206
11915
|
label?: LabelEntity.StyleOptions;
|
|
11916
|
+
decimal?: number;
|
|
11207
11917
|
availability?: Cesium.TimeIntervalCollection;
|
|
11208
11918
|
description?: Cesium.Property | string;
|
|
11209
11919
|
viewFrom?: Cesium.Property;
|
|
@@ -11306,6 +12016,7 @@ declare class PointMeasure extends PointEntity {
|
|
|
11306
12016
|
* @param options.style - 样式信息
|
|
11307
12017
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
11308
12018
|
* @param [options.label] - 测量结果文本的样式
|
|
12019
|
+
* @param [options.decimal = 2] - 显示的 距离值 文本中保留的小数位
|
|
11309
12020
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
11310
12021
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
11311
12022
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -11334,6 +12045,7 @@ declare class SectionMeasure extends DistanceMeasure {
|
|
|
11334
12045
|
style: PolylineEntity.StyleOptions;
|
|
11335
12046
|
attr?: any;
|
|
11336
12047
|
label?: LabelEntity.StyleOptions;
|
|
12048
|
+
decimal?: number;
|
|
11337
12049
|
availability?: Cesium.TimeIntervalCollection;
|
|
11338
12050
|
description?: Cesium.Property | string;
|
|
11339
12051
|
viewFrom?: Cesium.Property;
|
|
@@ -11385,6 +12097,7 @@ declare class SectionMeasure extends DistanceMeasure {
|
|
|
11385
12097
|
* @param [options.heightLabel = true] - 是否显示各边界点高度值文本
|
|
11386
12098
|
* @param [options.offsetLabel = false] - 是否显示各边界点高度差文本
|
|
11387
12099
|
* @param [options.labelHeight] - 各边界点高度结果文本的样式
|
|
12100
|
+
* @param [options.decimal = 2] - 显示的 数值 文本中保留的小数位
|
|
11388
12101
|
* @param [options.has3dtiles] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
11389
12102
|
* @param [options.id = uuid()] - 矢量数据id标识
|
|
11390
12103
|
* @param [options.name = ''] - 矢量数据名称
|
|
@@ -11407,6 +12120,7 @@ declare class VolumeMeasure extends AreaMeasure {
|
|
|
11407
12120
|
heightLabel?: boolean;
|
|
11408
12121
|
offsetLabel?: boolean;
|
|
11409
12122
|
labelHeight?: LabelEntity.StyleOptions;
|
|
12123
|
+
decimal?: number;
|
|
11410
12124
|
has3dtiles?: boolean;
|
|
11411
12125
|
id?: string | number;
|
|
11412
12126
|
name?: string;
|
|
@@ -13393,6 +14107,7 @@ declare namespace ModelPrimitive {
|
|
|
13393
14107
|
* @property [heading = 0] - 方向角 (度数值,0-360度)
|
|
13394
14108
|
* @property [pitch = 0] - 俯仰角(度数值,0-360度)
|
|
13395
14109
|
* @property [roll = 0] - 翻滚角(度数值,0-360度)
|
|
14110
|
+
* @property [noPitchRoll] - 当addDynamicPosition时,设置为true时,可以设置模型只动态更改方向,内部固定模型的Pitch和Roll方向值为0
|
|
13396
14111
|
* @property [minimumPixelSize = 0.0] - 指定模型的近似最小像素大小,而不考虑缩放。
|
|
13397
14112
|
* @property [maximumScale] - 模型的最大比例尺寸。minimumPixelSize的上限。
|
|
13398
14113
|
* @property [fill = false] - 是否填充,指定与模型渲染颜色混合
|
|
@@ -13441,9 +14156,6 @@ declare namespace ModelPrimitive {
|
|
|
13441
14156
|
* @property [addHeight] - 在现有坐标基础上增加的高度值(常用于图层中配置),也支持字符串模版配置
|
|
13442
14157
|
* @property [highlight] - 鼠标移入或单击(type:'click')后的对应高亮的部分样式,创建Graphic后也可以openHighlight、closeHighlight方法来手动调用
|
|
13443
14158
|
* @property [label] - 支持附带文字的显示
|
|
13444
|
-
* @param [options.maxCacheCount = 50] - 当使用addDynamicPosition设置为动画轨迹位置时,保留的坐标点数量
|
|
13445
|
-
* @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.NONE] - 当使用addDynamicPosition设置为动画轨迹位置时,在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。
|
|
13446
|
-
* @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.NONE] - 当使用addDynamicPosition设置为动画轨迹位置时, 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。
|
|
13447
14159
|
*/
|
|
13448
14160
|
type StyleOptions = {
|
|
13449
14161
|
url?: string | Cesium.Resource;
|
|
@@ -13454,6 +14166,7 @@ declare namespace ModelPrimitive {
|
|
|
13454
14166
|
heading?: number;
|
|
13455
14167
|
pitch?: number;
|
|
13456
14168
|
roll?: number;
|
|
14169
|
+
noPitchRoll?: boolean;
|
|
13457
14170
|
minimumPixelSize?: number;
|
|
13458
14171
|
maximumScale?: number;
|
|
13459
14172
|
fill?: boolean;
|
|
@@ -13747,7 +14460,7 @@ declare namespace PlanePrimitive {
|
|
|
13747
14460
|
dimensions?: Cesium.Cartesian2;
|
|
13748
14461
|
dimensions_x?: number;
|
|
13749
14462
|
dimensions_y?: number;
|
|
13750
|
-
plane_normal?: string;
|
|
14463
|
+
plane_normal?: string | Cesium.Cartesian3;
|
|
13751
14464
|
heading?: number;
|
|
13752
14465
|
pitch?: number;
|
|
13753
14466
|
roll?: number;
|
|
@@ -15013,7 +15726,7 @@ declare class BaseRoamLine extends BaseGraphic {
|
|
|
15013
15726
|
*/
|
|
15014
15727
|
readonly groundPosition: Cesium.Cartesian3;
|
|
15015
15728
|
/**
|
|
15016
|
-
*
|
|
15729
|
+
* 倍速,构造完成的对象,可以调用此属性调整速度。
|
|
15017
15730
|
*/
|
|
15018
15731
|
multiplier: number;
|
|
15019
15732
|
/**
|
|
@@ -15866,7 +16579,7 @@ declare class BaseGraphicLayer extends BaseLayer {
|
|
|
15866
16579
|
* graphicLayer.bindContextMenu([
|
|
15867
16580
|
* {
|
|
15868
16581
|
* text: '删除对象',
|
|
15869
|
-
*
|
|
16582
|
+
* icon: 'fa fa-trash-o',
|
|
15870
16583
|
* callback: function (e) {
|
|
15871
16584
|
* let graphic = e.graphic
|
|
15872
16585
|
* if (graphic) {
|
|
@@ -15876,7 +16589,7 @@ declare class BaseGraphicLayer extends BaseLayer {
|
|
|
15876
16589
|
* },
|
|
15877
16590
|
* {
|
|
15878
16591
|
* text: '计算长度',
|
|
15879
|
-
*
|
|
16592
|
+
* icon: 'fa fa-medium',
|
|
15880
16593
|
* show: function (e) {
|
|
15881
16594
|
* let graphic = e.graphic
|
|
15882
16595
|
* return graphic.type === 'polyline'
|
|
@@ -15890,7 +16603,7 @@ declare class BaseGraphicLayer extends BaseLayer {
|
|
|
15890
16603
|
* ])
|
|
15891
16604
|
* @param content - 右键菜单配置数组,数组中每一项包括:
|
|
15892
16605
|
* @param [content.text] - 菜单文字
|
|
15893
|
-
* @param [content.
|
|
16606
|
+
* @param [content.icon] - 图标,可以是:图片url路径、base64字符串、svg字符串、字体图标class名
|
|
15894
16607
|
* @param [content.show] - 菜单项是否显示的回调方法
|
|
15895
16608
|
* @param [content.callback] - 菜单项单击后的回调方法
|
|
15896
16609
|
* @param [content.children] - 当有二级子菜单时,配置数组。
|
|
@@ -15901,7 +16614,7 @@ declare class BaseGraphicLayer extends BaseLayer {
|
|
|
15901
16614
|
*/
|
|
15902
16615
|
bindContextMenu(content: {
|
|
15903
16616
|
text?: string;
|
|
15904
|
-
|
|
16617
|
+
icon?: string;
|
|
15905
16618
|
show?: ((...params: any[]) => any) | boolean;
|
|
15906
16619
|
callback?: (...params: any[]) => any;
|
|
15907
16620
|
children?: any;
|
|
@@ -18406,8 +19119,12 @@ declare namespace TilesetLayer {
|
|
|
18406
19119
|
* 3dtiles 三维模型图层。
|
|
18407
19120
|
* @param options - 参数对象, 构造参数建议从{@link http://mars3d.cn/editor.html?id=layer-tileset/manager/edit|模型编辑页面}设置后保存参数后拷贝json参数即可。参数包括以下:
|
|
18408
19121
|
* @param options.url - tileset的主JSON文件的 url
|
|
18409
|
-
* @param [options.maximumScreenSpaceError = 16] -
|
|
18410
|
-
* @param [options.maximumMemoryUsage = 512] - 数据集可以使用的最大内存量(以MB计)
|
|
19122
|
+
* @param [options.maximumScreenSpaceError = 16] - 用于驱动细化细节级别的最大屏幕空间错误。可以简单理解为:数值加大,能让最终成像变模糊。
|
|
19123
|
+
* @param [options.maximumMemoryUsage = 512] - 数据集可以使用的最大内存量(以MB计),这个参数要根据当前客户端显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50% 左右,比如我的显存是4G,这个可以设置到2048左右。那么既保证不超过显存限制,又可以最大利用显存缓存。<br />
|
|
19124
|
+
* 解释:
|
|
19125
|
+
* 这个参数默认是512,也即是当几何体和纹理资源大于512MB的时候,cesium就会淘汰掉当前帧中没有visited的所有块,这个值其实很小,也是cesium为了避免资源占用过高的一个保障.<br />
|
|
19126
|
+
* 这个值如果设置的过小,导致cesium几乎每帧都在尝试淘汰数据,增加了遍历的时间,也同时增加了崩溃的风险。<br />
|
|
19127
|
+
* 这个值如果设置的过大,cesium的淘汰机制失效,那么容易导致显存超过显卡内存,也会导致崩溃。 这个值应该处于最差视角下资源占用 和 显存最大量之间。<br />
|
|
18411
19128
|
* @param [options.position] - 自定义新的中心点位置(移动模型)
|
|
18412
19129
|
* @param options.position.lng - 经度值, 180 - 180
|
|
18413
19130
|
* @param options.position.lat - 纬度值, -90 - 90
|
|
@@ -18643,6 +19360,10 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
18643
19360
|
* 模型的边界球体。
|
|
18644
19361
|
*/
|
|
18645
19362
|
readonly boundingSphere: Cesium.BoundingSphere;
|
|
19363
|
+
/**
|
|
19364
|
+
* 模型的向上轴,比如Cesium.Axis.Z 或 Cesium.Axis.Y
|
|
19365
|
+
*/
|
|
19366
|
+
readonly upAxis: Cesium.Axis;
|
|
18646
19367
|
/**
|
|
18647
19368
|
* 旋转方向,示例:{ x: 0, y: 0, z: 0 }
|
|
18648
19369
|
*/
|
|
@@ -19015,6 +19736,16 @@ declare class GroupLayer extends BaseGraphicLayer {
|
|
|
19015
19736
|
* 图层顺序,数字大的在上面。(当hasZIndex为true时)
|
|
19016
19737
|
*/
|
|
19017
19738
|
zIndex: number;
|
|
19739
|
+
/**
|
|
19740
|
+
* 添加所有子图层到map上
|
|
19741
|
+
* @returns 当前对象本身,可以链式调用
|
|
19742
|
+
*/
|
|
19743
|
+
addChildsToMap(): GroupLayer;
|
|
19744
|
+
/**
|
|
19745
|
+
* 将所有子图层从map中移除
|
|
19746
|
+
* @returns 当前对象本身,可以链式调用
|
|
19747
|
+
*/
|
|
19748
|
+
removeMapChilds(): GroupLayer;
|
|
19018
19749
|
/**
|
|
19019
19750
|
* 添加子图层,并绑定关联关系。
|
|
19020
19751
|
* @param childlayer - 子图层对象
|
|
@@ -19043,7 +19774,7 @@ declare class GroupLayer extends BaseGraphicLayer {
|
|
|
19043
19774
|
* 获取地图所有的子图层对象(包括pid和id关联的图层)
|
|
19044
19775
|
* @returns 所有子图层对象
|
|
19045
19776
|
*/
|
|
19046
|
-
|
|
19777
|
+
getInMapChilds(): BaseLayer[] | GraphicLayer[];
|
|
19047
19778
|
/**
|
|
19048
19779
|
* 根据ID或取图层
|
|
19049
19780
|
* @param id - 图层id或uuid
|
|
@@ -19293,7 +20024,7 @@ declare namespace ArcGisLayer {
|
|
|
19293
20024
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
19294
20025
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
19295
20026
|
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
19296
|
-
* @param [options.crs = CRS.
|
|
20027
|
+
* @param [options.crs = CRS.EPSG4326] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
19297
20028
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
19298
20029
|
* @param [options.enablePickFeatures = true] - 如果为true,则请求 单击坐标处服务中对应的矢量数据 并尝试解释响应中包含的功能。为false时不去服务请求。
|
|
19299
20030
|
* @param [options.graphicConver] - 单击获取到的数据进行按需筛选解析,大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿,number类型时代表字符串长度值。
|
|
@@ -19411,6 +20142,10 @@ declare class ArcGisLayer extends BaseTileLayer {
|
|
|
19411
20142
|
};
|
|
19412
20143
|
flyTo?: boolean;
|
|
19413
20144
|
});
|
|
20145
|
+
/**
|
|
20146
|
+
* 坐标系
|
|
20147
|
+
*/
|
|
20148
|
+
readonly crs: CRS | string;
|
|
19414
20149
|
/**
|
|
19415
20150
|
* 是否存在Popup绑定
|
|
19416
20151
|
* @returns 是否存在Popup绑定
|
|
@@ -19445,6 +20180,12 @@ declare class ArcGisLayer extends BaseTileLayer {
|
|
|
19445
20180
|
* @returns 创建完成的 ImageryProvider 对象
|
|
19446
20181
|
*/
|
|
19447
20182
|
_createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any;
|
|
20183
|
+
/**
|
|
20184
|
+
* 对象添加到地图上的创建钩子方法,
|
|
20185
|
+
* 每次add时都会调用
|
|
20186
|
+
* @returns 无
|
|
20187
|
+
*/
|
|
20188
|
+
_addedHook(): void;
|
|
19448
20189
|
}
|
|
19449
20190
|
|
|
19450
20191
|
/**
|
|
@@ -19885,6 +20626,10 @@ declare class BaseTileLayer extends BaseLayer {
|
|
|
19885
20626
|
* 瓦片图层对应的内部ImageryProvider对象
|
|
19886
20627
|
*/
|
|
19887
20628
|
readonly imageryProvider: Cesium.ImageryProvider;
|
|
20629
|
+
/**
|
|
20630
|
+
* 坐标系
|
|
20631
|
+
*/
|
|
20632
|
+
readonly crs: CRS | string;
|
|
19888
20633
|
/**
|
|
19889
20634
|
* 透明度,同opacity。从0.0到1.0。
|
|
19890
20635
|
*/
|
|
@@ -21288,6 +22033,7 @@ declare class OsmLayer extends BaseTileLayer {
|
|
|
21288
22033
|
* <li><code>ter_z</code>: 地形渲染图注记</li>
|
|
21289
22034
|
* </ul>
|
|
21290
22035
|
* @param [options.key = mars3d.Token.tiandituArr] - 天地图服务Token,可以自行注册官网: {@link https://console.tianditu.gov.cn/api/key}
|
|
22036
|
+
* @param [options.url] - 服务URL地址,同xyz服务
|
|
21291
22037
|
* @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。
|
|
21292
22038
|
* @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。
|
|
21293
22039
|
* @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。
|
|
@@ -21343,6 +22089,7 @@ declare class TdtLayer extends BaseTileLayer {
|
|
|
21343
22089
|
constructor(options?: {
|
|
21344
22090
|
layer?: string;
|
|
21345
22091
|
key?: string[];
|
|
22092
|
+
url?: string;
|
|
21346
22093
|
minimumLevel?: number;
|
|
21347
22094
|
maximumLevel?: number;
|
|
21348
22095
|
minimumTerrainLevel?: number;
|
|
@@ -22454,7 +23201,7 @@ declare namespace Map {
|
|
|
22454
23201
|
* @property extent.ymin - 最小纬度值, -90 至 90
|
|
22455
23202
|
* @property extent.ymax - 最大纬度值, -90 至 90
|
|
22456
23203
|
* @property [removeDblClick = false] - 是否移除Cesium默认的双击事件
|
|
22457
|
-
* @property [ionToken
|
|
23204
|
+
* @property [ionToken] - Cesium Ion服务的 Token令牌
|
|
22458
23205
|
* @property [resolutionScale = 1.0] - 获取或设置渲染分辨率的缩放比例。小于1.0的值可以改善性能不佳的设备上的性能,而值大于1.0则将以更高的速度呈现分辨率,然后缩小比例,从而提高视觉保真度。例如,如果窗口小部件的尺寸为640x480,则将此值设置为0.5将导致场景以320x240渲染,然后在设置时按比例放大设置为2.0将导致场景以1280x960渲染,然后按比例缩小。
|
|
22459
23206
|
*
|
|
22460
23207
|
* 以下是Cesium.Scene对象相关参数
|
|
@@ -22603,9 +23350,11 @@ declare namespace Map {
|
|
|
22603
23350
|
* @property [infoBox = true] - 是否显示 点击要素之后显示的信息
|
|
22604
23351
|
* @property [selectionIndicator = true] - 选择模型时,是否显示绿色框
|
|
22605
23352
|
* @property [animation = true] - 是否创建 左下角仪表动画面板
|
|
23353
|
+
* @property [animationTicks] - 左下角仪表动画面板 的可选步长
|
|
22606
23354
|
* @property [timeline = true] - 是否创建 下侧时间线控件面板
|
|
22607
23355
|
* @property [baseLayerPicker = true] - 是否显示 basemaps底图切换按钮
|
|
22608
23356
|
* @property [fullscreenButton = true] - 是否显示 全屏按钮
|
|
23357
|
+
* @property [fullscreenElement = document.body] - 当按下全屏按钮时,要置于全屏模式的元素或id。
|
|
22609
23358
|
* @property [vrButton = false] - 是否显示 右下角vr虚拟现实按钮
|
|
22610
23359
|
* @property [geocoder = true] - 是否显示 地名查找控件按钮
|
|
22611
23360
|
* @property [homeButton = true] - 是否显示 视角复位按钮
|
|
@@ -22631,9 +23380,11 @@ declare namespace Map {
|
|
|
22631
23380
|
infoBox?: boolean;
|
|
22632
23381
|
selectionIndicator?: boolean;
|
|
22633
23382
|
animation?: boolean;
|
|
23383
|
+
animationTicks?: number[];
|
|
22634
23384
|
timeline?: boolean;
|
|
22635
23385
|
baseLayerPicker?: boolean;
|
|
22636
23386
|
fullscreenButton?: boolean;
|
|
23387
|
+
fullscreenElement?: Element | string;
|
|
22637
23388
|
vrButton?: boolean;
|
|
22638
23389
|
geocoder?: boolean | Cesium.GeocoderService[];
|
|
22639
23390
|
homeButton?: boolean;
|
|
@@ -22740,6 +23491,23 @@ declare namespace Map {
|
|
|
22740
23491
|
tooltipOptions?: Tooltip.StyleOptions;
|
|
22741
23492
|
多个参数?: any;
|
|
22742
23493
|
};
|
|
23494
|
+
/**
|
|
23495
|
+
* 覆盖SDK内的{@link Token}所有第3方Token默认值
|
|
23496
|
+
* @property [tianditu] - 天地图
|
|
23497
|
+
* @property [gaode] - 高德
|
|
23498
|
+
* @property [baidu] - 百度
|
|
23499
|
+
* @property [ion] - Ion服务
|
|
23500
|
+
* @property [mapbox] - mapbox地图
|
|
23501
|
+
* @property [bing] - 微软Bing地图
|
|
23502
|
+
*/
|
|
23503
|
+
type tokenOptions = {
|
|
23504
|
+
tianditu?: string | string[];
|
|
23505
|
+
gaode?: string | string[];
|
|
23506
|
+
baidu?: string | string[];
|
|
23507
|
+
ion?: string;
|
|
23508
|
+
mapbox?: string;
|
|
23509
|
+
bing?: string;
|
|
23510
|
+
};
|
|
22743
23511
|
/**
|
|
22744
23512
|
* Map支持的{@link EventType}事件类型
|
|
22745
23513
|
* @example
|
|
@@ -22860,6 +23628,7 @@ declare namespace Map {
|
|
|
22860
23628
|
* @param [options.chinaCRS = ChinaCRS.WGS84] - 标识当前三维场景的国内坐标系(用于部分图层内对比判断来自动纠偏或加偏)
|
|
22861
23629
|
* @param [options.lang] - 使用的语言(如中文、英文等)。
|
|
22862
23630
|
* @param [options.templateValues] - 图层中统一的url模版,比如可以将服务url前缀统一使用模板,方便修改或动态配置。
|
|
23631
|
+
* @param [options.token] - 覆盖SDK内的{@link Token}所有第3方Token默认值
|
|
22863
23632
|
*/
|
|
22864
23633
|
declare class Map extends BaseClass {
|
|
22865
23634
|
constructor(id: string | Cesium.Viewer, options?: {
|
|
@@ -22873,6 +23642,7 @@ declare class Map extends BaseClass {
|
|
|
22873
23642
|
chinaCRS?: ChinaCRS;
|
|
22874
23643
|
lang?: LangType;
|
|
22875
23644
|
templateValues?: any;
|
|
23645
|
+
token?: Map.tokenOptions;
|
|
22876
23646
|
});
|
|
22877
23647
|
/**
|
|
22878
23648
|
* 当前类的构造参数
|
|
@@ -23005,7 +23775,7 @@ declare class Map extends BaseClass {
|
|
|
23005
23775
|
*/
|
|
23006
23776
|
getCurrentOptions(): any;
|
|
23007
23777
|
/**
|
|
23008
|
-
*
|
|
23778
|
+
* 获取平台内置的右键菜单,图标可以覆盖 mars3d.Icon.* 值
|
|
23009
23779
|
* @returns 右键菜单
|
|
23010
23780
|
*/
|
|
23011
23781
|
getDefaultContextMenu(): any;
|
|
@@ -23688,7 +24458,7 @@ declare class Map extends BaseClass {
|
|
|
23688
24458
|
* map.bindContextMenu(defaultContextmenuItems)
|
|
23689
24459
|
* @param content - 右键菜单配置数组,数组中每一项包括:
|
|
23690
24460
|
* @param [content.text] - 菜单文字
|
|
23691
|
-
* @param [content.
|
|
24461
|
+
* @param [content.icon] - 图标,可以是:图片url路径、base64字符串、svg字符串、字体图标class名
|
|
23692
24462
|
* @param [content.show] - 菜单项是否显示的回调方法
|
|
23693
24463
|
* @param [content.callback] - 菜单项单击后的回调方法
|
|
23694
24464
|
* @param [content.children] - 当有二级子菜单时,配置数组。
|
|
@@ -23699,7 +24469,7 @@ declare class Map extends BaseClass {
|
|
|
23699
24469
|
*/
|
|
23700
24470
|
bindContextMenu(content: {
|
|
23701
24471
|
text?: string;
|
|
23702
|
-
|
|
24472
|
+
icon?: string;
|
|
23703
24473
|
show?: ((...params: any[]) => any) | boolean;
|
|
23704
24474
|
callback?: (...params: any[]) => any;
|
|
23705
24475
|
children?: any;
|
|
@@ -24208,6 +24978,42 @@ declare class LineTrailMaterialProperty extends BaseMaterialProperty {
|
|
|
24208
24978
|
bgColor: Cesium.Color;
|
|
24209
24979
|
}
|
|
24210
24980
|
|
|
24981
|
+
/**
|
|
24982
|
+
* 面状: 霓虹灯材质
|
|
24983
|
+
* @param [options] - 参数对象,包括以下:
|
|
24984
|
+
* @param [options.color = "#9b08fd"] - 颜色
|
|
24985
|
+
* @param [options.speed = 2] - 速度,值越大越快
|
|
24986
|
+
*/
|
|
24987
|
+
declare class NeonLightMaterialProperty extends BaseMaterialProperty {
|
|
24988
|
+
constructor(options?: {
|
|
24989
|
+
color?: string | Cesium.Color;
|
|
24990
|
+
speed?: number;
|
|
24991
|
+
});
|
|
24992
|
+
/**
|
|
24993
|
+
* 获取 材质名称
|
|
24994
|
+
* @param [time] - 检索值的时间。
|
|
24995
|
+
* @returns 材质名称
|
|
24996
|
+
*/
|
|
24997
|
+
getType(time?: Cesium.JulianDate): string;
|
|
24998
|
+
/**
|
|
24999
|
+
* 获取所提供时间的属性值。
|
|
25000
|
+
* @param [time] - 检索值的时间。
|
|
25001
|
+
* @param [result] - 用于存储值的对象,如果省略,则创建并返回一个新的实例。
|
|
25002
|
+
* @returns 修改的result参数或一个新的实例(如果没有提供result参数)。
|
|
25003
|
+
*/
|
|
25004
|
+
getValue(time?: Cesium.JulianDate, result?: any): any;
|
|
25005
|
+
/**
|
|
25006
|
+
* 将此属性与提供的属性进行比较并返回, 如果两者相等返回true,否则为false
|
|
25007
|
+
* @param [other] - 比较的对象
|
|
25008
|
+
* @returns 两者是同一个对象
|
|
25009
|
+
*/
|
|
25010
|
+
equals(other?: Cesium.Property): boolean;
|
|
25011
|
+
/**
|
|
25012
|
+
* 颜色
|
|
25013
|
+
*/
|
|
25014
|
+
color: Cesium.Color;
|
|
25015
|
+
}
|
|
25016
|
+
|
|
24211
25017
|
/**
|
|
24212
25018
|
* 线状 OD线效果 材质
|
|
24213
25019
|
* @param [options] - 参数对象,包括以下:
|
|
@@ -24777,6 +25583,31 @@ declare class EchartsLayer extends BaseLayer {
|
|
|
24777
25583
|
getRectangle(options?: {
|
|
24778
25584
|
isFormat?: boolean;
|
|
24779
25585
|
}): Cesium.Rectangle | any;
|
|
25586
|
+
/**
|
|
25587
|
+
* 绑定事件处理函数,
|
|
25588
|
+
* @param eventName - 事件名称,全小写,例如'click','mousemove', 'legendselected' ,可以参考[echarts官网说明]{@link https://echarts.apache.org/zh/api.html#echartsInstance.on}
|
|
25589
|
+
* @param callback - 绑定的监听器回调方法
|
|
25590
|
+
* @param [context] - 侦听器的上下文(this关键字将指向的对象)。
|
|
25591
|
+
* @returns 当前对象本身,可以链式调用
|
|
25592
|
+
*/
|
|
25593
|
+
on(eventName: string, callback: (...params: any[]) => any, context?: any): EchartsLayer;
|
|
25594
|
+
/**
|
|
25595
|
+
* 带条件的绑定事件处理函数
|
|
25596
|
+
* @param eventName - 事件名称,全小写,例如'click','mousemove', 'legendselected'
|
|
25597
|
+
* @param query - 可选的过滤条件,能够只在指定的组件或者元素上进行响应。可以参考[echarts官网说明]{@link https://echarts.apache.org/zh/api.html#echartsInstance.on}
|
|
25598
|
+
* @param callback - 绑定的监听器回调方法
|
|
25599
|
+
* @param [context] - 侦听器的上下文(this关键字将指向的对象)
|
|
25600
|
+
* @returns 当前对象本身,可以链式调用
|
|
25601
|
+
*/
|
|
25602
|
+
onByQuery(eventName: string, query: string | any, callback: (...params: any[]) => any, context?: any): EchartsLayer;
|
|
25603
|
+
/**
|
|
25604
|
+
* 解除绑定指定类型事件监听器
|
|
25605
|
+
* @param eventName - 事件名称,全小写,例如'click','mousemove', 'legendselected'
|
|
25606
|
+
* @param [callback] - 绑定的监听器回调方法,未传值时解绑所有指定类型对应事件
|
|
25607
|
+
* @param [context] - 侦听器的上下文(this关键字将指向的对象)。
|
|
25608
|
+
* @returns 当前对象本身,可以链式调用
|
|
25609
|
+
*/
|
|
25610
|
+
off(eventName: string, callback?: (...params: any[]) => any, context?: any): EchartsLayer;
|
|
24780
25611
|
}
|
|
24781
25612
|
|
|
24782
25613
|
/**
|
|
@@ -24906,7 +25737,6 @@ declare class HeatLayer extends BaseLayer {
|
|
|
24906
25737
|
* @param [options.depthTest = true] - 是否进行计算深度判断,在地球背面或被遮挡时不显示(大数据时,需要关闭)
|
|
24907
25738
|
* @param [options.fixedHeight = 0] - 点的固定的海拔高度
|
|
24908
25739
|
* @param [options.clampToGround = false] - 点是否贴地
|
|
24909
|
-
* @param [options.pointerEvents = false] - 图层是否可以进行鼠标交互,为false时可以穿透操作及缩放地图
|
|
24910
25740
|
* @param [options.多个参数] - 支持mapv本身所有drawOptions图层样式参数,具体查阅 [mapv库drawOptions文档]{@link https://github.com/huiyan-fe/mapv/wiki/%E7%B1%BB%E5%8F%82%E8%80%83} ,也可以 [在线编辑图层样式]{@link https://mapv.baidu.com/editor/}
|
|
24911
25741
|
* @param [options.id = uuid()] - 图层id标识
|
|
24912
25742
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
@@ -24929,7 +25759,6 @@ declare class MapVLayer extends BaseLayer {
|
|
|
24929
25759
|
depthTest?: boolean;
|
|
24930
25760
|
fixedHeight?: number;
|
|
24931
25761
|
clampToGround?: boolean;
|
|
24932
|
-
pointerEvents?: boolean;
|
|
24933
25762
|
多个参数?: any;
|
|
24934
25763
|
id?: string | number;
|
|
24935
25764
|
pid?: string | number;
|
|
@@ -24950,10 +25779,6 @@ declare class MapVLayer extends BaseLayer {
|
|
|
24950
25779
|
* 图层对应的Canvas对象
|
|
24951
25780
|
*/
|
|
24952
25781
|
readonly canvas: HTMLCanvasElement;
|
|
24953
|
-
/**
|
|
24954
|
-
* 是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。true时无法缩放地球,但可以使用mapv相关的事件或toolitp等。
|
|
24955
|
-
*/
|
|
24956
|
-
pointerEvents: boolean;
|
|
24957
25782
|
/**
|
|
24958
25783
|
* 新增mapv数据
|
|
24959
25784
|
* @param dataSet - mapv.DataSet数据集,可以参考[ MapV数据集对象说明]{@link https://github.com/huiyan-fe/mapv/blob/master/src/data/DataSet.md}
|
|
@@ -25001,6 +25826,21 @@ declare class MapVLayer extends BaseLayer {
|
|
|
25001
25826
|
getRectangle(options?: {
|
|
25002
25827
|
isFormat?: boolean;
|
|
25003
25828
|
}): Cesium.Rectangle | any;
|
|
25829
|
+
/**
|
|
25830
|
+
* 绑定事件处理函数,
|
|
25831
|
+
* @param eventName - 事件名称,全小写,例如'click','mouseMove'
|
|
25832
|
+
* @param callback - 绑定的监听器回调方法
|
|
25833
|
+
* @param [context] - 侦听器的上下文(this关键字将指向的对象)。
|
|
25834
|
+
* @returns 当前对象本身,可以链式调用
|
|
25835
|
+
*/
|
|
25836
|
+
on(eventName: string, callback: (...params: any[]) => any, context?: any): EchartsLayer;
|
|
25837
|
+
/**
|
|
25838
|
+
* 解除绑定指定类型事件监听器
|
|
25839
|
+
* @param eventName - 事件名称,全小写,例如'click','mouseMove'
|
|
25840
|
+
* @param [callback] - 绑定的监听器回调方法,未传值时解绑所有指定类型对应事件
|
|
25841
|
+
* @returns 当前对象本身,可以链式调用
|
|
25842
|
+
*/
|
|
25843
|
+
off(eventName: string, callback?: (...params: any[]) => any): EchartsLayer;
|
|
25004
25844
|
/**
|
|
25005
25845
|
* 从地图上移除,同map.removeThing
|
|
25006
25846
|
* @param [destroy] - 是否调用destroy释放
|
|
@@ -25218,6 +26058,21 @@ declare class Tle {
|
|
|
25218
26058
|
* @returns ECI(地心惯性坐标系)坐标
|
|
25219
26059
|
*/
|
|
25220
26060
|
static ecfToEci(positionEcf: Cesium.Cartesian3, datetime: Date | Cesium.JulianDate | number): Cesium.Cartesian3;
|
|
26061
|
+
/**
|
|
26062
|
+
* 卫星开普勒六根数转换到两行轨道根数
|
|
26063
|
+
* @param startYear - 开始年,比如2017年时传入17
|
|
26064
|
+
* @param startTime - 开始时间,每年1月1日0点为0,后逐渐累积,整数部分为日,小数部分为时分秒
|
|
26065
|
+
* @param six - 轨道六根数,顺序为:
|
|
26066
|
+
* Mean:平均运动(每日绕行圈数)必须小于100,
|
|
26067
|
+
* Eccentricity:离心率(小数,小于1),
|
|
26068
|
+
* Inclination:轨道的交角(deg),不能是负数,
|
|
26069
|
+
* Argument of perigee :近地点角矩(deg),不超过360,
|
|
26070
|
+
* RAAN :升交点赤经(deg),不超过360,
|
|
26071
|
+
* Mean :在轨圈数
|
|
26072
|
+
* @param name - 卫星两位数编号,如01,最多五位数
|
|
26073
|
+
* @returns 两行轨道根数
|
|
26074
|
+
*/
|
|
26075
|
+
static coe2tle(startYear: number, startTime: number, six: number[], name: string): string[];
|
|
25221
26076
|
}
|
|
25222
26077
|
|
|
25223
26078
|
declare namespace Tle {
|
|
@@ -25668,14 +26523,14 @@ declare namespace Satellite {
|
|
|
25668
26523
|
* @param [options.period] - 卫星运行周期(单位:分钟), 未传值时自动在tle2中解析
|
|
25669
26524
|
* @param options.position - 当没有tle时,自定义传入动态坐标位置(含时序的点集合)
|
|
25670
26525
|
* @param [options.orientation] - 当没有tle时,自定义传入实体方向
|
|
25671
|
-
* @param [options.model] - 设置是否显示 gltf卫星模型
|
|
25672
|
-
* @param [options.model.autoHeading
|
|
26526
|
+
* @param [options.model] - 设置是否显示 gltf卫星模型 和对应的样式,属性还包含:<br />
|
|
26527
|
+
* // * @param {Boolean} [options.model.autoHeading=true] heading是否自动为轨道的方向
|
|
25673
26528
|
* @param [options.cone] - 设置是否显示 卫星视锥体 和对应的样式
|
|
25674
26529
|
* @param [options.label] - 设置是否显示 文本 和对应的样式
|
|
25675
26530
|
* @param [options.billboard] - 设置是否显示 图标点 和对应的样式
|
|
25676
26531
|
* @param [options.point] - 设置是否显示 像素点 和对应的样式
|
|
25677
|
-
* @param [options.path] - 设置是否显示 卫星轨迹路线
|
|
25678
|
-
* @param [options.path.closure
|
|
26532
|
+
* @param [options.path] - 设置是否显示 卫星轨迹路线 和对应的样式,属性还包含:<br />
|
|
26533
|
+
* // * @param {Boolean} [options.path.closure=false] 是否闭合轨道圆
|
|
25679
26534
|
* @param [options.shadingLine] - 设置是否显示 星下轨迹 和对应的样式
|
|
25680
26535
|
* @param [options.fixedFrameTransform] - 参考系
|
|
25681
26536
|
* @param [options.frameRate = 50] - 多少帧刷新1次,控制效率,如果卡顿就把该数值调大一些。
|
|
@@ -25690,16 +26545,12 @@ declare class Satellite extends BaseGraphic {
|
|
|
25690
26545
|
period?: number;
|
|
25691
26546
|
position: Cesium.SampledPositionProperty;
|
|
25692
26547
|
orientation?: Cesium.Property;
|
|
25693
|
-
model?:
|
|
25694
|
-
autoHeading?: boolean;
|
|
25695
|
-
};
|
|
26548
|
+
model?: ModelEntity.StyleOptions;
|
|
25696
26549
|
cone?: SatelliteSensor.StyleOptions;
|
|
25697
26550
|
label?: LabelEntity.StyleOptions;
|
|
25698
26551
|
billboard?: BillboardEntity.StyleOptions;
|
|
25699
26552
|
point?: PointEntity.StyleOptions;
|
|
25700
|
-
path?:
|
|
25701
|
-
closure?: boolean;
|
|
25702
|
-
};
|
|
26553
|
+
path?: PolylineEntity.StyleOptions;
|
|
25703
26554
|
shadingLine?: BillboardEntity.StyleOptions;
|
|
25704
26555
|
fixedFrameTransform?: Cesium.Transforms.LocalFrameToFixedFrame;
|
|
25705
26556
|
frameRate?: number;
|
|
@@ -27937,6 +28788,7 @@ declare class Measure extends BaseThing {
|
|
|
27937
28788
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
27938
28789
|
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
27939
28790
|
* @param [options.showAddText = true] - 是否显示每一段的增加部分距离,如(+10.1km)
|
|
28791
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
27940
28792
|
* @returns 绘制创建完成的Promise,返回 长度测量控制类 对象
|
|
27941
28793
|
*/
|
|
27942
28794
|
distance(options?: {
|
|
@@ -27945,6 +28797,7 @@ declare class Measure extends BaseThing {
|
|
|
27945
28797
|
maxPointNum?: number;
|
|
27946
28798
|
addHeight?: number;
|
|
27947
28799
|
showAddText?: boolean;
|
|
28800
|
+
decimal?: number;
|
|
27948
28801
|
}): Promise<DistanceMeasure | any>;
|
|
27949
28802
|
/**
|
|
27950
28803
|
* 测量 贴地长度
|
|
@@ -27956,6 +28809,7 @@ declare class Measure extends BaseThing {
|
|
|
27956
28809
|
* @param [options.showAddText = true] - 是否显示每一段的增加部分距离,如(+10.1km)
|
|
27957
28810
|
* @param [options.splitNum = 100] - 插值数,将线段分割的个数
|
|
27958
28811
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
28812
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
27959
28813
|
* @returns 绘制创建完成的Promise,返回 贴地长度测量控制类 对象
|
|
27960
28814
|
*/
|
|
27961
28815
|
distanceSurface(options?: {
|
|
@@ -27966,6 +28820,7 @@ declare class Measure extends BaseThing {
|
|
|
27966
28820
|
showAddText?: boolean;
|
|
27967
28821
|
splitNum?: number;
|
|
27968
28822
|
has3dtiles?: boolean;
|
|
28823
|
+
decimal?: number;
|
|
27969
28824
|
}): Promise<DistanceSurfaceMeasure | any>;
|
|
27970
28825
|
/**
|
|
27971
28826
|
* 剖面分析,测量线插值点的高程数据
|
|
@@ -27976,6 +28831,7 @@ declare class Measure extends BaseThing {
|
|
|
27976
28831
|
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
27977
28832
|
* @param [options.splitNum = 200] - 插值数,将线段分割的个数
|
|
27978
28833
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
28834
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
27979
28835
|
* @returns 绘制创建完成的Promise,返回 剖面分析控制类矢量对象
|
|
27980
28836
|
*/
|
|
27981
28837
|
section(options?: {
|
|
@@ -27985,17 +28841,20 @@ declare class Measure extends BaseThing {
|
|
|
27985
28841
|
addHeight?: number;
|
|
27986
28842
|
splitNum?: number;
|
|
27987
28843
|
has3dtiles?: boolean;
|
|
28844
|
+
decimal?: number;
|
|
27988
28845
|
}): Promise<SectionMeasure | any>;
|
|
27989
28846
|
/**
|
|
27990
28847
|
* 面积测量(水平面)
|
|
27991
28848
|
* @param [options] - 控制参数
|
|
27992
28849
|
* @param [options.style] - 面的样式
|
|
27993
28850
|
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatArea}可选值:auto、m、km、mu、ha 。auto时根据面积值自动选用k或km
|
|
28851
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
27994
28852
|
* @returns 绘制创建完成的Promise,返回 面积测量控制类 对象
|
|
27995
28853
|
*/
|
|
27996
28854
|
area(options?: {
|
|
27997
28855
|
style?: PolygonEntity.StyleOptions;
|
|
27998
28856
|
unit?: string;
|
|
28857
|
+
decimal?: number;
|
|
27999
28858
|
}): Promise<AreaMeasure | any>;
|
|
28000
28859
|
/**
|
|
28001
28860
|
* 贴地面积测量
|
|
@@ -28004,6 +28863,7 @@ declare class Measure extends BaseThing {
|
|
|
28004
28863
|
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatArea}可选值:auto、m、km、mu、ha 。auto时根据面积值自动选用k或km
|
|
28005
28864
|
* @param [options.splitNum = 10] - 插值数,将面分割的网格数
|
|
28006
28865
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
28866
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
28007
28867
|
* @returns 绘制创建完成的Promise,返回 面积测量控制类 对象
|
|
28008
28868
|
*/
|
|
28009
28869
|
areaSurface(options?: {
|
|
@@ -28011,6 +28871,7 @@ declare class Measure extends BaseThing {
|
|
|
28011
28871
|
unit?: string;
|
|
28012
28872
|
splitNum?: number;
|
|
28013
28873
|
has3dtiles?: boolean;
|
|
28874
|
+
decimal?: number;
|
|
28014
28875
|
}): Promise<AreaSurfaceMeasure | any>;
|
|
28015
28876
|
/**
|
|
28016
28877
|
* 体积测量(方量分析)
|
|
@@ -28027,6 +28888,7 @@ declare class Measure extends BaseThing {
|
|
|
28027
28888
|
* @param [options.showArea = true] - 是否显示横切面积
|
|
28028
28889
|
* @param [options.polygonWall] - 围合的墙样式
|
|
28029
28890
|
* @param [options.labelHeight] - 各边界点高度结果文本的样式
|
|
28891
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
28030
28892
|
* @returns 绘制创建完成的Promise,返回 体积测量控制类 对象
|
|
28031
28893
|
*/
|
|
28032
28894
|
volume(options?: {
|
|
@@ -28042,17 +28904,20 @@ declare class Measure extends BaseThing {
|
|
|
28042
28904
|
showArea?: boolean;
|
|
28043
28905
|
polygonWall?: PolygonEntity.StyleOptions;
|
|
28044
28906
|
labelHeight?: LabelEntity.StyleOptions;
|
|
28907
|
+
decimal?: number;
|
|
28045
28908
|
}): Promise<VolumeMeasure | any>;
|
|
28046
28909
|
/**
|
|
28047
28910
|
* 高度测量
|
|
28048
28911
|
* @param [options] - 控制参数
|
|
28049
28912
|
* @param [options.style] - 路线的样式
|
|
28050
28913
|
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、mile、zhang 。auto时根据距离值自动选用k或km
|
|
28914
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
28051
28915
|
* @returns 绘制创建完成的Promise,返回 高度测量 对象
|
|
28052
28916
|
*/
|
|
28053
28917
|
height(options?: {
|
|
28054
28918
|
style?: PolylineEntity.StyleOptions;
|
|
28055
28919
|
unit?: string;
|
|
28920
|
+
decimal?: number;
|
|
28056
28921
|
}): Promise<HeightMeasure | any>;
|
|
28057
28922
|
/**
|
|
28058
28923
|
* 三角高度测量,
|
|
@@ -28060,20 +28925,26 @@ declare class Measure extends BaseThing {
|
|
|
28060
28925
|
* @param [options] - 控制参数
|
|
28061
28926
|
* @param [options.style] - 路线的样式
|
|
28062
28927
|
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、mile、zhang 。auto时根据距离值自动选用k或km
|
|
28928
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
28063
28929
|
* @returns 绘制创建完成的Promise,返回 三角高度测量控制类 对象
|
|
28064
28930
|
*/
|
|
28065
28931
|
heightTriangle(options?: {
|
|
28066
28932
|
style?: PolylineEntity.StyleOptions;
|
|
28067
28933
|
unit?: string;
|
|
28934
|
+
decimal?: number;
|
|
28068
28935
|
}): Promise<HeightTriangleMeasure | any>;
|
|
28069
28936
|
/**
|
|
28070
28937
|
* 角度测量
|
|
28071
28938
|
* @param [options] - 控制参数
|
|
28072
28939
|
* @param [options.style] - 路线的样式,默认为箭头线
|
|
28940
|
+
* @param [options.angleDecimal = 1] - 显示的 角度值 文本中保留的小数位
|
|
28941
|
+
* @param [options.decimal = 2] - 显示的 距离值 文本中保留的小数位
|
|
28073
28942
|
* @returns 绘制创建完成的Promise,返回 角度测量控制类 对象
|
|
28074
28943
|
*/
|
|
28075
28944
|
angle(options?: {
|
|
28076
28945
|
style?: PolylineEntity.StyleOptions;
|
|
28946
|
+
angleDecimal?: number;
|
|
28947
|
+
decimal?: number;
|
|
28077
28948
|
}): Promise<AngleMeasure | any>;
|
|
28078
28949
|
/**
|
|
28079
28950
|
* 坐标测量
|
|
@@ -29495,7 +30366,7 @@ declare class TilesetFlat extends TilesetEditBase {
|
|
|
29495
30366
|
*/
|
|
29496
30367
|
addArea(positions: string[] | any[][] | LngLatPoint[] | Cesium.Cartesian3[], options?: {
|
|
29497
30368
|
height?: any;
|
|
29498
|
-
}): any
|
|
30369
|
+
}): Promise<any>;
|
|
29499
30370
|
/**
|
|
29500
30371
|
* 根据id获取区域对象
|
|
29501
30372
|
* @param id - id值
|
|
@@ -30738,27 +31609,45 @@ declare namespace MeasureUtil {
|
|
|
30738
31609
|
/**
|
|
30739
31610
|
* 格式化显示距离值, 可指定单位
|
|
30740
31611
|
* @param val - 距离值,米
|
|
30741
|
-
* @param [
|
|
30742
|
-
* @param [
|
|
31612
|
+
* @param [options] - 参数:
|
|
31613
|
+
* @param [options.unit = 'auto'] - 计量单位, 可选值:auto、m、km、mile、zhang 。auto时根据距离值自动选用k或km
|
|
31614
|
+
* @param [options.lang = 0] - 使用的语言
|
|
31615
|
+
* @param [options.decimal = 2] - 保留的小数位
|
|
30743
31616
|
* @returns 带单位的格式化距离值字符串,如:20.17 米
|
|
30744
31617
|
*/
|
|
30745
|
-
function formatDistance(val: number,
|
|
31618
|
+
function formatDistance(val: number, options?: {
|
|
31619
|
+
unit?: string;
|
|
31620
|
+
lang?: LangType;
|
|
31621
|
+
decimal?: number;
|
|
31622
|
+
}): string;
|
|
30746
31623
|
/**
|
|
30747
31624
|
* 格式化显示面积值, 可指定单位
|
|
30748
31625
|
* @param val - 面积值,平方米
|
|
30749
|
-
* @param [
|
|
30750
|
-
* @param [
|
|
31626
|
+
* @param [options] - 参数:
|
|
31627
|
+
* @param [options.unit = 'auto'] - 计量单位,可选值:auto、m、km、mu、ha 。auto时根据面积值自动选用m或km
|
|
31628
|
+
* @param [options.lang = 0] - 使用的语言
|
|
31629
|
+
* @param [options.decimal = 2] - 保留的小数位
|
|
30751
31630
|
* @returns 带单位的格式化面积值字符串,如:20.21 平方公里
|
|
30752
31631
|
*/
|
|
30753
|
-
function formatArea(val: number,
|
|
31632
|
+
function formatArea(val: number, options?: {
|
|
31633
|
+
unit?: string;
|
|
31634
|
+
lang?: LangType;
|
|
31635
|
+
decimal?: number;
|
|
31636
|
+
}): string;
|
|
30754
31637
|
/**
|
|
30755
31638
|
* 格式化显示体积值, 可指定单位
|
|
30756
31639
|
* @param val - 体积值,立方米
|
|
30757
|
-
* @param [
|
|
30758
|
-
* @param [
|
|
31640
|
+
* @param [options] - 参数:
|
|
31641
|
+
* @param [options.unit = 'auto'] - 计量单位,当前无用,备用参数
|
|
31642
|
+
* @param [options.lang = 0] - 使用的语言
|
|
31643
|
+
* @param [options.decimal = 2] - 保留的小数位
|
|
30759
31644
|
* @returns 带单位的格式化体积值字符串,如:20.21 方
|
|
30760
31645
|
*/
|
|
30761
|
-
function formatVolume(val: number,
|
|
31646
|
+
function formatVolume(val: number, options?: {
|
|
31647
|
+
unit?: string;
|
|
31648
|
+
lang?: LangType;
|
|
31649
|
+
decimal?: number;
|
|
31650
|
+
}): string;
|
|
30762
31651
|
}
|
|
30763
31652
|
|
|
30764
31653
|
/**
|
|
@@ -32013,14 +32902,14 @@ declare namespace Util {
|
|
|
32013
32902
|
*/
|
|
32014
32903
|
function isPCBroswer(): boolean;
|
|
32015
32904
|
/**
|
|
32016
|
-
* 执行alert
|
|
32905
|
+
* 执行alert弹窗(手动单击确定关闭窗口)
|
|
32017
32906
|
* @param msg - 弹窗内的内容
|
|
32018
32907
|
* @param title - 弹窗的标题
|
|
32019
32908
|
* @returns 无
|
|
32020
32909
|
*/
|
|
32021
32910
|
function alert(msg: string, title: string): void;
|
|
32022
32911
|
/**
|
|
32023
|
-
* 执行msg
|
|
32912
|
+
* 执行msg提示窗(自动消失)
|
|
32024
32913
|
* @param msg - 弹窗内的内容
|
|
32025
32914
|
* @returns 无
|
|
32026
32915
|
*/
|
|
@@ -32189,6 +33078,7 @@ declare namespace graphic {
|
|
|
32189
33078
|
export { FontBillboardEntity }
|
|
32190
33079
|
export { DivBillboardEntity }
|
|
32191
33080
|
export { LabelEntity }
|
|
33081
|
+
export { CanvasLabelEntity }
|
|
32192
33082
|
export { ModelEntity }
|
|
32193
33083
|
export { BoxEntity }
|
|
32194
33084
|
export { PlaneEntity }
|
|
@@ -32418,7 +33308,7 @@ declare namespace thing {
|
|
|
32418
33308
|
|
|
32419
33309
|
export {
|
|
32420
33310
|
name, update, version, proj4,
|
|
32421
|
-
BaseClass, BaseThing, LngLatPoint, LngLatArray, GroundSkyBox, LocalWorldTransform, CRS, ChinaCRS, EventType, State, Token, MaterialType, GraphicType, LayerType, ControlType, EffectType, Lang, LangType, MoveType, ClipType,
|
|
33311
|
+
BaseClass, BaseThing, LngLatPoint, LngLatArray, GroundSkyBox, LocalWorldTransform, CRS, ChinaCRS, EventType, State, Token, MaterialType, GraphicType, LayerType, ControlType, EffectType, Lang, LangType, MoveType, ClipType, Icon,
|
|
32422
33312
|
DomUtil, MeasureUtil, PointUtil, PolyUtil, PointTrans, Util, Log, MaterialUtil, GraphicUtil, DrawUtil, LayerUtil, ControlUtil, EffectUtil,
|
|
32423
33313
|
BaseMaterialConver, BaseStyleConver, BillboardStyleConver, CloudStyleConver, BoxStyleConver, CircleStyleConver, CorridorStyleConver, CylinderStyleConver, DivGraphicStyleConver, EllipsoidStyleConver, LabelStyleConver, ModelStyleConver, PathStyleConver, PlaneStyleConver, PointStyleConver, PolygonStyleConver, PolylineStyleConver, PolylineVolumeStyleConver, RectangleStyleConver, RectangularSensorStyleConver, WallStyleConver,
|
|
32424
33314
|
material, graphic, provider, layer, thing, effect, control, query,
|