mars3d 3.6.7 → 3.6.9

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/dist/mars3d.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.6.7
6
- * 编译日期:2023-09-26 10:49:46
5
+ * 版本信息:v3.6.9
6
+ * 编译日期:2023-10-17 19:49:55
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2023-03-17
9
9
  */
@@ -916,159 +916,198 @@ declare enum Icon {
916
916
 
917
917
  /**
918
918
  * 多语种文本配置,
919
- * 值为数组,对应{@link LangType}按照固定顺序排列,如:[中文简体,中文繁體,English]
920
919
  * @example
921
- * // 更新Lang
922
- * mars3d.Util.setLangText("_右击菜单删除", "新的提示语句", mars3d.LangType.ZH)
920
+ * // 更新Lang单个值
921
+ * map.setLangText("_放大", "Zoom In")
922
+ *
923
+ * // 更新Lang多个值
924
+ * map.setLangText({
925
+ * _放大: "Zoom In",
926
+ * _缩小: "Zoom Out",
927
+ * //其他需要更新的文本
928
+ * })
923
929
  *
924
930
  * // 获取Lang值
925
- * const text = mars3d.Util.getLangText("_右击菜单删除", mars3d.LangType.ZH)
931
+ * const text = map.getLangText("_放大")
926
932
  */
927
933
  declare enum Lang {
928
- "_放大" = "[\"\u653E\u5927\",\"\u653E\u5927\",\"Zoom In\"]",
929
- "_缩小" = "[\"\u7F29\u5C0F\",\"\u7E2E\u5C0F\",\"Zoom Out\"]",
930
- "_查看此处坐标" = "[\"\u67E5\u770B\u6B64\u5904\u5750\u6807\",\"\u67E5\u770B\u6B64\u8655\u5750\u6A19\",\"Location info\"]",
931
- "_位置信息" = "[\"\u4F4D\u7F6E\u4FE1\u606F\",\"\u4F4D\u7F6E\u4FE1\u606F\",\"The location information\"]",
932
- "_经度" = "[\"\u7ECF\u5EA6\",\"\u7D93\u5EA6\",\"Lon\"]",
933
- "_纬度" = "[\"\u7EAC\u5EA6\",\"\u7DEF\u5EA6\",\"Lat\"]",
934
- "_海拔" = "[\"\u9AD8\u7A0B\",\"\u9AD8\u7A0B\",\"Alt\"]",
935
- "_横坐标" = "[\"\u6A2A\u5750\u6807\",\"\u6A6B\u5750\u6A19\",\"X\"]",
936
- "_纵坐标" = "[\"\u7EB5\u5750\u6807\",\"\u7E31\u5750\u6A19\",\"Y\"]",
937
- "_查看当前视角" = "[\"\u67E5\u770B\u5F53\u524D\u89C6\u89D2\",\"\u67E5\u770B\u7576\u524D\u8996\u89D2\",\"Camera info\"]",
938
- "_当前视角信息" = "[\"\u5F53\u524D\u89C6\u89D2\u4FE1\u606F\",\"\u7576\u524D\u8996\u89D2\u4FE1\u606F\",\"Current Camera Information\"]",
939
- "_视角切换" = "[\"\u89C6\u89D2\u5207\u6362\",\"\u8996\u89D2\u5207\u63DB\",\"Camera\"]",
940
- "_禁止进入地下" = "[\"\u7981\u6B62\u8FDB\u5165\u5730\u4E0B\",\"\u7981\u6B62\u9032\u5165\u5730\u4E0B\",\"Do not go underground\"]",
941
- "_允许进入地下" = "[\"\u5141\u8BB8\u8FDB\u5165\u5730\u4E0B\",\"\u5141\u8A31\u9032\u5165\u5730\u4E0B\",\"Access to the ground\"]",
942
- "_绕此处环绕飞行" = "[\"\u7ED5\u6B64\u5904\u73AF\u7ED5\u98DE\u884C\",\"\u7E5E\u6B64\u8655\u74B0\u7E5E\u98DB\u884C\",\"Fly around here\"]",
943
- "_关闭环绕飞行" = "[\"\u5173\u95ED\u73AF\u7ED5\u98DE\u884C\",\"\u95DC\u9589\u74B0\u7E5E\u98DB\u884C\",\"Close off circling\"]",
944
- "_移动到此处" = "[\"\u79FB\u52A8\u5230\u6B64\u5904\",\"\u79FB\u52D5\u5230\u6B64\u8655\",\"Move it over here\"]",
945
- "_第一视角站到此处" = "[\"\u7B2C\u4E00\u89C6\u89D2\u7AD9\u5230\u6B64\u5904\",\"\u7B2C\u4E00\u8996\u89D2\u7AD9\u5230\u6B64\u8655\",\"First view is here\"]",
946
- "_开启键盘漫游" = "[\"\u5F00\u542F\u952E\u76D8\u6F2B\u6E38\",\"\u958B\u5553\u9375\u76E4\u6F2B\u904A\",\"Enable keyboard roaming\"]",
947
- "_关闭键盘漫游" = "[\"\u5173\u95ED\u952E\u76D8\u6F2B\u6E38\",\"\u95DC\u9589\u9375\u76E4\u6F2B\u904A\",\"Turn off keyboard roaming\"]",
948
- "_跟踪锁定" = "[\"\u8DDF\u8E2A\u9501\u5B9A\",\"\u8DDF\u8E2A\u9396\u5B9A\",\"TrackedEntity\"]",
949
- "_取消锁定" = "[\"\u53D6\u6D88\u9501\u5B9A\",\"\u53D6\u6D88\u9396\u5B9A\",\"Unlocked\"]",
950
- "_三维模型" = "[\"\u4E09\u7EF4\u6A21\u578B\",\"\u4E09\u7DAD\u6A21\u578B\",\"3DTiles\"]",
951
- "_显示三角网" = "[\"\u663E\u793A\u4E09\u89D2\u7F51\",\"\u986F\u793A\u4E09\u89D2\u7DB2\",\"Display Wireframe\"]",
952
- "_关闭三角网" = "[\"\u5173\u95ED\u4E09\u89D2\u7F51\",\"\u95DC\u9589\u4E09\u89D2\u7DB2\",\"Close Wireframe\"]",
953
- "_显示包围盒" = "[\"\u663E\u793A\u5305\u56F4\u76D2\",\"\u986F\u793A\u5305\u570D\u76D2\",\"Display BoundingVolume\"]",
954
- "_关闭包围盒" = "[\"\u5173\u95ED\u5305\u56F4\u76D2\",\"\u95DC\u9589\u5305\u570D\u76D2\",\"Close BoundingVolume\"]",
955
- "_地形服务" = "[\"\u5730\u5F62\u670D\u52A1\",\"\u5730\u5F62\u670D\u52D9\",\"Terrain\"]",
956
- "_开启地形" = "[\"\u5F00\u542F\u5730\u5F62\",\"\u986F\u793A\u5730\u5F62\",\"Open terrain\"]",
957
- "_关闭地形" = "[\"\u5173\u95ED\u5730\u5F62\",\"\u95DC\u9589\u5730\u5F62\",\"Close terrain\"]",
958
- "_图上标记" = "[\"\u56FE\u4E0A\u6807\u8BB0\",\"\u5716\u4E0A\u6A19\u8A18\",\"Drawing\"]",
959
- "_标记点" = "[\"\u6807\u8BB0\u70B9\",\"\u6A19\u8A18\u9EDE\",\"Mark points\"]",
960
- "_标记线" = "[\"\u6807\u8BB0\u7EBF\",\"\u6A19\u8A18\u7DDA\",\"Tag line\"]",
961
- "_标记面" = "[\"\u6807\u8BB0\u9762\",\"\u6A19\u8A18\u9762\",\"Mark surface\"]",
962
- "_标记圆" = "[\"\u6807\u8BB0\u5706\",\"\u6A19\u8A18\u5713\",\"Mark round\"]",
963
- "_标记矩形" = "[\"\u6807\u8BB0\u77E9\u5F62\",\"\u6A19\u8A18\u77E9\u5F62\",\"Mark rectangular\"]",
964
- "_允许编辑" = "[\"\u5141\u8BB8\u7F16\u8F91\",\"\u5141\u8A31\u7DE8\u8F2F\",\"Allowed to edit\"]",
965
- "_禁止编辑" = "[\"\u7981\u6B62\u7F16\u8F91\",\"\u7981\u6B62\u7DE8\u8F2F\",\"Prohibit to edit\"]",
966
- "_导出GeoJSON" = "[\"\u5BFC\u51FAGeoJSON\",\"\u5C0E\u51FAGeoJSON\",\"Export GeoJSON\"]",
967
- "_清除所有标记" = "[\"\u6E05\u9664\u6240\u6709\u6807\u8BB0\",\"\u6E05\u9664\u6240\u6709\u6A19\u8A18\",\"Clear\"]",
968
- "_特效效果" = "[\"\u7279\u6548\u6548\u679C\",\"\u7279\u6548\u6548\u679C\",\"Effects\"]",
969
- "_开启下雨" = "[\"\u5F00\u542F\u4E0B\u96E8\",\"\u958B\u5553\u4E0B\u96E8\",\"Enable rain\"]",
970
- "_关闭下雨" = "[\"\u5173\u95ED\u4E0B\u96E8\",\"\u95DC\u9589\u4E0B\u96E8\",\"Close rain\"]",
971
- "_开启下雪" = "[\"\u5F00\u542F\u4E0B\u96EA\",\"\u958B\u5553\u4E0B\u96EA\",\"Enable snow\"]",
972
- "_关闭下雪" = "[\"\u5173\u95ED\u4E0B\u96EA\",\"\u95DC\u9589\u4E0B\u96EA\",\"Close snow\"]",
973
- "_开启雾天气" = "[\"\u5F00\u542F\u96FE\u5929\u6C14\",\"\u958B\u5553\u9727\u5929\u6C23\",\"Enable fog\"]",
974
- "_关闭雾天气" = "[\"\u5173\u95ED\u96FE\u5929\u6C14\",\"\u95DC\u9589\u9727\u5929\u6C23\",\"Close fog\"]",
975
- "_开启泛光" = "[\"\u5F00\u542F\u6CDB\u5149\",\"\u958B\u5553\u6CDB\u5149\",\"Enable bloom\"]",
976
- "_关闭泛光" = "[\"\u5173\u95ED\u6CDB\u5149\",\"\u95DC\u9589\u6CDB\u5149\",\"Close bloom\"]",
977
- "_开启亮度" = "[\"\u5F00\u542F\u4EAE\u5EA6\",\"\u958B\u5553\u4EAE\u5EA6\",\"Enable brightness\"]",
978
- "_关闭亮度" = "[\"\u5173\u95ED\u4EAE\u5EA6\",\"\u95DC\u9589\u4EAE\u5EA6\",\"Close brightness\"]",
979
- "_开启夜视" = "[\"\u5F00\u542F\u591C\u89C6\",\"\u958B\u5553\u591C\u8996\",\"Enable night vision\"]",
980
- "_关闭夜视" = "[\"\u5173\u95ED\u591C\u89C6\",\"\u95DC\u9589\u591C\u8996\",\"Close night vision\"]",
981
- "_开启黑白" = "[\"\u5F00\u542F\u9ED1\u767D\",\"\u958B\u5553\u9ED1\u767D\",\"Enable black and white\"]",
982
- "_关闭黑白" = "[\"\u5173\u95ED\u9ED1\u767D\",\"\u95DC\u9589\u9ED1\u767D\",\"Close black and white\"]",
983
- "_开启拾取高亮" = "[\"\u5F00\u542F\u62FE\u53D6\u9AD8\u4EAE\",\"\u958B\u5553\u62FE\u53D6\u9AD8\u4EAE\",\"Enable Pick highlighted\"]",
984
- "_关闭拾取高亮" = "[\"\u5173\u95ED\u62FE\u53D6\u9AD8\u4EAE\",\"\u95DC\u9589\u62FE\u53D6\u9AD8\u4EAE\",\"Close Pick highlighted\"]",
985
- "_场景设置" = "[\"\u573A\u666F\u8BBE\u7F6E\",\"\u5834\u666F\u8A2D\u7F6E\",\"Scene\"]",
986
- "_开启深度监测" = "[\"\u5F00\u542F\u6DF1\u5EA6\u76D1\u6D4B\",\"\u958B\u5553\u6DF1\u5EA6\u76E3\u6E2C\",\"Enable depth test against terrain\"]",
987
- "_关闭深度监测" = "[\"\u5173\u95ED\u6DF1\u5EA6\u76D1\u6D4B\",\"\u95DC\u9589\u6DF1\u5EA6\u76E3\u6E2C\",\"Close depth test against terrain\"]",
988
- "_显示星空背景" = "[\"\u663E\u793A\u661F\u7A7A\u80CC\u666F\",\"\u986F\u793A\u661F\u7A7A\u80CC\u666F\",\"Enable skyBox\"]",
989
- "_关闭星空背景" = "[\"\u5173\u95ED\u661F\u7A7A\u80CC\u666F\",\"\u95DC\u9589\u661F\u7A7A\u80CC\u666F\",\"Close skyBox\"]",
990
- "_开启日照阴影" = "[\"\u5F00\u542F\u65E5\u7167\u9634\u5F71\",\"\u958B\u5553\u65E5\u7167\u9670\u5F71\",\"Enable shadow\"]",
991
- "_关闭日照阴影" = "[\"\u5173\u95ED\u65E5\u7167\u9634\u5F71\",\"\u95DC\u9589\u65E5\u7167\u9670\u5F71\",\"Close shadow\"]",
992
- "_开启大气渲染" = "[\"\u5F00\u542F\u5927\u6C14\u6E32\u67D3\",\"\u958B\u5553\u5927\u6C23\u6E32\u67D3\",\"Enable sky atmosphere\"]",
993
- "_关闭大气渲染" = "[\"\u5173\u95ED\u5927\u6C14\u6E32\u67D3\",\"\u95DC\u9589\u5927\u6C23\u6E32\u67D3\",\"Close sky atmosphere\"]",
994
- "_场景出图" = "[\"\u573A\u666F\u51FA\u56FE\",\"\u5834\u666F\u51FA\u5716\",\"Export image\"]",
995
- "_图上量算" = "[\"\u56FE\u4E0A\u91CF\u7B97\",\"\u5716\u4E0A\u91CF\u7B97\",\"Measure\"]",
996
- "_删除测量" = "[\"\u5220\u9664\u6D4B\u91CF\",\"\u522A\u9664\u6E2C\u91CF\",\"Delete\"]",
997
- "_角度" = "[\"\u89D2\u5EA6\",\"\u89D2\u5EA6\",\"Angle\"]",
998
- "_距离" = "[\"\u8DDD\u79BB\",\"\u8DDD\u96E2\",\"Distance\"]",
999
- "_面积" = "[\"\u9762\u79EF\",\"\u9762\u7A4D\",\"Area\"]",
1000
- "_总长" = "[\"\u603B\u957F\",\"\u7E3D\u9577\",\"Total distance\"]",
1001
- "_起点" = "[\"\u8D77\u70B9\",\"\u8D77\u9EDE\",\"Start\"]",
1002
- "_高度差" = "[\"\u9AD8\u5EA6\u5DEE\",\"\u9AD8\u5EA6\u5DEE\",\"Height difference\"]",
1003
- "_空间距离" = "[\"\u7A7A\u95F4\u8DDD\u79BB\",\"\u7A7A\u9593\u8DDD\u96E2\",\"Space distance\"]",
1004
- "_水平距离" = "[\"\u6C34\u5E73\u8DDD\u79BB\",\"\u6C34\u5E73\u8DDD\u96E2\",\"Horizontal distance\"]",
1005
- "_正在计算体积" = "[\"\u6B63\u5728\u8BA1\u7B97\u4F53\u79EF\",\"\u6B63\u5728\u8A08\u7B97\u9AD4\u7A4D\",\"Calculating volume\"]",
1006
- "_填方体积" = "[\"\u586B\u65B9\u4F53\u79EF\",\"\u586B\u65B9\u9AD4\u7A4D\",\"The volume of fill\"]",
1007
- "_挖方体积" = "[\"\u6316\u65B9\u4F53\u79EF\",\"\u6316\u65B9\u9AD4\u7A4D\",\"Excavation volume\"]",
1008
- "_横切面积" = "[\"\u6A2A\u5207\u9762\u79EF\",\"\u6A6B\u5207\u9762\u7A4D\",\"Crosscutting area\"]",
1009
- "_面上" = "[\"\u9762\u4E0A\",\"\u9762\u4E0A\",\"Up\"]",
1010
- "_面下" = "[\"\u9762\u4E0B\",\"\u9762\u4E0B\",\"Down\"]",
1011
- "_" = "[\"\u7C73\",\"\u7C73\",\"m\"]",
1012
- "_公里" = "[\"\u516C\u91CC\",\"\u516C\u88CF\",\"km\"]",
1013
- "_万米" = "[\"\u4E07\u7C73\",\"\u4E07\u7C73\",\"myriametre\"]",
1014
- "_海里" = "[\"\u6D77\u91CC\",\"\u6D77\u88CF\",\"mile\"]",
1015
- "_" = "[\"\u4E08\",\"\u4E08\",\"zhang\"]",
1016
- "_平方米" = "[\"\u5E73\u65B9\u7C73\",\"\u5E73\u65B9\u7C73\",\"m\u00B2\"]",
1017
- "_平方公里" = "[\"\u5E73\u65B9\u516C\u91CC\",\"\u5E73\u65B9\u516C\u88CF\",\"km\u00B2\"]",
1018
- "_" = "[\"\u4EA9\",\"\u755D\",\"mu\"]",
1019
- "_公顷" = "[\"\u516C\u9877\",\"\u516C\u9803\",\"ha\"]",
1020
- "_立方米" = "[\"\u65B9\",\"\u65B9\",\"m\u00B3\"]",
1021
- "_万立方米" = "[\"\u4E07\u65B9\",\"\u4E07\u65B9\",\"wm\u00B3\"]",
1022
- "_单击开始绘制" = "[\"\u5355\u51FB\u5F00\u59CB\u7ED8\u5236\",\"\u55AE\u64CA\u958B\u59CB\u7E6A\u5236\",\"Click to start drawing\"]",
1023
- "_单击完成绘制" = "[\"\u5355\u51FB\u5B8C\u6210\u7ED8\u5236\",\"\u55AE\u64CA\u5B8C\u6210\u7E6A\u5236\",\"Click to finish drawing\"]",
1024
- "_双击完成绘制" = "[\"\u53CC\u51FB\u5B8C\u6210\u7ED8\u5236\",\"\u96D9\u64CA\u5B8C\u6210\u7E6A\u5236\",\"Double click to finish drawing\"]",
1025
- "_单击增加点" = "[\"\u5355\u51FB\u589E\u52A0\u70B9\",\"\u55AE\u64CA\u589E\u52A0\u9EDE\",\"left click add point\"]",
1026
- "_右击删除点" = "[\"\u53F3\u51FB\u5220\u9664\u70B9\",\"\u53F3\u64CA\u522A\u9664\u9EDE\",\"right click delete point\"]",
1027
- "_单击后激活编辑" = "[\"\u5355\u51FB\u540E\u6FC0\u6D3B\u7F16\u8F91\",\"\u55AE\u64CA\u5F8C \u6FC0\u6D3B\u7DE8\u8F2F\",\"Click to activate editing\"]",
1028
- "_右击菜单删除" = "[\"\u53F3\u51FB\u83DC\u5355\u5220\u9664\",\"\u53F3\u64CA\u83DC\u55AE\u522A\u9664\",\"Right click menu to delete\"]",
1029
- "_更多功能请右击" = "[\"\u66F4\u591A\u529F\u80FD\u8BF7\u53F3\u51FB\",\"\u66F4\u591A\u529F\u80FD\u8ACB\u53F3\u64CA\",\"For more functions, right click\"]",
1030
- "_停止编辑" = "[\"\u505C\u6B62\u7F16\u8F91\",\"\u505C\u6B62\u7DE8\u8F2F\",\"Stop editing\"]",
1031
- "_删除该点" = "[\"\u5220\u9664\u8BE5\u70B9\",\"\u522A\u9664\u8A72\u9EDE\",\"Delete that point\"]",
1032
- "_按轴平移" = "[\"\u6309\u8F74\u5E73\u79FB\",\"\u6309\u8EF8\u5E73\u79FB\",\"Translation by axis\"]",
1033
- "_停止按轴平移" = "[\"\u505C\u6B62\u6309\u8F74\u5E73\u79FB\",\"\u505C\u6B62\u6309\u8EF8\u5E73\u79FB\",\"Stop translation along axis\"]",
1034
- "_按轴旋转" = "[\"\u6309\u8F74\u65CB\u8F6C\",\"\u6309\u8EF8\u65CB\u8F49\",\"Rotation on axis\"]",
1035
- "_停止按轴旋转" = "[\"\u505C\u6B62\u6309\u8F74\u65CB\u8F6C\",\"\u505C\u6B62\u6309\u8EF8\u65CB\u8F49\",\"Stop rotation on axis\"]",
1036
- "_调整比例" = "[\"\u8C03\u6574\u6BD4\u4F8B\",\"\u8ABF\u6574\u6BD4\u4F8B\",\"Edit Scale\"]",
1037
- "_停止调整比例" = "[\"\u505C\u6B62\u8C03\u6574\u6BD4\u4F8B\",\"\u505C\u6B62\u8ABF\u6574\u6BD4\u4F8B\",\"Stop edit scale\"]",
1038
- "_释放后完成修改" = "[\"\u91CA\u653E\u540E\u5B8C\u6210\u4FEE\u6539\",\"\u91CB\u653E\u5F8C\u5B8C\u6210\u4FEE\u6539\",\"Complete the modification after release\"]",
1039
- "_该对象不允许编辑" = "[\"\u8BE5\u5BF9\u8C61\u4E0D\u5141\u8BB8\u7F16\u8F91\",\"\u8A72\u5C0D\u8C61\u4E0D\u5141\u8A31\u7DE8\u8F2F\",\"This object does not allow editing\"]",
1040
- "_拖动该点后" = "[\"\u62D6\u52A8\u8BE5\u70B9\u540E\",\"\u62D6\u52D5\u8A72\u9EDE\u5F8C\",\"Drag that point\"]",
1041
- "_拖动对象后" = "[\"\u62D6\u52A8\u5BF9\u8C61\u540E\",\"\u62D6\u52D5\u5C0D\u8C61\u5F8C\",\"Drag that object\"]",
1042
- "_修改位置" = "[\"\u4FEE\u6539\u4F4D\u7F6E\",\"\u4FEE\u6539\u4F4D\u7F6E\",\"Modify the position\"]",
1043
- "_整体平移" = "[\"\u6574\u4F53\u5E73\u79FB\",\"\u6574\u9AD4\u5E73\u79FB\",\"The overall translation\"]",
1044
- "_增加点" = "[\"\u589E\u52A0\u70B9\",\"\u589E\u52A0\u9EDE\",\"Add point\"]",
1045
- "_修改高度" = "[\"\u4FEE\u6539\u9AD8\u5EA6\",\"\u4FEE\u6539\u9AD8\u5EA6\",\"Modify the height\"]",
1046
- "_修改半径" = "[\"\u4FEE\u6539\u534A\u5F84\",\"\u4FEE\u6539\u534A\u5F91\",\"Modify the radius\"]",
1047
- "_修改长度" = "[\"\u4FEE\u6539\u957F\u5EA6(X\u65B9\u5411)\",\"\u4FEE\u6539\u9577\u5EA6(X\u65B9\u5411)\",\"Modify the length(X direction )\"]",
1048
- "_修改宽度" = "[\"\u4FEE\u6539\u5BBD\u5EA6(Y\u65B9\u5411)\",\"\u4FEE\u6539\u5BEC\u5EA6(Y\u65B9\u5411)\",\"Change the width(Y direction)\"]",
1049
- "_修改方向" = "[\"\u4FEE\u6539\u65B9\u5411\",\"\u4FEE\u6539\u65B9\u5411\",\"Change direction\"]",
1050
- "_修改缩放比例" = "[\"\u4FEE\u6539\u7F29\u653E\u6BD4\u4F8B\",\"\u4FEE\u6539\u7E2E\u653E\u6BD4\u4F8B\",\"Modify the Scale\"]",
1051
- "_无法删除不能少于最小点数" = "[\"\u65E0\u6CD5\u5220\u9664\uFF0C\u70B9\u6570\u91CF\u4E0D\u80FD\u5C11\u4E8E\",\"\u7121\u6CD5\u522A\u9664\uFF0C\u9EDE\u6578\u91CF\u4E0D\u80FD\u5C11\u4E8E\",\"Cannot delete, the number of dots cannot be less than\"]",
1052
- "_删除" = "[\"\u5220\u9664\",\"\u522A\u9664\",\"Delete\"]",
1053
- "_加载模型中" = "[\"\u52A0\u8F7D\u6A21\u578B\u4E2D\u2026\",\"\u52A0\u8F7D\u6A21\u578B\u4E2D\u2026\",\"Load Model\u2026\"]"
1054
- }
1055
-
1056
- /**
1057
- * 语言类型 枚举
1058
- */
1059
- declare enum LangType {
1060
- /**
1061
- * 简体中文
1062
- */
1063
- ZH = 0,
1064
- /**
1065
- * 繁体中文(香港、台湾等地区)
1066
- */
1067
- ZHHK = 1,
1068
- /**
1069
- * English英文 en
1070
- */
1071
- EN = 2
934
+ /**
935
+ * Cesium renderError 错误弹窗
936
+ */
937
+ RenderingHasStopped = "WebGL\u53D1\u751F\u6E32\u67D3\u9519\u8BEF,\u6E32\u67D3\u5DF2\u7ECF\u505C\u6B62,\u8BF7\u5237\u65B0\u9875\u9762\u3002",
938
+ ErrorConstructingCesiumWidget = "WebGL\u53D1\u751F\u6E32\u67D3\u9519\u8BEF,\u6E32\u67D3\u5DF2\u7ECF\u505C\u6B62,\u8BF7\u5237\u65B0\u9875\u9762\u3002",
939
+ Today = "\u4ECA\u5929",
940
+ TodayRealTime = "\u4ECA\u5929\uFF08\u5B9E\u9645\u65F6\u95F4\uFF09",
941
+ Pause = "\u6682\u505C",
942
+ PlayReverse = "\u540E\u9000\u64AD\u653E",
943
+ PlayForward = "\u524D\u8FDB\u64AD\u653E",
944
+ CurrentTimeNotInRange = "\u5F53\u524D\u65F6\u95F4\u4E0D\u5728\u8303\u56F4\u5185",
945
+ Imagery = "\u5F71\u50CF",
946
+ CesiumIon = "\u5B98\u65B9ION",
947
+ Other = "\u5176\u4ED6",
948
+ Terrain = "\u5730\u5F62\u670D\u52A1",
949
+ WGS84Ellipsoid = "WGS84 \u692D\u7403",
950
+ CesiumWorldTerrain = "Cesium \u4E16\u754C\u5730\u5F62\u56FE",
951
+ WGS84EllipsoidESPG4326 = "WGS84\u6807\u51C6\u692D\u7403\uFF0C\u53C8\u79F0EPSG\uFF1A4326",
952
+ HighResolutionGlobalTerrain = "\u9AD8\u5206\u8FA8\u7387\u5168\u7403\u5730\u5F62\u56FE\u5757\u96C6\u7531\u51E0\u4E2A\u6570\u636E\u6E90\u7EC4\u6210\uFF0C\u7531Cesium ion\u6258\u7BA1",
953
+ FullScreen = "\u5168\u5C4F",
954
+ ExitFullScreen = "\u9000\u51FA\u5168\u5C4F",
955
+ FullScreenUnavailable = "\u5168\u5C4F\u4E0D\u53EF\u7528",
956
+ EnterAnAddressOrLandmark = "\u8BF7\u8F93\u5165\u5730\u5740...",
957
+ Searching = "\u67E5\u8BE2\u4E2D...",
958
+ ViewHome = "\u521D\u59CB\u89C6\u56FE",
959
+ NavigationInstructions = "\u5E2E\u52A9",
960
+ Mouse = "\u9F20\u6807\u64CD\u4F5C",
961
+ Touch = "\u89E6\u6478\u624B\u52BF",
962
+ PanView = "\u5E73\u79FB\u89C6\u56FE",
963
+ LeftClickDrag = "\u9F20\u6807\u5DE6\u952E+\u62D6\u62FD",
964
+ ZoomView = "\u7F29\u653E\u89C6\u56FE",
965
+ RightClick = "\u53F3\u952E+\u62D6\u62FD\uFF0C\u6216\u8005",
966
+ MouseWheelScroll = "\u4E2D\u952E\u6EDA\u52A8",
967
+ RotateView = "\u65CB\u8F6C\u89C6\u56FE",
968
+ MiddleClickDrag = "\u4E2D\u952E\u6309\u4E0B\u62D6\u62FD\uFF0C\u6216\u8005",
969
+ CtrlAndClickDrag = "\u6309Ctrl\u952E \u540C\u65F6 \u5DE6/\u53F3\u952E\u62D6\u62FD",
970
+ OneFingerDrag = "\u5355\u6307\u62D6\u52A8",
971
+ TwoFingerPinch = "\u53CC\u6307\u5411\u5185\u6216\u5411\u5916\u6ED1\u52A8",
972
+ TiltView = "\u503E\u659C\u89C6\u56FE",
973
+ TwoFingerDragSameDirection = "\u53CC\u6307\u6309\u76F8\u540C\u65B9\u5411\u62D6\u52A8",
974
+ TwoFingerDragOppositeDirection = "\u53CC\u6307\u6309\u76F8\u53CD\u65B9\u5411\u62D6\u52A8",
975
+ PerspectiveProjection = "\u900F\u89C6\u6295\u5F71",
976
+ OrthographicProjection = "\u6B63\u5C04\u6295\u5F71",
977
+ _2D = "\u4E8C\u7EF4\u89C6\u56FE",
978
+ _3D = "\u4E09\u7EF4\u89C6\u56FE",
979
+ ColumbusView = "\u54E5\u4F26\u5E032.5D\u89C6\u56FE",
980
+ EnterVRMode = "\u8FDB\u5165VR\u6A21\u5F0F",
981
+ ExitVRMode = "\u9000\u51FAVR\u6A21\u5F0F",
982
+ VRModeIsUnavailable = "VR\u6A21\u5F0F\u4E0D\u53EF\u7528",
983
+ "_放大" = "\u653E\u5927",
984
+ "_缩小" = "\u7F29\u5C0F",
985
+ "_暂停" = "\u6682\u505C",
986
+ "_继续" = "\u7EE7\u7EED",
987
+ "_查看此处坐标" = "\u67E5\u770B\u6B64\u5904\u5750\u6807",
988
+ "_位置信息" = "\u4F4D\u7F6E\u4FE1\u606F",
989
+ "_经度" = "\u7ECF\u5EA6",
990
+ "_纬度" = "\u7EAC\u5EA6",
991
+ "_海拔" = "\u9AD8\u7A0B",
992
+ "_横坐标" = "\u6A2A\u5750\u6807",
993
+ "_纵坐标" = "\u7EB5\u5750\u6807",
994
+ "_查看当前视角" = "\u67E5\u770B\u5F53\u524D\u89C6\u89D2",
995
+ "_当前视角信息" = "\u5F53\u524D\u89C6\u89D2\u4FE1\u606F",
996
+ "_视角切换" = "\u89C6\u89D2\u5207\u6362",
997
+ "_禁止进入地下" = "\u7981\u6B62\u8FDB\u5165\u5730\u4E0B",
998
+ "_允许进入地下" = "\u5141\u8BB8\u8FDB\u5165\u5730\u4E0B",
999
+ "_绕此处环绕飞行" = "\u7ED5\u6B64\u5904\u73AF\u7ED5\u98DE\u884C",
1000
+ "_关闭环绕飞行" = "\u5173\u95ED\u73AF\u7ED5\u98DE\u884C",
1001
+ "_移动到此处" = "\u79FB\u52A8\u5230\u6B64\u5904",
1002
+ "_第一视角站到此处" = "\u7B2C\u4E00\u89C6\u89D2\u7AD9\u5230\u6B64\u5904",
1003
+ "_开启键盘漫游" = "\u5F00\u542F\u952E\u76D8\u6F2B\u6E38",
1004
+ "_关闭键盘漫游" = "\u5173\u95ED\u952E\u76D8\u6F2B\u6E38",
1005
+ "_跟踪锁定" = "\u8DDF\u8E2A\u9501\u5B9A",
1006
+ "_取消锁定" = "\u53D6\u6D88\u9501\u5B9A",
1007
+ "_三维模型" = "\u4E09\u7EF4\u6A21\u578B",
1008
+ "_显示三角网" = "\u663E\u793A\u4E09\u89D2\u7F51",
1009
+ "_关闭三角网" = "\u5173\u95ED\u4E09\u89D2\u7F51",
1010
+ "_显示包围盒" = "\u663E\u793A\u5305\u56F4\u76D2",
1011
+ "_关闭包围盒" = "\u5173\u95ED\u5305\u56F4\u76D2",
1012
+ "_地形服务" = "\u5730\u5F62\u670D\u52A1",
1013
+ "_开启地形" = "\u5F00\u542F\u5730\u5F62",
1014
+ "_关闭地形" = "\u5173\u95ED\u5730\u5F62",
1015
+ "_图上标记" = "\u56FE\u4E0A\u6807\u8BB0",
1016
+ "_标记点" = "\u6807\u8BB0\u70B9",
1017
+ "_标记线" = "\u6807\u8BB0\u7EBF",
1018
+ "_标记面" = "\u6807\u8BB0\u9762",
1019
+ "_标记圆" = "\u6807\u8BB0\u5706",
1020
+ "_标记矩形" = "\u6807\u8BB0\u77E9\u5F62",
1021
+ "_允许编辑" = "\u5141\u8BB8\u7F16\u8F91",
1022
+ "_禁止编辑" = "\u7981\u6B62\u7F16\u8F91",
1023
+ "_导出GeoJSON" = "\u5BFC\u51FAGeoJSON",
1024
+ "_清除所有标记" = "\u6E05\u9664\u6240\u6709\u6807\u8BB0",
1025
+ "_特效效果" = "\u7279\u6548\u6548\u679C",
1026
+ "_开启下雨" = "\u5F00\u542F\u4E0B\u96E8",
1027
+ "_关闭下雨" = "\u5173\u95ED\u4E0B\u96E8",
1028
+ "_开启下雪" = "\u5F00\u542F\u4E0B\u96EA",
1029
+ "_关闭下雪" = "\u5173\u95ED\u4E0B\u96EA",
1030
+ "_开启雾天气" = "\u5F00\u542F\u96FE\u5929\u6C14",
1031
+ "_关闭雾天气" = "\u5173\u95ED\u96FE\u5929\u6C14",
1032
+ "_开启泛光" = "\u5F00\u542F\u6CDB\u5149",
1033
+ "_关闭泛光" = "\u5173\u95ED\u6CDB\u5149",
1034
+ "_开启亮度" = "\u5F00\u542F\u4EAE\u5EA6",
1035
+ "_关闭亮度" = "\u5173\u95ED\u4EAE\u5EA6",
1036
+ "_开启夜视" = "\u5F00\u542F\u591C\u89C6",
1037
+ "_关闭夜视" = "\u5173\u95ED\u591C\u89C6",
1038
+ "_开启黑白" = "\u5F00\u542F\u9ED1\u767D",
1039
+ "_关闭黑白" = "\u5173\u95ED\u9ED1\u767D",
1040
+ "_开启拾取高亮" = "\u5F00\u542F\u62FE\u53D6\u9AD8\u4EAE",
1041
+ "_关闭拾取高亮" = "\u5173\u95ED\u62FE\u53D6\u9AD8\u4EAE",
1042
+ "_场景设置" = "\u573A\u666F\u8BBE\u7F6E",
1043
+ "_开启深度监测" = "\u5F00\u542F\u6DF1\u5EA6\u76D1\u6D4B",
1044
+ "_关闭深度监测" = "\u5173\u95ED\u6DF1\u5EA6\u76D1\u6D4B",
1045
+ "_显示星空背景" = "\u663E\u793A\u661F\u7A7A\u80CC\u666F",
1046
+ "_关闭星空背景" = "\u5173\u95ED\u661F\u7A7A\u80CC\u666F",
1047
+ "_开启日照阴影" = "\u5F00\u542F\u65E5\u7167\u9634\u5F71",
1048
+ "_关闭日照阴影" = "\u5173\u95ED\u65E5\u7167\u9634\u5F71",
1049
+ "_开启大气渲染" = "\u5F00\u542F\u5927\u6C14\u6E32\u67D3",
1050
+ "_关闭大气渲染" = "\u5173\u95ED\u5927\u6C14\u6E32\u67D3",
1051
+ "_场景出图" = "\u573A\u666F\u51FA\u56FE",
1052
+ "_图上量算" = "\u56FE\u4E0A\u91CF\u7B97",
1053
+ "_删除测量" = "\u5220\u9664\u6D4B\u91CF",
1054
+ "_角度" = "\u89D2\u5EA6",
1055
+ "_距离" = "\u8DDD\u79BB",
1056
+ "_面积" = "\u9762\u79EF",
1057
+ "_总长" = "\u603B\u957F",
1058
+ "_起点" = "\u8D77\u70B9",
1059
+ "_高度差" = "\u9AD8\u5EA6\u5DEE",
1060
+ "_空间距离" = "\u7A7A\u95F4\u8DDD\u79BB",
1061
+ "_水平距离" = "\u6C34\u5E73\u8DDD\u79BB",
1062
+ "_正在计算体积" = "\u6B63\u5728\u8BA1\u7B97\u4F53\u79EF",
1063
+ "_填方体积" = "\u586B\u65B9\u4F53\u79EF",
1064
+ "_挖方体积" = "\u6316\u65B9\u4F53\u79EF",
1065
+ "_横切面积" = "\u6A2A\u5207\u9762\u79EF",
1066
+ "_面上" = "\u9762\u4E0A",
1067
+ "_面下" = "\u9762\u4E0B",
1068
+ "_米" = "\u7C73",
1069
+ "_公里" = "\u516C\u91CC",
1070
+ "_万米" = "\u4E07\u7C73",
1071
+ "_海里" = "\u6D77\u91CC",
1072
+ "_丈" = "\u4E08",
1073
+ "_平方米" = "\u5E73\u65B9\u7C73",
1074
+ "_平方公里" = "\u5E73\u65B9\u516C\u91CC",
1075
+ "_亩" = "\u4EA9",
1076
+ "_公顷" = "\u516C\u9877",
1077
+ "_立方米" = "\u65B9",
1078
+ "_万立方米" = "\u4E07\u65B9",
1079
+ "_单击开始绘制" = "\u5355\u51FB\u5F00\u59CB\u7ED8\u5236",
1080
+ "_单击完成绘制" = "\u5355\u51FB\u5B8C\u6210\u7ED8\u5236",
1081
+ "_双击完成绘制" = "\u53CC\u51FB\u5B8C\u6210\u7ED8\u5236",
1082
+ "_单击增加点" = "\u5355\u51FB\u589E\u52A0\u70B9",
1083
+ "_右击删除点" = "\u53F3\u51FB\u5220\u9664\u70B9",
1084
+ "_单击后激活编辑" = "\u5355\u51FB\u540E\u6FC0\u6D3B\u7F16\u8F91",
1085
+ "_右击菜单删除" = "\u53F3\u51FB\u83DC\u5355\u5220\u9664",
1086
+ "_更多功能请右击" = "\u66F4\u591A\u529F\u80FD\u8BF7\u53F3\u51FB",
1087
+ "_停止编辑" = "\u505C\u6B62\u7F16\u8F91",
1088
+ "_删除该点" = "\u5220\u9664\u8BE5\u70B9",
1089
+ "_按轴平移" = "\u6309\u8F74\u5E73\u79FB",
1090
+ "_停止按轴平移" = "\u505C\u6B62\u6309\u8F74\u5E73\u79FB",
1091
+ "_按轴旋转" = "\u6309\u8F74\u65CB\u8F6C",
1092
+ "_停止按轴旋转" = "\u505C\u6B62\u6309\u8F74\u65CB\u8F6C",
1093
+ "_调整比例" = "\u8C03\u6574\u6BD4\u4F8B",
1094
+ "_停止调整比例" = "\u505C\u6B62\u8C03\u6574\u6BD4\u4F8B",
1095
+ "_释放后完成修改" = "\u91CA\u653E\u540E\u5B8C\u6210\u4FEE\u6539",
1096
+ "_该对象不允许编辑" = "\u8BE5\u5BF9\u8C61\u4E0D\u5141\u8BB8\u7F16\u8F91",
1097
+ "_拖动该点后" = "\u62D6\u52A8\u8BE5\u70B9\u540E",
1098
+ "_拖动对象后" = "\u62D6\u52A8\u5BF9\u8C61\u540E",
1099
+ "_修改位置" = "\u4FEE\u6539\u4F4D\u7F6E",
1100
+ "_整体平移" = "\u6574\u4F53\u5E73\u79FB",
1101
+ "_增加点" = "\u589E\u52A0\u70B9",
1102
+ "_修改高度" = "\u4FEE\u6539\u9AD8\u5EA6",
1103
+ "_修改半径" = "\u4FEE\u6539\u534A\u5F84",
1104
+ "_修改长度" = "\u4FEE\u6539\u957F\u5EA6(X\u65B9\u5411)",
1105
+ "_修改宽度" = "\u4FEE\u6539\u5BBD\u5EA6(Y\u65B9\u5411)",
1106
+ "_修改方向" = "\u4FEE\u6539\u65B9\u5411",
1107
+ "_修改缩放比例" = "\u4FEE\u6539\u7F29\u653E\u6BD4\u4F8B",
1108
+ "_无法删除不能少于最小点数" = "\u65E0\u6CD5\u5220\u9664\uFF0C\u70B9\u6570\u91CF\u4E0D\u80FD\u5C11\u4E8E",
1109
+ "_删除" = "\u5220\u9664",
1110
+ "_加载模型中" = "\u52A0\u8F7D\u6A21\u578B\u4E2D\u2026"
1072
1111
  }
1073
1112
 
1074
1113
  /**
@@ -1298,6 +1337,7 @@ declare namespace MaterialType {
1298
1337
  * @property [speed = 0] - 不为0时呈现图片滚动效果,数字代表滚动速度
1299
1338
  * @property [flipx = false] - 是否X方向翻转图片
1300
1339
  * @property [flipy = false] - 是否Y方向翻转图片
1340
+ * @property [repeat = new Cesium.Cartesian2(1.0, 1.0)] - 指定图像在每个方向上重复的次数
1301
1341
  * @property [noWhite = true] - 是否不显示白色,true时没有加载完成前的白色闪烁,但也不支持纯白色的图片
1302
1342
  */
1303
1343
  const Image2: string;
@@ -1680,7 +1720,7 @@ declare class BaseControl extends BaseThing {
1680
1720
  enabled?: boolean;
1681
1721
  parentContainer?: HTMLElement;
1682
1722
  insertIndex?: number;
1683
- insertBefore?: HTMLElement;
1723
+ insertBefore?: HTMLElement | string;
1684
1724
  eventParent?: BaseClass | boolean;
1685
1725
  });
1686
1726
  /**
@@ -1773,7 +1813,7 @@ declare class ClockAnimate extends BaseControl {
1773
1813
  enabled?: boolean;
1774
1814
  parentContainer?: HTMLElement;
1775
1815
  insertIndex?: number;
1776
- insertBefore?: HTMLElement;
1816
+ insertBefore?: HTMLElement | string;
1777
1817
  });
1778
1818
  }
1779
1819
 
@@ -1814,7 +1854,7 @@ declare class Compass extends BaseControl {
1814
1854
  enabled?: boolean;
1815
1855
  parentContainer?: HTMLElement;
1816
1856
  insertIndex?: number;
1817
- insertBefore?: HTMLElement;
1857
+ insertBefore?: HTMLElement | string;
1818
1858
  });
1819
1859
  /**
1820
1860
  * 更新 外部圆环区域的SVG图片
@@ -1858,9 +1898,12 @@ declare class Compass extends BaseControl {
1858
1898
  * 时钟仪表控制 控件 (Cesium原生)
1859
1899
  * @param [options] - 参数对象,包括以下:
1860
1900
  * @param [options.ticks = [0.1, 0.25, 0.5, 1.0, 2.0, 5.0, 10.0, 15.0, 30.0, 60.0, 120.0, 300.0, 600.0, 900.0, 1800.0, 3600.0]] - 可选的步长
1901
+ * @param [formatTimeStr = true] - 是否格式化时间文本为普通格式 ,比如 yyyy-MM-dd 、HH:mm:ss
1861
1902
  * @param [options.id = createGuid()] - 对象的id标识
1862
1903
  * @param [options.enabled = true] - 对象的启用状态
1863
1904
  * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container
1905
+ * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。
1906
+ * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。
1864
1907
  */
1865
1908
  declare class Animation extends BaseCzmControl {
1866
1909
  constructor(options?: {
@@ -1868,7 +1911,9 @@ declare class Animation extends BaseCzmControl {
1868
1911
  id?: string | number;
1869
1912
  enabled?: boolean;
1870
1913
  parentContainer?: HTMLElement;
1871
- });
1914
+ insertIndex?: number;
1915
+ insertBefore?: HTMLElement | string;
1916
+ }, formatTimeStr?: boolean);
1872
1917
  }
1873
1918
 
1874
1919
  /**
@@ -1877,12 +1922,16 @@ declare class Animation extends BaseCzmControl {
1877
1922
  * @param [options.id = createGuid()] - 对象的id标识
1878
1923
  * @param [options.enabled = true] - 对象的启用状态
1879
1924
  * @param [options.destroyCzm = true] - remove移除时是否销毁Cesium对象,true时销毁,false时只是DOM隐藏
1925
+ * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。
1926
+ * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。
1880
1927
  */
1881
1928
  declare class BaseCzmControl extends BaseControl {
1882
1929
  constructor(options?: {
1883
1930
  id?: string | number;
1884
1931
  enabled?: boolean;
1885
1932
  destroyCzm?: boolean;
1933
+ insertIndex?: number;
1934
+ insertBefore?: HTMLElement | string;
1886
1935
  });
1887
1936
  }
1888
1937
 
@@ -1892,12 +1941,16 @@ declare class BaseCzmControl extends BaseControl {
1892
1941
  * @param [options.id = createGuid()] - 对象的id标识
1893
1942
  * @param [options.enabled = true] - 对象的启用状态
1894
1943
  * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container
1944
+ * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。
1945
+ * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。
1895
1946
  */
1896
1947
  declare class BaseLayerPicker extends BaseCzmControl {
1897
1948
  constructor(options?: {
1898
1949
  id?: string | number;
1899
1950
  enabled?: boolean;
1900
1951
  parentContainer?: HTMLElement;
1952
+ insertIndex?: number;
1953
+ insertBefore?: HTMLElement | string;
1901
1954
  });
1902
1955
  /**
1903
1956
  * 父容器DOM对象
@@ -1911,12 +1964,16 @@ declare class BaseLayerPicker extends BaseCzmControl {
1911
1964
  * @param [options.id = createGuid()] - 对象的id标识
1912
1965
  * @param [options.enabled = true] - 对象的启用状态
1913
1966
  * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.toolbar
1967
+ * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。
1968
+ * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。
1914
1969
  */
1915
1970
  declare class FullscreenButton extends BaseCzmControl {
1916
1971
  constructor(options?: {
1917
1972
  id?: string | number;
1918
1973
  enabled?: boolean;
1919
1974
  parentContainer?: HTMLElement;
1975
+ insertIndex?: number;
1976
+ insertBefore?: HTMLElement | string;
1920
1977
  });
1921
1978
  /**
1922
1979
  * 父容器DOM对象
@@ -1930,12 +1987,16 @@ declare class FullscreenButton extends BaseCzmControl {
1930
1987
  * @param [options.id = createGuid()] - 对象的id标识
1931
1988
  * @param [options.enabled = true] - 对象的启用状态
1932
1989
  * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.toolbar
1990
+ * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。
1991
+ * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。
1933
1992
  */
1934
1993
  declare class Geocoder extends BaseCzmControl {
1935
1994
  constructor(options?: {
1936
1995
  id?: string | number;
1937
1996
  enabled?: boolean;
1938
1997
  parentContainer?: HTMLElement;
1998
+ insertIndex?: number;
1999
+ insertBefore?: HTMLElement | string;
1939
2000
  });
1940
2001
  /**
1941
2002
  * 父容器DOM对象
@@ -1950,6 +2011,8 @@ declare class Geocoder extends BaseCzmControl {
1950
2011
  * @param [options.id = createGuid()] - 对象的id标识
1951
2012
  * @param [options.enabled = true] - 对象的启用状态
1952
2013
  * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.toolbar
2014
+ * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。
2015
+ * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。
1953
2016
  */
1954
2017
  declare class HomeButton extends BaseCzmControl {
1955
2018
  constructor(options?: {
@@ -1957,6 +2020,8 @@ declare class HomeButton extends BaseCzmControl {
1957
2020
  id?: string | number;
1958
2021
  enabled?: boolean;
1959
2022
  parentContainer?: HTMLElement;
2023
+ insertIndex?: number;
2024
+ insertBefore?: HTMLElement | string;
1960
2025
  });
1961
2026
  /**
1962
2027
  * 父容器DOM对象
@@ -1970,12 +2035,16 @@ declare class HomeButton extends BaseCzmControl {
1970
2035
  * @param [options.id = createGuid()] - 对象的id标识
1971
2036
  * @param [options.enabled = true] - 对象的启用状态
1972
2037
  * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.toolbar
2038
+ * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。
2039
+ * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。
1973
2040
  */
1974
2041
  declare class NavigationHelpButton extends BaseCzmControl {
1975
2042
  constructor(options?: {
1976
2043
  id?: string | number;
1977
2044
  enabled?: boolean;
1978
2045
  parentContainer?: HTMLElement;
2046
+ insertIndex?: number;
2047
+ insertBefore?: HTMLElement | string;
1979
2048
  });
1980
2049
  /**
1981
2050
  * 父容器DOM对象
@@ -1989,12 +2058,16 @@ declare class NavigationHelpButton extends BaseCzmControl {
1989
2058
  * @param [options.id = createGuid()] - 对象的id标识
1990
2059
  * @param [options.enabled = true] - 对象的启用状态
1991
2060
  * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.toolbar
2061
+ * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。
2062
+ * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。
1992
2063
  */
1993
2064
  declare class ProjectionPicker extends BaseCzmControl {
1994
2065
  constructor(options?: {
1995
2066
  id?: string | number;
1996
2067
  enabled?: boolean;
1997
2068
  parentContainer?: HTMLElement;
2069
+ insertIndex?: number;
2070
+ insertBefore?: HTMLElement | string;
1998
2071
  });
1999
2072
  /**
2000
2073
  * 父容器DOM对象
@@ -2009,6 +2082,8 @@ declare class ProjectionPicker extends BaseCzmControl {
2009
2082
  * @param [options.id = createGuid()] - 对象的id标识
2010
2083
  * @param [options.enabled = true] - 对象的启用状态
2011
2084
  * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.toolbar
2085
+ * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。
2086
+ * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。
2012
2087
  */
2013
2088
  declare class SceneModePicker extends BaseCzmControl {
2014
2089
  constructor(options?: {
@@ -2016,6 +2091,8 @@ declare class SceneModePicker extends BaseCzmControl {
2016
2091
  id?: string | number;
2017
2092
  enabled?: boolean;
2018
2093
  parentContainer?: HTMLElement;
2094
+ insertIndex?: number;
2095
+ insertBefore?: HTMLElement | string;
2019
2096
  });
2020
2097
  /**
2021
2098
  * 父容器DOM对象
@@ -2028,6 +2105,7 @@ declare class SceneModePicker extends BaseCzmControl {
2028
2105
  * @param [options] - 参数对象,包括以下:
2029
2106
  * @param [options.zoom = true] - 刻度面板是否可以鼠标滚轮进行缩放
2030
2107
  * @param [options.maxSpan = 1] - 刻度放大的最大刻度跨度,单位:秒
2108
+ * @param [formatTimeStr = true] - 是否格式化时间文本为普通格式 ,比如 yyyy-MM-dd 、HH:mm:ss
2031
2109
  * @param [options.style] - 可以CSS样式,如:
2032
2110
  * @param [options.style.top] - css定位top位置, 如 top: '10px'
2033
2111
  * @param [options.style.bottom = 0] - css定位bottom位置
@@ -2036,6 +2114,8 @@ declare class SceneModePicker extends BaseCzmControl {
2036
2114
  * @param [options.id = createGuid()] - 对象的id标识
2037
2115
  * @param [options.enabled = true] - 对象的启用状态
2038
2116
  * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container
2117
+ * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。
2118
+ * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。
2039
2119
  */
2040
2120
  declare class Timeline extends BaseCzmControl {
2041
2121
  constructor(options?: {
@@ -2050,7 +2130,9 @@ declare class Timeline extends BaseCzmControl {
2050
2130
  id?: string | number;
2051
2131
  enabled?: boolean;
2052
2132
  parentContainer?: HTMLElement;
2053
- });
2133
+ insertIndex?: number;
2134
+ insertBefore?: HTMLElement | string;
2135
+ }, formatTimeStr?: boolean);
2054
2136
  /**
2055
2137
  * @param startTime - 开始时间
2056
2138
  * @param stopTime - 结束时间
@@ -2064,12 +2146,16 @@ declare class Timeline extends BaseCzmControl {
2064
2146
  * @param [options.id = createGuid()] - 对象的id标识
2065
2147
  * @param [options.enabled = true] - 对象的启用状态
2066
2148
  * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.toolbar
2149
+ * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。
2150
+ * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。
2067
2151
  */
2068
2152
  declare class VRButton extends BaseCzmControl {
2069
2153
  constructor(options?: {
2070
2154
  id?: string | number;
2071
2155
  enabled?: boolean;
2072
2156
  parentContainer?: HTMLElement;
2157
+ insertIndex?: number;
2158
+ insertBefore?: HTMLElement | string;
2073
2159
  });
2074
2160
  /**
2075
2161
  * 父容器DOM对象
@@ -2115,7 +2201,7 @@ declare class DistanceLegend extends BaseControl {
2115
2201
  enabled?: boolean;
2116
2202
  parentContainer?: HTMLElement;
2117
2203
  insertIndex?: number;
2118
- insertBefore?: HTMLElement;
2204
+ insertBefore?: HTMLElement | string;
2119
2205
  });
2120
2206
  /**
2121
2207
  * 当前比例尺值(单位:米)
@@ -2178,7 +2264,6 @@ declare namespace LocationBar {
2178
2264
  * @param [options.enabled = true] - 对象的启用状态
2179
2265
  * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container
2180
2266
  * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。
2181
- * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。
2182
2267
  */
2183
2268
  declare class LocationBar extends BaseControl {
2184
2269
  constructor(options?: {
@@ -2197,7 +2282,7 @@ declare class LocationBar extends BaseControl {
2197
2282
  enabled?: boolean;
2198
2283
  parentContainer?: HTMLElement;
2199
2284
  insertIndex?: number;
2200
- insertBefore?: HTMLElement;
2285
+ insertBefore?: HTMLElement | string;
2201
2286
  });
2202
2287
  /**
2203
2288
  * 显示的数据
@@ -2237,7 +2322,7 @@ declare class MapCompare extends BaseControl {
2237
2322
  enabled?: boolean;
2238
2323
  parentContainer?: HTMLElement;
2239
2324
  insertIndex?: number;
2240
- insertBefore?: HTMLElement;
2325
+ insertBefore?: HTMLElement | string;
2241
2326
  });
2242
2327
  /**
2243
2328
  * 对比的地图对象
@@ -2276,7 +2361,7 @@ declare class MapSplit extends BaseControl {
2276
2361
  enabled?: boolean;
2277
2362
  parentContainer?: HTMLElement;
2278
2363
  insertIndex?: number;
2279
- insertBefore?: HTMLElement;
2364
+ insertBefore?: HTMLElement | string;
2280
2365
  });
2281
2366
  /**
2282
2367
  * 左侧区域瓦片图层
@@ -2332,7 +2417,7 @@ declare class MouseDownView extends BaseControl {
2332
2417
  enabled?: boolean;
2333
2418
  parentContainer?: HTMLElement;
2334
2419
  insertIndex?: number;
2335
- insertBefore?: HTMLElement;
2420
+ insertBefore?: HTMLElement | string;
2336
2421
  });
2337
2422
  }
2338
2423
 
@@ -2383,7 +2468,7 @@ declare class OverviewMap extends BaseControl {
2383
2468
  enabled?: boolean;
2384
2469
  parentContainer?: HTMLElement;
2385
2470
  insertIndex?: number;
2386
- insertBefore?: HTMLElement;
2471
+ insertBefore?: HTMLElement | string;
2387
2472
  });
2388
2473
  /**
2389
2474
  * 鹰眼小地图对象
@@ -2449,7 +2534,7 @@ declare class ToolButton extends BaseControl {
2449
2534
  enabled?: boolean;
2450
2535
  parentContainer?: HTMLElement;
2451
2536
  insertIndex?: number;
2452
- insertBefore?: HTMLElement;
2537
+ insertBefore?: HTMLElement | string;
2453
2538
  });
2454
2539
  /**
2455
2540
  * 父容器DOM对象
@@ -2478,7 +2563,7 @@ declare class Zoom extends BaseControl {
2478
2563
  enabled?: boolean;
2479
2564
  parentContainer?: HTMLElement;
2480
2565
  insertIndex?: number;
2481
- insertBefore?: HTMLElement;
2566
+ insertBefore?: HTMLElement | string;
2482
2567
  });
2483
2568
  /**
2484
2569
  * 父容器DOM对象
@@ -7131,8 +7216,10 @@ declare namespace VolumeCloud {
7131
7216
  * 体渲染气象云 矢量对象,该对象暂不支持鼠标交互和拾取
7132
7217
  * @param options - 参数对象,包括以下:
7133
7218
  * @param options.data - 数据
7219
+ * @param [options.colors] - 色带颜色数组
7220
+ * @param [options.steps] - 色带对应的数值数组
7134
7221
  * @param [options.threshold = 65/255] - 筛选值
7135
- * @param [options.steps = 600] - 精细度
7222
+ * @param [options.detail = 1000] - 精细度
7136
7223
  * @param [options.xCut = -0.5] - X轴裁剪,取值范围:-0.5至0.5
7137
7224
  * @param [options.yCut = -0.5] - Y轴裁剪,取值范围:-0.5至0.5
7138
7225
  * @param [options.zCut = 0.5] - Z轴裁剪,取值范围:-0.5至0.5
@@ -7144,8 +7231,10 @@ declare namespace VolumeCloud {
7144
7231
  declare class VolumeCloud extends BasePrimitive {
7145
7232
  constructor(options: {
7146
7233
  data: VolumeCloud.DataOptions;
7234
+ colors?: string[];
7235
+ steps?: number[];
7147
7236
  threshold?: number;
7148
- steps?: number;
7237
+ detail?: number;
7149
7238
  xCut?: number;
7150
7239
  yCut?: number;
7151
7240
  zCut?: number;
@@ -7336,7 +7425,7 @@ declare namespace DivGraphic {
7336
7425
  * @param [options.hasEdit = true] - 是否允许编辑
7337
7426
  * @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
7338
7427
  * @param [options.testPoint] - 测试点 的对应样式 ,可以进行用于比较测试div的位置,方便调试CSS。
7339
- * @param [options.pointerEvents] - DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。
7428
+ * @param [options.pointerEvents] - DIV是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。如果传入值后,这个值优先级最高。
7340
7429
  * @param [options.hasZIndex = false] - 是否自动调整DIV的层级顺序。
7341
7430
  * @param [options.zIndex = "auto"] - 指定固定的zIndex层级属性(当hasZIndex为true时无效)
7342
7431
  * @param [options.depthTest = true] - 是否打开深度判断(true时判断是否在球背面)
@@ -8366,352 +8455,6 @@ declare class BasePointEntity extends BaseEntity {
8366
8455
  * 显示隐藏状态
8367
8456
  */
8368
8457
  show: boolean;
8369
- }
8370
-
8371
- /**
8372
- * 多个坐标的线面状 Entity矢量数据 基类
8373
- * @param options - 参数对象,包括以下:
8374
- * @param options.positions - 坐标位置
8375
- * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明
8376
- * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。
8377
- * @param [options.availability] - 指定时间范围内显示该对象
8378
- * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
8379
- * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
8380
- * @param [options.parent] - 要与此实体关联的父实体。
8381
- * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
8382
- * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
8383
- * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
8384
- * @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
8385
- * @param [options.hasDrawDelPoint = true] - 绘制时,是否可以右键删除点
8386
- * @param [options.hasEdit = true] - 是否允许编辑
8387
- * @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
8388
- * @param [options.hasMoveEdit = true] - 编辑时,是否可以整体平移
8389
- * @param [options.hasHeightEdit = true] - 编辑时,当有diffHeight时,是否可以编辑高度
8390
- * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
8391
- * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
8392
- * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
8393
- * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数
8394
- * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定
8395
- * @param [options.id = createGuid()] - 矢量数据id标识
8396
- * @param [options.name = ''] - 矢量数据名称
8397
- * @param [options.show = true] - 矢量数据是否显示
8398
- * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件
8399
- * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
8400
- * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。
8401
- * @param [options.flyToOptions] - 加载完成数据后是否自动飞行定位到数据所在的区域的对应 {@link BaseGraphic#flyTo}方法参数。
8402
- */
8403
- declare class BasePolyEntity extends BaseEntity {
8404
- constructor(options: {
8405
- positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[];
8406
- style: any;
8407
- attr?: any;
8408
- availability?: Cesium.TimeIntervalCollection | Cesium.TimeInterval | any[] | any;
8409
- description?: Cesium.Property | string;
8410
- viewFrom?: Cesium.Property;
8411
- parent?: Cesium.Entity;
8412
- onBeforeCreate?: (...params: any[]) => any;
8413
- minPointNum?: number;
8414
- maxPointNum?: number;
8415
- validDrawPosition?: (...params: any[]) => any;
8416
- hasDrawDelPoint?: boolean;
8417
- hasEdit?: boolean;
8418
- hasEditContextMenu?: boolean;
8419
- hasMoveEdit?: boolean;
8420
- hasHeightEdit?: boolean;
8421
- popup?: string | any[] | ((...params: any[]) => any);
8422
- popupOptions?: Popup.StyleOptions | any;
8423
- tooltip?: string | any[] | ((...params: any[]) => any);
8424
- tooltipOptions?: Tooltip.StyleOptions | any;
8425
- contextmenuItems?: any;
8426
- id?: string | number;
8427
- name?: string;
8428
- show?: boolean;
8429
- eventParent?: BaseClass | boolean;
8430
- allowDrillPick?: boolean | ((...params: any[]) => any);
8431
- flyTo?: boolean;
8432
- flyToOptions?: any;
8433
- });
8434
- /**
8435
- * 编辑时,是否可以整体平移
8436
- */
8437
- readonly hasMoveEdit: boolean;
8438
- /**
8439
- * 编辑时,当有diffHeight时,是否可以编辑高度
8440
- */
8441
- readonly hasHeightEdit: boolean;
8442
- /**
8443
- * 编辑处理类
8444
- */
8445
- readonly EditClass: EditPoly;
8446
- /**
8447
- * 中心点坐标 (笛卡尔坐标)
8448
- */
8449
- readonly center: Cesium.Cartesian3;
8450
- /**
8451
- * 围合面的内部中心点坐标
8452
- */
8453
- readonly centerOfMass: Cesium.Cartesian3;
8454
- /**
8455
- * 边线的中心点坐标
8456
- */
8457
- readonly centerOfLine: Cesium.Cartesian3;
8458
- /**
8459
- * 距离(单位:米)
8460
- */
8461
- readonly distance: number;
8462
- /**
8463
- * 面积(单位:平方米)
8464
- */
8465
- readonly area: number;
8466
- /**
8467
- * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象
8468
- */
8469
- positions: Cesium.Cartesian3[];
8470
- /**
8471
- * 实际显示的坐标数组 (笛卡尔坐标),
8472
- * 如标绘中时positions对应的可能只是控制点坐标或CallbackProperty属性
8473
- */
8474
- readonly positionsShow: Cesium.Cartesian3[];
8475
- /**
8476
- * 位置坐标数组
8477
- */
8478
- readonly points: LngLatPoint[] | Cesium.Cartesian3[] | any[];
8479
- /**
8480
- * 位置坐标(数组对象),示例 [ [123.123456,32.654321,198.7], [111.123456,22.654321,50.7] ]
8481
- */
8482
- readonly coordinates: any[][];
8483
- /**
8484
- * 坐标数据对应的矩形边界
8485
- */
8486
- readonly rectangle: Cesium.Rectangle;
8487
- /**
8488
- * 位置坐标(数组对象),示例 [ [123.123456,32.654321,198.7], [111.123456,22.654321,50.7] ]
8489
- * @param noAlt - true时不导出高度值
8490
- * @returns 位置坐标(数组对象)
8491
- */
8492
- getCoordinates(noAlt: boolean): any[][];
8493
- /**
8494
- * 判断点是否在当前对象的坐标点围成的多边形内
8495
- * @param position - 需要判断的点
8496
- * @returns 是否在多边形内
8497
- */
8498
- isInPoly(position: Cesium.Cartesian3 | LngLatPoint): boolean;
8499
- /**
8500
- * 异步计算更新坐标高度进行贴地(或贴模型),内部自动调用{@link PolyUtil#computeSurfacePoints}方法处理。
8501
- * @param [options = {}] - 参数对象:
8502
- * @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
8503
- * @param [options.objectsToExclude] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
8504
- * @param [options.offset = 0] - 可以按需增加偏移高度(单位:米),便于可视
8505
- * @returns 异步计算完成的Promise
8506
- */
8507
- autoSurfaceHeight(options?: {
8508
- has3dtiles?: boolean;
8509
- objectsToExclude?: any;
8510
- offset?: number;
8511
- }): Promise<any>;
8512
- /**
8513
- * 按Cesium.CallbackProperty的方式 更新坐标集合(更加平滑)
8514
- * @param [positions] - 坐标数组
8515
- * @returns 当前坐标集合
8516
- */
8517
- setCallbackPositions(positions?: string[] | any[][] | LngLatPoint[]): Cesium.Cartesian3[];
8518
- }
8519
-
8520
- declare namespace BillboardEntity {
8521
- /**
8522
- * 图标点 支持的样式信息
8523
- * @property [image] - 用于矢量对象的 图像、URI或Canvas
8524
- * @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
8525
- * @property [scale = 1] - 图像大小的比例
8526
- * @property [rotation = 0] - 旋转角度(弧度值),正北为0,逆时针旋转
8527
- * @property [rotationDegree = 0] - 旋转角度(度数值,0-360度),与rotation二选一
8528
- * @property [horizontalOrigin] - 横向方向的定位
8529
- * @property [verticalOrigin] - 垂直方向的定位
8530
- * @property [width] - 指定广告牌的宽度(以像素为单位),覆盖图片本身大小。
8531
- * @property [height] - 指定广告牌的高度(以像素为单位),覆盖图片本身大小。
8532
- * @property [hasPixelOffset = false] - 是否存在偏移量
8533
- * @property [pixelOffsetX = 0] - 横向偏移像素
8534
- * @property [pixelOffsetY = 0] - 纵向偏移像素
8535
- * @property [pixelOffset = Cartesian2.ZERO] - 指定像素偏移量。
8536
- * @property [scaleByDistance = false] - 是否按视距缩放 或 设置基于与相机的距离缩放点
8537
- * @property [scaleByDistance_far = 1000000] - 上限
8538
- * @property [scaleByDistance_farValue = 0.1] - 比例值
8539
- * @property [scaleByDistance_near = 1000] - 下限
8540
- * @property [scaleByDistance_nearValue = 1] - 比例值
8541
- * @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定该广告牌将显示在与摄像机的多大距离
8542
- * @property [distanceDisplayCondition_far = number.MAX_VALUE] - 最大距离
8543
- * @property [distanceDisplayCondition_near = 0] - 最小距离
8544
- * @property [distanceDisplayPoint] - 当视角距离超过一定距离后(distanceDisplayCondition_far定义的) 后显示为 像素点 对象的样式,仅在distanceDisplayCondition设置时有效。
8545
- * @property [clampToGround = false] - 是否贴地
8546
- * @property [heightReference = Cesium.HeightReference.NONE] - 指定高度相对于什么的属性。
8547
- * @property [visibleDepth = true] - 是否被遮挡
8548
- * @property [disableDepthTestDistance] - 指定从相机到禁用深度测试的距离。
8549
- * @property [color = Color.WHITE] - 附加的颜色
8550
- * @property [eyeOffset = Cartesian3.ZERO] - 眼偏移量
8551
- * @property [alignedAxis = Cartesian3.ZERO] - 指定单位旋转向量轴。
8552
- * @property [sizeInMeters] - 指定该广告牌的大小是否应该以米来度量。
8553
- * @property [translucencyByDistance] - 用于基于与相机的距离设置半透明度。
8554
- * @property [pixelOffsetScaleByDistance] - 用于基于与相机的距离设置pixelOffset。
8555
- * @property [pixelOffsetScaleByDistance_far = 1000000] - 上限
8556
- * @property [pixelOffsetScaleByDistance_farValue = 0.1] - 比例值
8557
- * @property [pixelOffsetScaleByDistance_near = 1000] - 下限
8558
- * @property [pixelOffsetScaleByDistance_nearValue = 1] - 比例值
8559
- * @property [imageSubRegion] - 定义用于广告牌的图像的子区域,而不是从左下角开始以像素为单位的整个图像。
8560
- * @property [setHeight] - 指定坐标高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
8561
- * @property [addHeight] - 在现有坐标基础上增加的高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
8562
- * @property [highlight] - 鼠标移入或单击(type:'click')后的对应高亮的部分样式,创建Graphic后也可以openHighlight、closeHighlight方法来手动调用
8563
- * @property [label] - 支持附带文字的显示
8564
- */
8565
- type StyleOptions = any | {
8566
- image?: string | HTMLCanvasElement;
8567
- opacity?: number;
8568
- scale?: number;
8569
- rotation?: number;
8570
- rotationDegree?: number;
8571
- horizontalOrigin?: Cesium.HorizontalOrigin;
8572
- verticalOrigin?: Cesium.VerticalOrigin;
8573
- width?: number;
8574
- height?: number;
8575
- hasPixelOffset?: boolean;
8576
- pixelOffsetX?: number;
8577
- pixelOffsetY?: number;
8578
- pixelOffset?: Cesium.Cartesian2 | number[];
8579
- scaleByDistance?: boolean | Cesium.NearFarScalar;
8580
- scaleByDistance_far?: number;
8581
- scaleByDistance_farValue?: number;
8582
- scaleByDistance_near?: number;
8583
- scaleByDistance_nearValue?: number;
8584
- distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition;
8585
- distanceDisplayCondition_far?: number;
8586
- distanceDisplayCondition_near?: number;
8587
- distanceDisplayPoint?: PointEntity.StyleOptions | any;
8588
- clampToGround?: boolean;
8589
- heightReference?: Cesium.HeightReference;
8590
- visibleDepth?: boolean;
8591
- disableDepthTestDistance?: number;
8592
- color?: Cesium.Color;
8593
- eyeOffset?: Cesium.Cartesian3;
8594
- alignedAxis?: Cesium.Cartesian3;
8595
- sizeInMeters?: boolean;
8596
- translucencyByDistance?: Cesium.NearFarScalar;
8597
- pixelOffsetScaleByDistance?: boolean | Cesium.NearFarScalar;
8598
- pixelOffsetScaleByDistance_far?: number;
8599
- pixelOffsetScaleByDistance_farValue?: number;
8600
- pixelOffsetScaleByDistance_near?: number;
8601
- pixelOffsetScaleByDistance_nearValue?: number;
8602
- imageSubRegion?: Cesium.BoundingRectangle;
8603
- setHeight?: number | string;
8604
- addHeight?: number | string;
8605
- highlight?: BillboardEntity.StyleOptions | any;
8606
- label?: LabelEntity.StyleOptions | any;
8607
- };
8608
- }
8609
-
8610
- /**
8611
- * 图标点 Entity对象
8612
- * @param options - 参数对象,包括以下:
8613
- * @param options.position - 坐标位置
8614
- * @param options.style - 样式信息
8615
- * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
8616
- * @param [options.availability] - 指定时间范围内显示该对象
8617
- * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
8618
- * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
8619
- * @param [options.parent] - 要与此实体关联的父实体。
8620
- * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
8621
- * @param [options.maxCacheCount = 50] - 当使用addDynamicPosition设置为动画轨迹位置时,保留的坐标点数量,传-1时不限制
8622
- * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时,在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。
8623
- * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时, 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。
8624
- * @param [options.clampToTileset] - 当使用addDynamicPosition设置为动画轨迹位置时,是否进行贴模型。
8625
- * @param [options.frameRateHeight = 30] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,多少帧计算一次贴模型高度
8626
- * @param [options.objectsToExclude] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
8627
- * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。
8628
- * @param [options.hasEdit = true] - 是否允许编辑
8629
- * @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
8630
- * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
8631
- * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
8632
- * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
8633
- * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数
8634
- * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定
8635
- * @param [options.model] - 设置附加的 gltf模型 和对应的样式
8636
- * @param [options.point] - 设置附加的 像素点 和对应的样式
8637
- * @param [options.circle] - 设置附加的 圆 和对应的样式
8638
- * @param [options.path] - 设置附加的 轨迹路线 和对应的样式
8639
- * @param [options.id = createGuid()] - 矢量数据id标识
8640
- * @param [options.name = ''] - 矢量数据名称
8641
- * @param [options.show = true] - 矢量数据是否显示
8642
- * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件
8643
- * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
8644
- * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。
8645
- * @param [options.flyToOptions] - 加载完成数据后是否自动飞行定位到数据所在的区域的对应 {@link BaseGraphic#flyTo}方法参数。
8646
- */
8647
- declare class BillboardEntity extends BasePointEntity {
8648
- constructor(options: {
8649
- position: LngLatPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string;
8650
- style: BillboardEntity.StyleOptions | any;
8651
- attr?: any;
8652
- availability?: Cesium.TimeIntervalCollection | Cesium.TimeInterval | any[] | any;
8653
- description?: Cesium.Property | string;
8654
- viewFrom?: Cesium.Property;
8655
- parent?: Cesium.Entity;
8656
- onBeforeCreate?: (...params: any[]) => any;
8657
- maxCacheCount?: number;
8658
- forwardExtrapolationType?: Cesium.ExtrapolationType;
8659
- backwardExtrapolationType?: Cesium.ExtrapolationType;
8660
- clampToTileset?: boolean;
8661
- frameRateHeight?: number;
8662
- objectsToExclude?: any;
8663
- drawShow?: boolean;
8664
- hasEdit?: boolean;
8665
- hasEditContextMenu?: boolean;
8666
- popup?: string | any[] | ((...params: any[]) => any);
8667
- popupOptions?: Popup.StyleOptions | any;
8668
- tooltip?: string | any[] | ((...params: any[]) => any);
8669
- tooltipOptions?: Tooltip.StyleOptions | any;
8670
- contextmenuItems?: any;
8671
- model?: ModelEntity.StyleOptions | any | any;
8672
- point?: PointEntity.StyleOptions | any | any;
8673
- circle?: CircleEntity.StyleOptions | any | any;
8674
- path?: PathEntity.StyleOptions | any | any;
8675
- id?: string | number;
8676
- name?: string;
8677
- show?: boolean;
8678
- eventParent?: BaseClass | boolean;
8679
- allowDrillPick?: boolean | ((...params: any[]) => any);
8680
- flyTo?: boolean;
8681
- flyToOptions?: any;
8682
- });
8683
- /**
8684
- * 矢量数据对应的 Cesium内部对象的具体类型对象
8685
- */
8686
- readonly entityGraphic: Cesium.BillboardGraphics;
8687
- /**
8688
- * 图像、URI或Canvas
8689
- */
8690
- image: string | HTMLCanvasElement;
8691
- /**
8692
- * 设置透明度
8693
- * @param value - 透明度
8694
- * @returns 无
8695
- */
8696
- setOpacity(value: number): void;
8697
- /**
8698
- * 开始执行弹跳动画
8699
- * @param [options] - 参数,包括
8700
- * @param [options.maxHeight = 50] - 弹跳的最大高度, 单位:像素
8701
- * @param [options.step = 1] - 弹跳增量, 控制速度,单位:像素
8702
- * @param [options.autoStop] - 是否自动停止,true时:会逐渐减弱至停止状态
8703
- * @returns 无
8704
- */
8705
- startBounce(options?: {
8706
- maxHeight?: number;
8707
- step?: number;
8708
- autoStop?: boolean;
8709
- }): void;
8710
- /**
8711
- * 停止弹跳动画
8712
- * @returns 无
8713
- */
8714
- stopBounce(): void;
8715
8458
  /**
8716
8459
  * 指定时间范围内显示该对象 [提示:仅部分子类实现,非所有对象都支持]
8717
8460
  * @example
@@ -8746,6 +8489,352 @@ declare class BillboardEntity extends BasePointEntity {
8746
8489
  availability: Cesium.TimeIntervalCollection;
8747
8490
  }
8748
8491
 
8492
+ /**
8493
+ * 多个坐标的线面状 Entity矢量数据 基类
8494
+ * @param options - 参数对象,包括以下:
8495
+ * @param options.positions - 坐标位置
8496
+ * @param options.style - 矢量数据的 样式信息,具体见各类数据的说明
8497
+ * @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。
8498
+ * @param [options.availability] - 指定时间范围内显示该对象
8499
+ * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
8500
+ * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
8501
+ * @param [options.parent] - 要与此实体关联的父实体。
8502
+ * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
8503
+ * @param [options.minPointNum = 2] - 绘制时,至少需要点的个数
8504
+ * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
8505
+ * @param [options.validDrawPosition] - 绘制时,外部自定义校验坐标,比如判断限定在指定区域内绘制。
8506
+ * @param [options.hasDrawDelPoint = true] - 绘制时,是否可以右键删除点
8507
+ * @param [options.hasEdit = true] - 是否允许编辑
8508
+ * @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
8509
+ * @param [options.hasMoveEdit = true] - 编辑时,是否可以整体平移
8510
+ * @param [options.hasHeightEdit = true] - 编辑时,当有diffHeight时,是否可以编辑高度
8511
+ * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
8512
+ * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
8513
+ * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
8514
+ * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数
8515
+ * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定
8516
+ * @param [options.id = createGuid()] - 矢量数据id标识
8517
+ * @param [options.name = ''] - 矢量数据名称
8518
+ * @param [options.show = true] - 矢量数据是否显示
8519
+ * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件
8520
+ * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
8521
+ * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。
8522
+ * @param [options.flyToOptions] - 加载完成数据后是否自动飞行定位到数据所在的区域的对应 {@link BaseGraphic#flyTo}方法参数。
8523
+ */
8524
+ declare class BasePolyEntity extends BaseEntity {
8525
+ constructor(options: {
8526
+ positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[];
8527
+ style: any;
8528
+ attr?: any;
8529
+ availability?: Cesium.TimeIntervalCollection | Cesium.TimeInterval | any[] | any;
8530
+ description?: Cesium.Property | string;
8531
+ viewFrom?: Cesium.Property;
8532
+ parent?: Cesium.Entity;
8533
+ onBeforeCreate?: (...params: any[]) => any;
8534
+ minPointNum?: number;
8535
+ maxPointNum?: number;
8536
+ validDrawPosition?: (...params: any[]) => any;
8537
+ hasDrawDelPoint?: boolean;
8538
+ hasEdit?: boolean;
8539
+ hasEditContextMenu?: boolean;
8540
+ hasMoveEdit?: boolean;
8541
+ hasHeightEdit?: boolean;
8542
+ popup?: string | any[] | ((...params: any[]) => any);
8543
+ popupOptions?: Popup.StyleOptions | any;
8544
+ tooltip?: string | any[] | ((...params: any[]) => any);
8545
+ tooltipOptions?: Tooltip.StyleOptions | any;
8546
+ contextmenuItems?: any;
8547
+ id?: string | number;
8548
+ name?: string;
8549
+ show?: boolean;
8550
+ eventParent?: BaseClass | boolean;
8551
+ allowDrillPick?: boolean | ((...params: any[]) => any);
8552
+ flyTo?: boolean;
8553
+ flyToOptions?: any;
8554
+ });
8555
+ /**
8556
+ * 编辑时,是否可以整体平移
8557
+ */
8558
+ readonly hasMoveEdit: boolean;
8559
+ /**
8560
+ * 编辑时,当有diffHeight时,是否可以编辑高度
8561
+ */
8562
+ readonly hasHeightEdit: boolean;
8563
+ /**
8564
+ * 编辑处理类
8565
+ */
8566
+ readonly EditClass: EditPoly;
8567
+ /**
8568
+ * 中心点坐标 (笛卡尔坐标)
8569
+ */
8570
+ readonly center: Cesium.Cartesian3;
8571
+ /**
8572
+ * 围合面的内部中心点坐标
8573
+ */
8574
+ readonly centerOfMass: Cesium.Cartesian3;
8575
+ /**
8576
+ * 边线的中心点坐标
8577
+ */
8578
+ readonly centerOfLine: Cesium.Cartesian3;
8579
+ /**
8580
+ * 距离(单位:米)
8581
+ */
8582
+ readonly distance: number;
8583
+ /**
8584
+ * 面积(单位:平方米)
8585
+ */
8586
+ readonly area: number;
8587
+ /**
8588
+ * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象
8589
+ */
8590
+ positions: Cesium.Cartesian3[];
8591
+ /**
8592
+ * 实际显示的坐标数组 (笛卡尔坐标),
8593
+ * 如标绘中时positions对应的可能只是控制点坐标或CallbackProperty属性
8594
+ */
8595
+ readonly positionsShow: Cesium.Cartesian3[];
8596
+ /**
8597
+ * 位置坐标数组
8598
+ */
8599
+ readonly points: LngLatPoint[] | Cesium.Cartesian3[] | any[];
8600
+ /**
8601
+ * 位置坐标(数组对象),示例 [ [123.123456,32.654321,198.7], [111.123456,22.654321,50.7] ]
8602
+ */
8603
+ readonly coordinates: any[][];
8604
+ /**
8605
+ * 坐标数据对应的矩形边界
8606
+ */
8607
+ readonly rectangle: Cesium.Rectangle;
8608
+ /**
8609
+ * 位置坐标(数组对象),示例 [ [123.123456,32.654321,198.7], [111.123456,22.654321,50.7] ]
8610
+ * @param noAlt - true时不导出高度值
8611
+ * @returns 位置坐标(数组对象)
8612
+ */
8613
+ getCoordinates(noAlt: boolean): any[][];
8614
+ /**
8615
+ * 判断点是否在当前对象的坐标点围成的多边形内
8616
+ * @param position - 需要判断的点
8617
+ * @returns 是否在多边形内
8618
+ */
8619
+ isInPoly(position: Cesium.Cartesian3 | LngLatPoint): boolean;
8620
+ /**
8621
+ * 异步计算更新坐标高度进行贴地(或贴模型),内部自动调用{@link PolyUtil#computeSurfacePoints}方法处理。
8622
+ * @param [options = {}] - 参数对象:
8623
+ * @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
8624
+ * @param [options.objectsToExclude] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
8625
+ * @param [options.offset = 0] - 可以按需增加偏移高度(单位:米),便于可视
8626
+ * @returns 异步计算完成的Promise
8627
+ */
8628
+ autoSurfaceHeight(options?: {
8629
+ has3dtiles?: boolean;
8630
+ objectsToExclude?: any;
8631
+ offset?: number;
8632
+ }): Promise<any>;
8633
+ /**
8634
+ * 按Cesium.CallbackProperty的方式 更新坐标集合(更加平滑)
8635
+ * @param [positions] - 坐标数组
8636
+ * @returns 当前坐标集合
8637
+ */
8638
+ setCallbackPositions(positions?: string[] | any[][] | LngLatPoint[]): Cesium.Cartesian3[];
8639
+ }
8640
+
8641
+ declare namespace BillboardEntity {
8642
+ /**
8643
+ * 图标点 支持的样式信息
8644
+ * @property [image] - 用于矢量对象的 图像、URI或Canvas
8645
+ * @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
8646
+ * @property [scale = 1] - 图像大小的比例
8647
+ * @property [rotation = 0] - 旋转角度(弧度值),正北为0,逆时针旋转
8648
+ * @property [rotationDegree = 0] - 旋转角度(度数值,0-360度),与rotation二选一
8649
+ * @property [horizontalOrigin] - 横向方向的定位
8650
+ * @property [verticalOrigin] - 垂直方向的定位
8651
+ * @property [width] - 指定广告牌的宽度(以像素为单位),覆盖图片本身大小。
8652
+ * @property [height] - 指定广告牌的高度(以像素为单位),覆盖图片本身大小。
8653
+ * @property [hasPixelOffset = false] - 是否存在偏移量
8654
+ * @property [pixelOffsetX = 0] - 横向偏移像素
8655
+ * @property [pixelOffsetY = 0] - 纵向偏移像素
8656
+ * @property [pixelOffset = Cartesian2.ZERO] - 指定像素偏移量。
8657
+ * @property [scaleByDistance = false] - 是否按视距缩放 或 设置基于与相机的距离缩放点
8658
+ * @property [scaleByDistance_far = 1000000] - 上限
8659
+ * @property [scaleByDistance_farValue = 0.1] - 比例值
8660
+ * @property [scaleByDistance_near = 1000] - 下限
8661
+ * @property [scaleByDistance_nearValue = 1] - 比例值
8662
+ * @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定该广告牌将显示在与摄像机的多大距离
8663
+ * @property [distanceDisplayCondition_far = number.MAX_VALUE] - 最大距离
8664
+ * @property [distanceDisplayCondition_near = 0] - 最小距离
8665
+ * @property [distanceDisplayPoint] - 当视角距离超过一定距离后(distanceDisplayCondition_far定义的) 后显示为 像素点 对象的样式,仅在distanceDisplayCondition设置时有效。
8666
+ * @property [clampToGround = false] - 是否贴地
8667
+ * @property [heightReference = Cesium.HeightReference.NONE] - 指定高度相对于什么的属性。
8668
+ * @property [visibleDepth = true] - 是否被遮挡
8669
+ * @property [disableDepthTestDistance] - 指定从相机到禁用深度测试的距离。
8670
+ * @property [color = Color.WHITE] - 附加的颜色
8671
+ * @property [eyeOffset = Cartesian3.ZERO] - 眼偏移量
8672
+ * @property [alignedAxis = Cartesian3.ZERO] - 指定单位旋转向量轴。
8673
+ * @property [sizeInMeters] - 指定该广告牌的大小是否应该以米来度量。
8674
+ * @property [translucencyByDistance] - 用于基于与相机的距离设置半透明度。
8675
+ * @property [pixelOffsetScaleByDistance] - 用于基于与相机的距离设置pixelOffset。
8676
+ * @property [pixelOffsetScaleByDistance_far = 1000000] - 上限
8677
+ * @property [pixelOffsetScaleByDistance_farValue = 0.1] - 比例值
8678
+ * @property [pixelOffsetScaleByDistance_near = 1000] - 下限
8679
+ * @property [pixelOffsetScaleByDistance_nearValue = 1] - 比例值
8680
+ * @property [imageSubRegion] - 定义用于广告牌的图像的子区域,而不是从左下角开始以像素为单位的整个图像。
8681
+ * @property [setHeight] - 指定坐标高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
8682
+ * @property [addHeight] - 在现有坐标基础上增加的高度值(对编辑时无效,仅初始化传入有效,常用于图层中配置),也支持字符串模版配置
8683
+ * @property [highlight] - 鼠标移入或单击(type:'click')后的对应高亮的部分样式,创建Graphic后也可以openHighlight、closeHighlight方法来手动调用
8684
+ * @property [label] - 支持附带文字的显示
8685
+ */
8686
+ type StyleOptions = any | {
8687
+ image?: string | HTMLCanvasElement;
8688
+ opacity?: number;
8689
+ scale?: number;
8690
+ rotation?: number;
8691
+ rotationDegree?: number;
8692
+ horizontalOrigin?: Cesium.HorizontalOrigin;
8693
+ verticalOrigin?: Cesium.VerticalOrigin;
8694
+ width?: number;
8695
+ height?: number;
8696
+ hasPixelOffset?: boolean;
8697
+ pixelOffsetX?: number;
8698
+ pixelOffsetY?: number;
8699
+ pixelOffset?: Cesium.Cartesian2 | number[];
8700
+ scaleByDistance?: boolean | Cesium.NearFarScalar;
8701
+ scaleByDistance_far?: number;
8702
+ scaleByDistance_farValue?: number;
8703
+ scaleByDistance_near?: number;
8704
+ scaleByDistance_nearValue?: number;
8705
+ distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition;
8706
+ distanceDisplayCondition_far?: number;
8707
+ distanceDisplayCondition_near?: number;
8708
+ distanceDisplayPoint?: PointEntity.StyleOptions | any;
8709
+ clampToGround?: boolean;
8710
+ heightReference?: Cesium.HeightReference;
8711
+ visibleDepth?: boolean;
8712
+ disableDepthTestDistance?: number;
8713
+ color?: Cesium.Color;
8714
+ eyeOffset?: Cesium.Cartesian3;
8715
+ alignedAxis?: Cesium.Cartesian3;
8716
+ sizeInMeters?: boolean;
8717
+ translucencyByDistance?: Cesium.NearFarScalar;
8718
+ pixelOffsetScaleByDistance?: boolean | Cesium.NearFarScalar;
8719
+ pixelOffsetScaleByDistance_far?: number;
8720
+ pixelOffsetScaleByDistance_farValue?: number;
8721
+ pixelOffsetScaleByDistance_near?: number;
8722
+ pixelOffsetScaleByDistance_nearValue?: number;
8723
+ imageSubRegion?: Cesium.BoundingRectangle;
8724
+ setHeight?: number | string;
8725
+ addHeight?: number | string;
8726
+ highlight?: BillboardEntity.StyleOptions | any;
8727
+ label?: LabelEntity.StyleOptions | any;
8728
+ };
8729
+ }
8730
+
8731
+ /**
8732
+ * 图标点 Entity对象
8733
+ * @param options - 参数对象,包括以下:
8734
+ * @param options.position - 坐标位置
8735
+ * @param options.style - 样式信息
8736
+ * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
8737
+ * @param [options.availability] - 指定时间范围内显示该对象
8738
+ * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
8739
+ * @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
8740
+ * @param [options.parent] - 要与此实体关联的父实体。
8741
+ * @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
8742
+ * @param [options.maxCacheCount = 50] - 当使用addDynamicPosition设置为动画轨迹位置时,保留的坐标点数量,传-1时不限制
8743
+ * @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时,在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。
8744
+ * @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 当使用addDynamicPosition设置为动画轨迹位置时, 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。
8745
+ * @param [options.clampToTileset] - 当使用addDynamicPosition设置为动画轨迹位置时,是否进行贴模型。
8746
+ * @param [options.frameRateHeight = 30] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,多少帧计算一次贴模型高度
8747
+ * @param [options.objectsToExclude] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
8748
+ * @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。
8749
+ * @param [options.hasEdit = true] - 是否允许编辑
8750
+ * @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
8751
+ * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
8752
+ * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
8753
+ * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
8754
+ * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数
8755
+ * @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定
8756
+ * @param [options.model] - 设置附加的 gltf模型 和对应的样式
8757
+ * @param [options.point] - 设置附加的 像素点 和对应的样式
8758
+ * @param [options.circle] - 设置附加的 圆 和对应的样式
8759
+ * @param [options.path] - 设置附加的 轨迹路线 和对应的样式
8760
+ * @param [options.id = createGuid()] - 矢量数据id标识
8761
+ * @param [options.name = ''] - 矢量数据名称
8762
+ * @param [options.show = true] - 矢量数据是否显示
8763
+ * @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件
8764
+ * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
8765
+ * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。
8766
+ * @param [options.flyToOptions] - 加载完成数据后是否自动飞行定位到数据所在的区域的对应 {@link BaseGraphic#flyTo}方法参数。
8767
+ */
8768
+ declare class BillboardEntity extends BasePointEntity {
8769
+ constructor(options: {
8770
+ position: LngLatPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string;
8771
+ style: BillboardEntity.StyleOptions | any;
8772
+ attr?: any;
8773
+ availability?: Cesium.TimeIntervalCollection | Cesium.TimeInterval | any[] | any;
8774
+ description?: Cesium.Property | string;
8775
+ viewFrom?: Cesium.Property;
8776
+ parent?: Cesium.Entity;
8777
+ onBeforeCreate?: (...params: any[]) => any;
8778
+ maxCacheCount?: number;
8779
+ forwardExtrapolationType?: Cesium.ExtrapolationType;
8780
+ backwardExtrapolationType?: Cesium.ExtrapolationType;
8781
+ clampToTileset?: boolean;
8782
+ frameRateHeight?: number;
8783
+ objectsToExclude?: any;
8784
+ drawShow?: boolean;
8785
+ hasEdit?: boolean;
8786
+ hasEditContextMenu?: boolean;
8787
+ popup?: string | any[] | ((...params: any[]) => any);
8788
+ popupOptions?: Popup.StyleOptions | any;
8789
+ tooltip?: string | any[] | ((...params: any[]) => any);
8790
+ tooltipOptions?: Tooltip.StyleOptions | any;
8791
+ contextmenuItems?: any;
8792
+ model?: ModelEntity.StyleOptions | any | any;
8793
+ point?: PointEntity.StyleOptions | any | any;
8794
+ circle?: CircleEntity.StyleOptions | any | any;
8795
+ path?: PathEntity.StyleOptions | any | any;
8796
+ id?: string | number;
8797
+ name?: string;
8798
+ show?: boolean;
8799
+ eventParent?: BaseClass | boolean;
8800
+ allowDrillPick?: boolean | ((...params: any[]) => any);
8801
+ flyTo?: boolean;
8802
+ flyToOptions?: any;
8803
+ });
8804
+ /**
8805
+ * 矢量数据对应的 Cesium内部对象的具体类型对象
8806
+ */
8807
+ readonly entityGraphic: Cesium.BillboardGraphics;
8808
+ /**
8809
+ * 图像、URI或Canvas
8810
+ */
8811
+ image: string | HTMLCanvasElement;
8812
+ /**
8813
+ * 设置透明度
8814
+ * @param value - 透明度
8815
+ * @returns 无
8816
+ */
8817
+ setOpacity(value: number): void;
8818
+ /**
8819
+ * 开始执行弹跳动画
8820
+ * @param [options] - 参数,包括
8821
+ * @param [options.maxHeight = 50] - 弹跳的最大高度, 单位:像素
8822
+ * @param [options.step = 1] - 弹跳增量, 控制速度,单位:像素
8823
+ * @param [options.autoStop] - 是否自动停止,true时:会逐渐减弱至停止状态
8824
+ * @returns 无
8825
+ */
8826
+ startBounce(options?: {
8827
+ maxHeight?: number;
8828
+ step?: number;
8829
+ autoStop?: boolean;
8830
+ }): void;
8831
+ /**
8832
+ * 停止弹跳动画
8833
+ * @returns 无
8834
+ */
8835
+ stopBounce(): void;
8836
+ }
8837
+
8749
8838
  declare namespace BoxEntity {
8750
8839
  /**
8751
8840
  * 盒子 支持的样式信息
@@ -11676,38 +11765,6 @@ declare class PointEntity extends BasePointEntity {
11676
11765
  * 矢量数据对应的 Cesium内部对象的具体类型对象
11677
11766
  */
11678
11767
  readonly entityGraphic: Cesium.PointGraphics;
11679
- /**
11680
- * 指定时间范围内显示该对象 [提示:仅部分子类实现,非所有对象都支持]
11681
- * @example
11682
- * // cesium原生写法,单个
11683
- * graphic.availability = new Cesium.TimeInterval({
11684
- * start: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:00")),
11685
- * stop: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:20")),
11686
- * isStartIncluded: true,
11687
- * isStopIncluded: false
11688
- * })
11689
- *
11690
- * // cesium原生写法, 多个
11691
- * graphic.availability = new Cesium.TimeIntervalCollection([
11692
- * new Cesium.TimeInterval({
11693
- * start: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:00")),
11694
- * stop: Cesium.JulianDate.fromDate(new Date("2017-08-25 08:00:20")),
11695
- * isStartIncluded: true,
11696
- * isStopIncluded: false
11697
- * }),
11698
- *
11699
- * ])
11700
- *
11701
- * // 普通传值方式,多个
11702
- * graphic.availability = [
11703
- * { start: "2017-08-25 08:00:00", stop: "2017-08-25 08:01:20", isStartIncluded: true, isStopIncluded: false },
11704
- * { start: "2017-08-25 09:00:00", stop: "2017-08-25 09:02:30" }
11705
- * ]
11706
- *
11707
- * // 普通传值方式,单个
11708
- * graphic.availability = { start: "2017-08-25 08:00:00", stop: "2017-08-25 08:01:20", isStartIncluded: true, isStopIncluded: false }
11709
- */
11710
- availability: Cesium.TimeIntervalCollection;
11711
11768
  }
11712
11769
 
11713
11770
  declare namespace PolygonEntity {
@@ -11818,6 +11875,7 @@ declare namespace PolygonEntity {
11818
11875
  * @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
11819
11876
  * @param [options.hasMoveEdit = true] - 编辑时,是否可以整体平移
11820
11877
  * @param [options.hasHeightEdit = true] - 编辑时,当有diffHeight时,是否可以编辑高度
11878
+ * @param [options.midPointFraction = 0.5] - 编辑时,中间点的位置比例
11821
11879
  * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
11822
11880
  * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
11823
11881
  * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
@@ -11849,6 +11907,7 @@ declare class PolygonEntity extends BasePolyEntity {
11849
11907
  hasEditContextMenu?: boolean;
11850
11908
  hasMoveEdit?: boolean;
11851
11909
  hasHeightEdit?: boolean;
11910
+ midPointFraction?: number;
11852
11911
  popup?: string | any[] | ((...params: any[]) => any);
11853
11912
  popupOptions?: Popup.StyleOptions | any;
11854
11913
  tooltip?: string | any[] | ((...params: any[]) => any);
@@ -12015,6 +12074,7 @@ declare namespace PolylineEntity {
12015
12074
  * @param [options.hasEditContextMenu = true] - 编辑时,是否绑定右键编辑菜单
12016
12075
  * @param [options.hasMoveEdit = true] - 编辑时,是否可以整体平移
12017
12076
  * @param [options.hasHeightEdit = true] - 编辑时,当有diffHeight时,是否可以编辑高度
12077
+ * @param [options.midPointFraction = 0.5] - 编辑时,中间点的位置比例
12018
12078
  * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
12019
12079
  * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
12020
12080
  * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
@@ -12046,6 +12106,7 @@ declare class PolylineEntity extends BasePolyEntity {
12046
12106
  hasEditContextMenu?: boolean;
12047
12107
  hasMoveEdit?: boolean;
12048
12108
  hasHeightEdit?: boolean;
12109
+ midPointFraction?: number;
12049
12110
  popup?: string | any[] | ((...params: any[]) => any);
12050
12111
  popupOptions?: Popup.StyleOptions | any;
12051
12112
  tooltip?: string | any[] | ((...params: any[]) => any);
@@ -14992,11 +15053,19 @@ declare class BasePrimitive extends BaseGraphic {
14992
15053
  /**
14993
15054
  * 当加载primitive数据的内部Cesium容器
14994
15055
  */
14995
- primitiveCollection: Cesium.PrimitiveCollection | Cesium.LabelCollection | Cesium.BillboardCollection | Cesium.PointPrimitiveCollection | Cesium.CloudCollection;
15056
+ readonly primitiveCollection: Cesium.PrimitiveCollection | Cesium.LabelCollection | Cesium.BillboardCollection | Cesium.PointPrimitiveCollection | Cesium.CloudCollection;
14996
15057
  /**
14997
15058
  * 矢量数据对应的 Cesium内部对象
14998
15059
  */
14999
15060
  readonly primitive: Cesium.Primitive | Cesium.GroundPrimitive | Cesium.ClassificationPrimitive | any;
15061
+ /**
15062
+ * 矢量数据对应的渲染是否完成
15063
+ */
15064
+ readonly ready: boolean;
15065
+ /**
15066
+ * 获取Primitive对象渲染完成的Promise承诺(仅部分支持,不支持对象会打印log)
15067
+ */
15068
+ readonly readyPromise: Promise<any>;
15000
15069
  /**
15001
15070
  * 返回实例可修改的属性。{@link Cesium.GeometryInstance}
15002
15071
  * @example
@@ -17085,7 +17154,7 @@ declare class ModelPrimitive extends BasePointPrimitive {
17085
17154
  */
17086
17155
  scaleZ: number;
17087
17156
  /**
17088
- * 获取图层完成解析加载完成的Promise承诺, 等价于load事件(区别在于load事件必须在load完成前绑定才能监听)。
17157
+ * 获取模型完成解析加载完成的Promise承诺, 等价于load事件(区别在于load事件必须在load完成前绑定才能监听)。
17089
17158
  */
17090
17159
  readonly readyPromise: Promise<Cesium.Model>;
17091
17160
  /**
@@ -20799,7 +20868,7 @@ declare namespace GraphicLayer {
20799
20868
  * @param [options.data] - 需要自动加载的数据,内部自动生成Graphic对象。{@link GraphicUtil#.create}
20800
20869
  * @param [options.hasEdit = false] - 是否自动激活编辑(true时,单击后自动激活编辑)
20801
20870
  * @param [options.isAutoEditing = true] - 完成标绘时是否自动启动编辑(需要hasEdit:true时)
20802
- * @param [options.isContinued = false] - 是否连续标绘,联系标绘状态下无法编辑已有对象。
20871
+ * @param [options.isContinued = false] - 是否连续标绘,连续标绘状态下无法编辑已有对象。
20803
20872
  * @param [options.isRestorePositions = false] - 在标绘和编辑结束时,是否将坐标还原为普通值,true: 停止编辑时会有闪烁,但效率要好些。
20804
20873
  * @param [options.drawEndEventType = EventType.dblClick] - 绘制时结束的事件,默认双击
20805
20874
  * @param [options.drawDelEventType = EventType.rightClick] - 绘制时删除点的事件,默认右键
@@ -21105,9 +21174,10 @@ declare class GraphicLayer extends BaseGraphicLayer {
21105
21174
  * 遍历所有矢量数据并将其作为参数传递给回调函数
21106
21175
  * @param method - 回调方法
21107
21176
  * @param [context] - 侦听器的上下文(this关键字将指向的对象)。
21108
- * @returns 当前对象本身,可以链式调用
21177
+ * @param [reverse] - 是否倒序执行
21178
+ * @returns 当前对象本身,可以链式调用。
21109
21179
  */
21110
- eachGraphic(method: (...params: any[]) => any, context?: any): GraphicLayer;
21180
+ eachGraphic(method: (...params: any[]) => any, context?: any, reverse?: boolean): GraphicLayer;
21111
21181
  /**
21112
21182
  * 获取图层内 所有矢量数据
21113
21183
  * @param [hasPrivate = false] - 是否取私有的graphic
@@ -21353,7 +21423,6 @@ declare namespace I3SLayer {
21353
21423
  * @param [options.cacheBytes = 536870912] - 如果缓存包含当前视图不需要的块,则块缓存将被修剪到的大小(以字节为单位)。
21354
21424
  * @param [options.maximumCacheOverflowBytes = 536870912] - 如果当前视图需要超过{@link Cesium3DTileset#cacheBytes},则允许缓存净空的最大额外内存(以字节为单位)。
21355
21425
  * @param [options.maximumMemoryUsage = 512] - 【cesium 1.107+弃用】数据集可以使用的最大内存量(以MB计),这个参数要根据当前客户端显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50% 左右,比如我的显存是4G,这个可以设置到2048左右。那么既保证不超过显存限制,又可以最大利用显存缓存。<br />
21356
- * *
21357
21426
  * @param [options.style] - 模型样式, 使用{@link https://github.com/CesiumGS/3d-tiles/tree/master/specification/Styling|3D Tiles Styling language}.
21358
21427
  * @param [options.marsJzwStyle = false] - 开启或设置建筑物特效样式。
21359
21428
  * @param [options.customShader] - 自定义shader效果
@@ -25072,7 +25141,7 @@ declare class OsmLayer extends BaseTileLayer {
25072
25141
  * @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
25073
25142
  * @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
25074
25143
  * @param [options.crs = CRS.EPSG4490] - 瓦片数据的坐标系信息,默认为4490投影,也支持传入EPSG3857坐标系
25075
- * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
25144
+ * @param [options.chinaCRS = ChinaCRS.WGS84] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
25076
25145
  * @param [options.proxy] - 加载资源时要使用的代理服务url。
25077
25146
  * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对
25078
25147
  * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'},
@@ -26116,7 +26185,7 @@ declare class ContextMenu extends BaseControl {
26116
26185
  enabled?: boolean;
26117
26186
  parentContainer?: HTMLElement;
26118
26187
  insertIndex?: number;
26119
- insertBefore?: HTMLElement;
26188
+ insertBefore?: HTMLElement | string;
26120
26189
  eventParent?: BaseClass | boolean;
26121
26190
  });
26122
26191
  /**
@@ -26153,7 +26222,7 @@ declare class KeyboardRoam extends BaseControl {
26153
26222
  enabled?: boolean;
26154
26223
  parentContainer?: HTMLElement;
26155
26224
  insertIndex?: number;
26156
- insertBefore?: HTMLElement;
26225
+ insertBefore?: HTMLElement | string;
26157
26226
  eventParent?: BaseClass | boolean;
26158
26227
  });
26159
26228
  /**
@@ -26292,483 +26361,6 @@ declare class MouseEvent {
26292
26361
  pickImageryLayerFeatures(position: LngLatPoint | Cesium.Cartesian3 | any): Promise<any>;
26293
26362
  }
26294
26363
 
26295
- declare namespace Map {
26296
- /**
26297
- * 场景参数
26298
- * @property [center] - 默认相机视角
26299
- * @property center.lng - 经度值, 180 - 180
26300
- * @property center.lat - 纬度值, -90 - 90
26301
- * @property center.alt - 高度值
26302
- * @property [center.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
26303
- * @property [center.pitch] - 俯仰角度值,绕纬度线旋转角度,-90至90
26304
- * @property [center.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
26305
- * @property [extent] - 矩形范围 相机视角,与center二选一
26306
- * @property extent.xmin - 最小经度值, -180 至 180
26307
- * @property extent.xmax - 最大经度值, -180 至 180
26308
- * @property extent.ymin - 最小纬度值, -90 至 90
26309
- * @property extent.ymax - 最大纬度值, -90 至 90
26310
- * @property [removeDblClick = false] - 是否移除Cesium默认的双击事件
26311
- * @property [ionToken] - Cesium Ion服务的 Token令牌
26312
- * @property [resolutionScale = 1.0] - 获取或设置渲染分辨率的缩放比例。小于1.0的值可以改善性能不佳的设备上的性能,而值大于1.0则将以更高的速度呈现分辨率,然后缩小比例,从而提高视觉保真度。例如,如果窗口小部件的尺寸为640x480,则将此值设置为0.5将导致场景以320x240渲染,然后在设置时按比例放大设置为2.0将导致场景以1280x960渲染,然后按比例缩小。
26313
- *
26314
- * 以下是Cesium.Scene对象相关参数
26315
- * @property [showSun] - 是否显示太阳,如修改对象可以用 [map.scene.sun]{@link http://mars3d.cn/api/cesium/Sun.html}
26316
- * @property [showMoon] - 是否显示月亮,如修改对象可以用 [map.scene.moon]{@link http://mars3d.cn/api/cesium/Moon.html}
26317
- * @property [showSkyBox] - 是否显示天空盒,如修改对象可以用 [map.scene.skyBox]{@link http://mars3d.cn/api/cesium/SkyBox.html}
26318
- * @property [showSkyAtmosphere] - 是否显示地球大气层外光圈,如修改对象可以用 [map.scene.skyAtmosphere]{@link http://mars3d.cn/api/cesium/SkyAtmosphere.html}
26319
- * @property [fog] - 是否启用雾化效果,如修改对象可以用 [map.scene.fog]{@link http://mars3d.cn/api/cesium/fog.html}
26320
- * @property [fxaa] - 是否开启快速抗锯齿
26321
- * @property [highDynamicRange] - 是否关闭高动态范围渲染(不关闭时地图会变暗)
26322
- * @property [backgroundColor] - 空间背景色 ,css颜色值
26323
- *
26324
- * 以下是Cesium.Viewer所支持的options【控件相关的写在另外的control属性中】
26325
- * @property [sceneMode = Cesium.SceneMode.SCENE3D] - 初始场景模式。可以设置进入场景后初始是2D、2.5D、3D 模式。
26326
- * @property [scene3DOnly = false] - 为 true 时,每个几何实例将仅以3D渲染以节省GPU内存。
26327
- * @property [mapProjection = new Cesium.GeographicProjection()] - 在二维模式下时,地图的呈现坐标系,默认为EPSG4326坐标系,如果需要EPSG3857墨卡托坐标系展示,传 new Cesium.WebMercatorProjection() 即可
26328
- * @property [mapMode2D = Cesium.MapMode2D.INFINITE_SCROLL] - 在二维模式下时,地图是可旋转的还是可以在水平方向无限滚动。
26329
- * @property [shouldAnimate = true] - 是否开启时钟动画
26330
- * @property [shadows = false] - 是否启用日照阴影
26331
- * @property [useDefaultRenderLoop = true] - 如果此小部件应控制渲染循环,则为true,否则为false。
26332
- * @property [targetFrameRate] - 使用默认渲染循环时的目标帧速率。
26333
- * @property [useBrowserRecommendedResolution = true] - 如果为true,则以浏览器建议的分辨率渲染,并忽略 window.devicePixelRatio 。
26334
- * @property [automaticallyTrackDataSourceClocks = true] - 如果为true,则此小部件将自动跟踪新添加的数据源的时钟设置,并在数据源的时钟发生更改时进行更新。如果要独立配置时钟,请将其设置为false。
26335
- * @property [contextOptions = {}] - WebGL创建属性 传递给 Cesium.Scene 的 options 。{@link Cesium.Scene}
26336
- * @property [contextOptions.allowTextureFilterAnisotropic = true] - 允许纹理过滤各向异性
26337
- * @property [contextOptions.requestWebgl1 = false] - 是否启用webgl1,cesium v1.102起默认用webgl2渲染
26338
- * @property [contextOptions.webgl] - WebGL画布,用于 canvas.getContext("webgl", webglOptions) See {@link https://registry.khronos.org/webgl/specs/latest/1.0/#5.2|WebGLContextAttributes}
26339
- * @property [contextOptions.webgl.alpha = false] - 是否包含alpha缓冲区,如果需要DIV透明时,需要改为true
26340
- * @property [contextOptions.webgl.depth] - 绘图缓冲区的深度缓冲区至少为16位
26341
- * @property [contextOptions.webgl.stencil = true] - 绘图缓冲区具有至少8位的模板缓冲区
26342
- * @property [contextOptions.webgl.antialias] - 是否执行抗锯齿
26343
- * @property [contextOptions.webgl.failIfMajorPerformanceCaveat] - 如果系统性能较低,是否创建上下文
26344
- * @property [contextOptions.webgl.preserveDrawingBuffer] - 是否将把绘图缓存保留下来,截图需要将该项设置为true
26345
- * @property [contextOptions.webgl.powerPreference = "high-performance"] - 对用户代理的提示,指示GPU的哪种配置适合WebGL上下文,可选值:"default"、"low-power"、"high-performance"
26346
- * @property [orderIndependentTranslucency = true] - 如果为true,并且配置支持它,则使用顺序无关的半透明性。
26347
- * @property [terrainShadows = Cesium.ShadowMode.RECEIVE_ONLY] - 确定地形是否投射或接收来自光源的阴影。
26348
- * @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}.
26349
- * @property [maximumRenderTimeChange = 0.0] - 如果requestRenderMode为true,这个值定义了在请求渲染之前允许的模拟时间的最大变化。参见 {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
26350
- * @property [depthPlaneEllipsoidOffset = 0.0] - 调整DepthPlane以处理椭球体零标高以下的渲染伪影。
26351
- * @property [msaaSamples = 1] - 如果提供,该值控制多样本抗混叠的速率。典型的多采样率是每像素2、4,有时是8个采样。更高的MSAA采样率可能会影响性能,以换取更好的视觉质量。这个值只适用于支持多样本渲染目标的WebGL2上下文。
26352
- *
26353
- * 以下是Cesium.Globe对象相关参数
26354
- * @property [globe] - globe地球相关参数
26355
- * @property [globe.show = true] - 是否显示地球
26356
- * @property [globe.baseColor = '#546a53'] - 地球背景色 ,css颜色值
26357
- * @property [globe.depthTestAgainstTerrain = false] - 是否启用深度监测,可以开启来测试矢量对象是否在地形下面或被遮挡。
26358
- * @property [globe.showGroundAtmosphere = true] - 是否在地球上绘制的地面大气
26359
- * @property [globe.enableLighting = false] - 是否显示晨昏线,可以看到地球的昼夜区域
26360
- * @property [globe.tileCacheSize = 100] - 地形图块缓存的大小,表示为图块数。任何其他只要不需要渲染,就会释放超出此数目的图块这个框架。较大的数字将消耗更多的内存,但显示细节更快例如,当缩小然后再放大时。
26361
- * @property [globe.terrainExaggeration = 1.0] - 地形夸张倍率,用于放大地形的标量。请注意,地形夸张不会修改其他相对于椭球的图元。
26362
- * @property [globe.realAlt = false] - 地形夸张倍率,在测量高度和下侧提示的高度信息中是否转换为实际真实高度值。
26363
- * @property [globe.terrainExaggerationRelativeHeight = 0.0] - 地形被夸大的高度。默认为0.0(相对于椭球表面缩放)。高于此高度的地形将向上缩放,低于此高度的地形将向下缩放。请注意,地形夸大不会修改任何其他图元,因为它们是相对于椭球体定位的。
26364
- *
26365
- * 以下是Cesium.ScreenSpaceCameraController对象相关参数
26366
- * @property [cameraController] - 相机操作相关参数
26367
- * @property [cameraController.minimumZoomDistance = 1.0] - 相机最近视距,变焦时相机位置的最小量级(以米为单位),默认为1。该值是相机与地表(含地形)的相对距离。
26368
- * @property [cameraController.maximumZoomDistance = 50000000.0] - 相机最远视距,变焦时相机位置的最大值(以米为单位)。该值是相机与地表(含地形)的相对距离。
26369
- * @property [cameraController.zoomFactor = 3.0] - 滚轮放大倍数,控制鼠标滚轮操作的步长
26370
- * @property [cameraController.minimumCollisionTerrainHeight = 80000] - 最小碰撞高度,低于此高度时绕鼠标键绕圈,大于时绕视图中心点绕圈。
26371
- * @property [cameraController.constrainedAxis = true] - 南北极绕轴心旋转,为false时 解除在南北极区域鼠标操作限制
26372
- * @property [cameraController.enableRotate = true] - 2D和3D视图下,是否允许用户旋转相机
26373
- * @property [cameraController.enableTranslate = true] - 2D和哥伦布视图下,是否允许用户平移地图
26374
- * @property [cameraController.enableTilt = true] - 3D和哥伦布视图下,是否允许用户倾斜相机
26375
- * @property [cameraController.enableZoom = true] - 是否允许 用户放大和缩小视图
26376
- * @property [cameraController.enableCollisionDetection = true] - 是否允许 地形相机的碰撞检测
26377
- *
26378
- * 以下是Cesium.Clock时钟相关参数
26379
- * @property [clock] - 时钟相关参数
26380
- * @property [clock.currentTime] - 当前的时间
26381
- * @property [clock.multiplier = 1.0] - 当前的速度
26382
- */
26383
- type sceneOptions = {
26384
- center?: {
26385
- lng: number;
26386
- lat: number;
26387
- alt: number;
26388
- heading?: number;
26389
- pitch?: number;
26390
- roll?: number;
26391
- };
26392
- extent?: {
26393
- xmin: number;
26394
- xmax: number;
26395
- ymin: number;
26396
- ymax: number;
26397
- };
26398
- removeDblClick?: boolean;
26399
- ionToken?: string;
26400
- resolutionScale?: number;
26401
- showSun?: boolean;
26402
- showMoon?: boolean;
26403
- showSkyBox?: boolean;
26404
- showSkyAtmosphere?: boolean;
26405
- fog?: boolean;
26406
- fxaa?: boolean;
26407
- highDynamicRange?: boolean;
26408
- backgroundColor?: string;
26409
- sceneMode?: Cesium.SceneMode;
26410
- scene3DOnly?: boolean;
26411
- mapProjection?: Cesium.MapProjection;
26412
- mapMode2D?: Cesium.MapMode2D;
26413
- shouldAnimate?: boolean;
26414
- shadows?: boolean;
26415
- useDefaultRenderLoop?: boolean;
26416
- targetFrameRate?: number;
26417
- useBrowserRecommendedResolution?: boolean;
26418
- automaticallyTrackDataSourceClocks?: boolean;
26419
- contextOptions?: {
26420
- allowTextureFilterAnisotropic?: boolean;
26421
- requestWebgl1?: boolean;
26422
- webgl?: {
26423
- alpha?: boolean;
26424
- depth?: boolean;
26425
- stencil?: boolean;
26426
- antialias?: boolean;
26427
- premultipliedAlpha?: boolean;
26428
- failIfMajorPerformanceCaveat?: boolean;
26429
- preserveDrawingBuffer?: boolean;
26430
- powerPreference?: string;
26431
- };
26432
- };
26433
- orderIndependentTranslucency?: boolean;
26434
- terrainShadows?: Cesium.ShadowMode;
26435
- requestRenderMode?: boolean;
26436
- maximumRenderTimeChange?: number;
26437
- depthPlaneEllipsoidOffset?: number;
26438
- msaaSamples?: number;
26439
- globe?: {
26440
- show?: boolean;
26441
- baseColor?: string;
26442
- depthTestAgainstTerrain?: boolean;
26443
- showGroundAtmosphere?: boolean;
26444
- enableLighting?: boolean;
26445
- tileCacheSize?: number;
26446
- terrainExaggeration?: number;
26447
- realAlt?: number;
26448
- terrainExaggerationRelativeHeight?: number;
26449
- };
26450
- cameraController?: {
26451
- minimumZoomDistance?: number;
26452
- maximumZoomDistance?: number;
26453
- zoomFactor?: number;
26454
- minimumCollisionTerrainHeight?: number;
26455
- constrainedAxis?: boolean;
26456
- enableRotate?: boolean;
26457
- enableTranslate?: boolean;
26458
- enableTilt?: boolean;
26459
- enableZoom?: boolean;
26460
- enableCollisionDetection?: boolean;
26461
- };
26462
- clock?: {
26463
- currentTime?: string | Cesium.JulianDate;
26464
- multiplier?: number;
26465
- };
26466
- };
26467
- /**
26468
- * 添加到地图的控件 参数
26469
- * @property [homeButton = false] - 视角复位按钮,是否显示
26470
- * @property [zoom] - 放大缩小按钮 , 对应 {@link Zoom}构造参数
26471
- * @property [sceneModePicker = false] - 二三维切换按钮,是否显示二维、三维、2.5D视图切换按钮
26472
- * @property [projectionPicker = false] - 投影切换按钮, 是否显示用于在透视和正投影之间进行切换按钮
26473
- * @property [fullscreenButton = false] - 全屏按钮,是否显示
26474
- * @property [fullscreenElement = document.body] - 当按下全屏按钮时,要置于全屏模式的元素或id
26475
- * @property [vrButton = false] - VR效果按钮,是否显示
26476
- * @property [geocoder = false] - 是否显示 地名查找按钮 控件,是Cesium原生控件
26477
- * @property [navigationHelpButton = false] - 帮助按钮,是否显示
26478
- * @property [navigationInstructionsInitiallyVisible = true] - 帮助按钮 在用户明确单击按钮之前是否自动显示
26479
- * @property [baseLayerPicker = false] - 是否显示 底图切换 按钮,是Cesium原生控件, 如果true底图是Cesium机制控制,Map内的basemaps相关获取和控制将会无效。
26480
- * @property [imageryProviderViewModels] - baseLayerPicker底图切换面板中,用于图像的ProviderViewModel实例数组,默认自动根据basemaps数组生成。
26481
- * @property [selectedImageryProviderViewModel] - baseLayerPicker底图切换面板中,如果没有提供当前基本图像层的视图模型,则使用第一个可用的图像层。默认为show:true的basemaps图层
26482
- * @property [terrainProviderViewModels] - baseLayerPicker底图切换面板中,用于地形的ProviderViewModel实例数组。默认自动使用terrain配置+无地形。
26483
- * @property [selectedTerrainProviderViewModel] - baseLayerPicker底图切换面板中,如果没有提供当前基础地形层的视图模型,则使用第一个可用的地形层。
26484
- * @property [compass] - 导航球, 对应 {@link Compass}构造参数
26485
- * @property [locationBar] - 状态栏, 对应 {@link LocationBar}构造参数
26486
- * @property [locationBar.fps] - 是否显示实时FPS帧率
26487
- * @property [locationBar.format] - 显示内容的格式化html展示的内容格式化字符串。 支持以下模版配置:【鼠标所在位置】 经度:{lng}, 纬度:{lat}, 海拔:{alt}米, 【相机的】 方向角度:{heading}, 俯仰角度:{pitch}, 视高:{cameraHeight}米, 【地图的】 层级:{level},
26488
- * @property [distanceLegend] - 比例尺, 对应 {@link DistanceLegend}构造参数
26489
- * @property [clockAnimate] - 时钟控制, 对应{@link ClockAnimate}构造参数
26490
- * @property [animation = true] - 时钟仪表控制(Cesium原生)
26491
- * @property [timeline = true] - 时间线, 是否创建下侧时间线控件面板
26492
- * @property [overviewMap] - 鹰眼地图, 对应{@link OverviewMap }构造参数
26493
- * @property [mapSplit] - 卷帘对比, 对应{@link MapSplit }构造参数
26494
- * @property [keyboardRoam] - 键盘漫游, 对应{@link KeyboardRoam }构造参数
26495
- * @property [mouseDownView] - 鼠标滚轮缩放美化样式(指示图标), 对应 {@link MouseDownView}构造参数
26496
- * @property [infoBox = true] - 信息面板,是否显示点击要素之后显示的信息,是Cesium原生控件
26497
- * @property [selectionIndicator = true] - 选中框,是否显示选择模型时的绿色框,是Cesium原生控件
26498
- * @property [showRenderLoopErrors = true] - 如果为true,则在发生渲染循环错误时,此小部件将自动向包含错误的用户显示HTML面板,是Cesium原生控件
26499
- * @property [contextmenu] - 内置 右键菜单 控制参数, 对应{@link ContextMenu }构造参数
26500
- * @property [contextmenu.preventDefault = true] - 是否取消右键菜单
26501
- * @property [contextmenu.hasDefault = true] - 是否绑定默认的地图右键菜单
26502
- * @property [popup] - 内置 Popup 控制参数
26503
- * @property [popup.depthTest = true] - 是否打开深度判断(true时判断是否在球背面)
26504
- * @property [tooltip] - 内置 Tooltip 控制参数
26505
- * @property [tooltip.cacheTime = 20] - 延迟缓存的时间,单位:毫秒
26506
- */
26507
- type controlOptions = {
26508
- homeButton?: boolean;
26509
- zoom?: any;
26510
- sceneModePicker?: boolean;
26511
- projectionPicker?: boolean;
26512
- fullscreenButton?: boolean;
26513
- fullscreenElement?: Element | string;
26514
- vrButton?: boolean;
26515
- geocoder?: boolean | Cesium.GeocoderService[];
26516
- navigationHelpButton?: boolean;
26517
- navigationInstructionsInitiallyVisible?: boolean;
26518
- baseLayerPicker?: boolean;
26519
- imageryProviderViewModels?: Cesium.ProviderViewModel[];
26520
- selectedImageryProviderViewModel?: Cesium.ProviderViewModel;
26521
- terrainProviderViewModels?: Cesium.ProviderViewModel[];
26522
- selectedTerrainProviderViewModel?: Cesium.ProviderViewModel;
26523
- compass?: any;
26524
- locationBar?: {
26525
- fps?: boolean;
26526
- format?: string | ((...params: any[]) => any);
26527
- };
26528
- distanceLegend?: any;
26529
- clockAnimate?: any;
26530
- animation?: boolean;
26531
- timeline?: boolean;
26532
- overviewMap?: any;
26533
- mapSplit?: any;
26534
- keyboardRoam?: any;
26535
- mouseDownView?: boolean;
26536
- infoBox?: boolean;
26537
- selectionIndicator?: boolean;
26538
- showRenderLoopErrors?: boolean;
26539
- contextmenu?: {
26540
- preventDefault?: boolean;
26541
- hasDefault?: boolean;
26542
- };
26543
- popup?: {
26544
- depthTest?: boolean;
26545
- };
26546
- tooltip?: {
26547
- cacheTime?: number;
26548
- };
26549
- };
26550
- /**
26551
- * 鼠标操作相关配置 参数
26552
- * @property [enabledMoveTarget = true] - 是否开启鼠标移动事件的拾取矢量数据
26553
- * @property [moveDelay = 30] - 鼠标移动事件的延迟毫秒数
26554
- * @property [pickWidth = 4] - 拾取时所选矩形的宽度,单位:像素
26555
- * @property [pickHeight = 4] - 拾取时所选矩形的高度,单位:像素
26556
- * @property [pickLimit = 9] - 在允许allowDrillPick穿透拾取时,限制拾取的对象个数。
26557
- */
26558
- type mouseOptions = {
26559
- enabledMoveTarget?: boolean;
26560
- moveDelay?: number;
26561
- pickWidth?: number;
26562
- pickHeight?: number;
26563
- pickLimit?: number;
26564
- };
26565
- /**
26566
- * 添加到地图的特效 参数
26567
- * @property [bloom] - 泛光,对应{@link BloomEffect }构造参数
26568
- * @property [brightness] - 亮度,对应{@link BrightnessEffect }构造参数
26569
- * @property [rain] - 雨天气,对应{@link RainEffect }构造参数
26570
- * @property [snow] - 雪天气 ,对应{@link SnowEffect }构造参数
26571
- * @property [snowCover] - 地面积雪,对应{@link SnowCoverEffect }构造参数
26572
- * @property [fog] - 雾天气,对应{@link FogEffect }构造参数
26573
- * @property [depthOfField] - 景深,对应{@link DepthOfFieldEffect }构造参数
26574
- * @property [mosaic] - 马赛克,对应{@link MosaicEffect }构造参数
26575
- * @property [nightVision] - 夜视,对应{@link NightVisionEffect }构造参数
26576
- * @property [blackAndWhite] - 黑白,对应{@link BlackAndWhiteEffect }构造参数
26577
- * @property [outline] - 对象轮廓描边,对应{@link OutlineEffect }构造参数
26578
- * @property [bloomTarget] - 对象泛光,对应{@link BloomTargetEffect }构造参数
26579
- */
26580
- type effectOptions = {
26581
- bloom?: any;
26582
- brightness?: any;
26583
- rain?: any;
26584
- snow?: any;
26585
- snowCover?: any;
26586
- fog?: any;
26587
- depthOfField?: any;
26588
- mosaic?: any;
26589
- nightVision?: any;
26590
- blackAndWhite?: any;
26591
- outline?: any;
26592
- bloomTarget?: any;
26593
- };
26594
- /**
26595
- * 地形服务配置
26596
- * @property [type = "xyz"] - 地形类型
26597
- * @property url - 地形服务地址
26598
- * @property [show = false] - 是否启用显示地形
26599
- * @property [requestVertexNormals = false] - 是否应该从服务器请求额外的光照信息,如果可用,以每个顶点法线的形式。
26600
- * @property [requestWaterMask = false] - 是否应该向服务器请求每个瓦的水掩膜(如果有的话)。
26601
- * @property [requestMetadata = true] - 是否应该从服务器请求每个块元数据(如果可用)。
26602
- */
26603
- type terrainOptions = {
26604
- type?: string | TerrainType;
26605
- url: string | Cesium.Resource;
26606
- show?: boolean;
26607
- requestVertexNormals?: boolean;
26608
- requestWaterMask?: boolean;
26609
- requestMetadata?: boolean;
26610
- };
26611
- /**
26612
- * 底图图层配置
26613
- * @property type - 图层类型
26614
- * @property [多个参数] - 每种不同type都有自己的不同属性,具体参考{@link LayerType}找到type对应的BaseTileLayer子类图层类,查看其构造参数
26615
- */
26616
- type basemapOptions = {
26617
- type: string | LayerType;
26618
- 多个参数?: any;
26619
- };
26620
- /**
26621
- * 可以叠加显示的图层配置,
26622
- * @property type - 图层类型
26623
- * @property [id] - 图层id标识
26624
- * @property [pid = -1] - 图层父级的id,一般图层管理中使用
26625
- * @property [name = ''] - 图层名称
26626
- * @property [show = true] - 图层是否显示
26627
- * @property [center] - 图层自定义定位视角,默认根据数据情况自动定位。
26628
- * @property [popup] - 当图层支持popup弹窗时,绑定的值
26629
- * @property [popupOptions] - popup弹窗时的配置参数
26630
- * @property [tooltip] - 当图层支持tooltip弹窗时,绑定的值
26631
- * @property [tooltipOptions] - tooltip弹窗时的配置参数
26632
- * @property [多个参数] - 每种type都有自己的不同属性,具体参考{@link LayerType}找到type对应的图层类,查看其构造参数
26633
- */
26634
- type layerOptions = {
26635
- type: string | LayerType;
26636
- id?: string | number;
26637
- pid?: string | number;
26638
- name?: string;
26639
- show?: boolean;
26640
- center?: any;
26641
- popup?: any;
26642
- popupOptions?: Popup.StyleOptions | any;
26643
- tooltip?: any;
26644
- tooltipOptions?: Tooltip.StyleOptions | any;
26645
- 多个参数?: any;
26646
- };
26647
- /**
26648
- * 覆盖SDK内的{@link Token}所有第3方Token默认值
26649
- * @property [tianditu] - 天地图
26650
- * @property [gaode] - 高德
26651
- * @property [baidu] - 百度
26652
- * @property [ion] - Ion服务
26653
- * @property [mapbox] - mapbox地图
26654
- * @property [bing] - 微软Bing地图
26655
- */
26656
- type tokenOptions = {
26657
- tianditu?: string | string[];
26658
- gaode?: string | string[];
26659
- baidu?: string | string[];
26660
- ion?: string;
26661
- mapbox?: string;
26662
- bing?: string;
26663
- };
26664
- /**
26665
- * Map支持的{@link EventType}事件类型
26666
- * @example
26667
- * //绑定监听事件
26668
- * map.on(mars3d.EventType.click, function (event) {
26669
- * console.log('单击了地图对象', event)
26670
- * })
26671
- * @property load - 地图初始化完成事件(地形、所有图层完成初始化)
26672
- * @property addLayer - 添加图层
26673
- * @property removeLayer - 移除图层
26674
- * @property terrainChange - 地形变化
26675
- * @property tileLoadProgress - 地图中瓦片加载进度变化
26676
- * @property cameraMoveStart - 相机开启移动前 场景事件
26677
- * @property cameraMoveEnd - 相机移动完成后 场景事件
26678
- * @property cameraChanged - 相机位置完成 场景事件
26679
- * @property preUpdate - 场景更新前 场景事件
26680
- * @property postUpdate - 场景更新后 场景事件
26681
- * @property preRender - 场景渲染前 场景事件
26682
- * @property postRender - 场景渲染后 场景事件
26683
- * @property morphStart - 场景模式(2D/3D/哥伦布)变换前 场景事件
26684
- * @property morphComplete - 完成场景模式(2D/3D/哥伦布)变换 场景事件
26685
- * @property clockTick - 时钟跳动 场景事件
26686
- * @property renderError - 场景渲染失败(需要刷新页面)
26687
- * @property click - 左键单击 鼠标事件
26688
- * @property clickGraphic - 左键单击到矢量或模型数据时 鼠标事件
26689
- * @property clickTileGraphic - 左键单击到wms或arcgis瓦片服务的对应矢量数据时
26690
- * @property clickMap - 左键单击地图空白(未单击到矢量或模型数据)时 鼠标事件
26691
- * @property dblClick - 左键双击 鼠标事件
26692
- * @property leftDown - 左键鼠标按下 鼠标事件
26693
- * @property leftUp - 左键鼠标按下后释放 鼠标事件
26694
- * @property mouseMove - 鼠标移动 鼠标事件
26695
- * @property mouseMoveTarget - 鼠标移动(拾取目标,并延迟处理) 鼠标事件
26696
- * @property wheel - 鼠标滚轮滚动 鼠标事件
26697
- * @property rightClick - 右键单击 鼠标事件
26698
- * @property rightDown - 右键鼠标按下 鼠标事件
26699
- * @property rightUp - 右键鼠标按下后释放 鼠标事件
26700
- * @property middleClick - 中键单击 鼠标事件
26701
- * @property middleDown - 中键鼠标按下 鼠标事件
26702
- * @property middleUp - 中键鼠标按下后释放 鼠标事件
26703
- * @property pinchStart - 在触摸屏上两指缩放开始 鼠标事件
26704
- * @property pinchEnd - 在触摸屏上两指缩放结束 鼠标事件
26705
- * @property pinchMove - 在触摸屏上两指移动 鼠标事件
26706
- * @property mouseDown - 鼠标按下 [左中右3键都触发] 鼠标事件
26707
- * @property mouseUp - 鼠标按下后释放 [左中右3键都触发] 鼠标事件
26708
- * @property mouseOver - 鼠标移入 鼠标事件
26709
- * @property mouseOut - 鼠标移出 鼠标事件
26710
- * @property keydown - 按键按下 键盘事件
26711
- * @property keyup - 按键按下后释放 键盘事件
26712
- * @property popupOpen - popup弹窗打开后
26713
- * @property popupClose - popup弹窗关闭
26714
- * @property tooltipOpen - tooltip弹窗打开后
26715
- * @property tooltipClose - tooltip弹窗关闭
26716
- * @property contextMenuOpen - 右键菜单 打开后
26717
- * @property contextMenuClose - 右键菜单 关闭
26718
- * @property contextMenuClick - 右键菜单 单击某一项后
26719
- */
26720
- type EventType = {
26721
- load: string;
26722
- addLayer: string;
26723
- removeLayer: string;
26724
- terrainChange: string;
26725
- tileLoadProgress: string;
26726
- cameraMoveStart: string;
26727
- cameraMoveEnd: string;
26728
- cameraChanged: string;
26729
- preUpdate: string;
26730
- postUpdate: string;
26731
- preRender: string;
26732
- postRender: string;
26733
- morphStart: string;
26734
- morphComplete: string;
26735
- clockTick: string;
26736
- renderError: string;
26737
- click: string;
26738
- clickGraphic: string;
26739
- clickTileGraphic: string;
26740
- clickMap: string;
26741
- dblClick: string;
26742
- leftDown: string;
26743
- leftUp: string;
26744
- mouseMove: string;
26745
- mouseMoveTarget: string;
26746
- wheel: string;
26747
- rightClick: string;
26748
- rightDown: string;
26749
- rightUp: string;
26750
- middleClick: string;
26751
- middleDown: string;
26752
- middleUp: string;
26753
- pinchStart: string;
26754
- pinchEnd: string;
26755
- pinchMove: string;
26756
- mouseDown: string;
26757
- mouseUp: string;
26758
- mouseOver: string;
26759
- mouseOut: string;
26760
- keydown: string;
26761
- keyup: string;
26762
- popupOpen: string;
26763
- popupClose: string;
26764
- tooltipOpen: string;
26765
- tooltipClose: string;
26766
- contextMenuOpen: string;
26767
- contextMenuClose: string;
26768
- contextMenuClick: string;
26769
- };
26770
- }
26771
-
26772
26364
  /**
26773
26365
  * 地图类 ,这是构造三维地球的一切的开始起点。
26774
26366
  * @param id - 地图div容器的id 或 已构造好的Viewer对象
@@ -26780,8 +26372,8 @@ declare namespace Map {
26780
26372
  * @param [options.terrain] - 地形服务配置
26781
26373
  * @param [options.basemaps] - 底图图层配置
26782
26374
  * @param [options.layers] - 可以叠加显示的图层配置
26783
- * @param [options.chinaCRS = ChinaCRS.WGS84] - 标识当前三维场景的国内坐标系(用于部分图层内对比判断来自动纠偏或加偏)
26784
- * @param [options.lang] - 使用的语言(如中文、英文等)。
26375
+ * @param [options.chinaCRS = ChinaCRS.WGS84] - 标识当前三维场景的国内坐标系(用于部分图层内对比判断来自动纠偏或加偏),只能初始化传入
26376
+ * @param [options.lang] - 使用的语言文本键值对对象,可传入外部自定义的任意语言文本。
26785
26377
  * @param [options.templateValues] - 图层中统一的url模版,比如可以将服务url前缀统一使用模板,方便修改或动态配置。
26786
26378
  * @param [options.token] - 覆盖SDK内的{@link Token}所有第3方Token默认值
26787
26379
  */
@@ -26795,7 +26387,7 @@ declare class Map extends BaseClass {
26795
26387
  basemaps?: Map.basemapOptions[];
26796
26388
  layers?: Map.layerOptions[];
26797
26389
  chinaCRS?: ChinaCRS;
26798
- lang?: LangType;
26390
+ lang?: any | Lang;
26799
26391
  templateValues?: any;
26800
26392
  token?: Map.tokenOptions;
26801
26393
  });
@@ -26910,9 +26502,9 @@ declare class Map extends BaseClass {
26910
26502
  */
26911
26503
  fixedLight: boolean;
26912
26504
  /**
26913
- * 使用的语言(如中文、英文等)。
26505
+ * 使用的语言文本配置
26914
26506
  */
26915
- lang: LangType;
26507
+ lang: Lang | any;
26916
26508
  /**
26917
26509
  * 鼠标滚轮放大的步长比例
26918
26510
  */
@@ -27065,9 +26657,10 @@ declare class Map extends BaseClass {
27065
26657
  * 遍历每一个图层并将其作为参数传递给回调函数
27066
26658
  * @param method - 回调方法
27067
26659
  * @param [context] - 侦听器的上下文(this关键字将指向的对象)。
26660
+ * @param [reverse] - 是否倒序执行
27068
26661
  * @returns 当前对象本身,可以链式调用
27069
26662
  */
27070
- eachLayer(method: (...params: any[]) => any, context?: any): Map;
26663
+ eachLayer(method: (...params: any[]) => any, context?: any, reverse?: boolean): Map;
27071
26664
  /**
27072
26665
  * 根据指定属性获取图层,包括config.json配置的图层
27073
26666
  * @param attrValue - 属性值
@@ -27143,9 +26736,10 @@ declare class Map extends BaseClass {
27143
26736
  * 遍历每一个控件并将其作为参数传递给回调函数
27144
26737
  * @param method - 回调方法
27145
26738
  * @param [context] - 侦听器的上下文(this关键字将指向的对象)。
26739
+ * @param [reverse] - 是否倒序执行
27146
26740
  * @returns 当前对象本身,可以链式调用
27147
26741
  */
27148
- eachControl(method: (...params: any[]) => any, context?: any): Map;
26742
+ eachControl(method: (...params: any[]) => any, context?: any, reverse?: boolean): Map;
27149
26743
  /**
27150
26744
  * 根据指定属性获取控件
27151
26745
  * @param attrValue - 属性值
@@ -27196,9 +26790,10 @@ declare class Map extends BaseClass {
27196
26790
  * 遍历每一个Thing对象并将其作为参数传递给回调函数
27197
26791
  * @param method - 回调方法
27198
26792
  * @param [context] - 侦听器的上下文(this关键字将指向的对象)。
26793
+ * @param [reverse] - 是否倒序执行
27199
26794
  * @returns 当前对象本身,可以链式调用
27200
26795
  */
27201
- eachThing(method: (...params: any[]) => any, context?: any): Map;
26796
+ eachThing(method: (...params: any[]) => any, context?: any, reverse?: boolean): Map;
27202
26797
  /**
27203
26798
  * 根据指定属性获取Thing对象
27204
26799
  * @param attrValue - 属性值
@@ -27207,11 +26802,17 @@ declare class Map extends BaseClass {
27207
26802
  */
27208
26803
  getThing(attrValue: string | number | boolean, attrName?: string): BaseThing;
27209
26804
  /**
27210
- * 根据设置的lang参数,获取当前key对应语言的文本内容。
26805
+ * 获取当前key对应语言的文本内容。
27211
26806
  * @param key - 文本key
27212
26807
  * @returns lang参数指定的对应文本内容
27213
26808
  */
27214
- getLangText(key: string): void;
26809
+ getLangText(key: string): string;
26810
+ /**
26811
+ * 设置当前key对应语言的文本内容。
26812
+ * @param key - 文本key ,如果是object时更新对应的多个键值对
26813
+ * @param text - 文本内容
26814
+ */
26815
+ setLangText(key: string | any, text: string): void;
27215
26816
  /**
27216
26817
  * 放大地图
27217
26818
  * @param [relativeAmount = 2] - 相对量
@@ -27262,7 +26863,7 @@ declare class Map extends BaseClass {
27262
26863
  cancel?: Cesium.Camera.FlightCancelledCallback;
27263
26864
  }): Promise<boolean>;
27264
26865
  /**
27265
- * 设置相机pitch值,保持地图中心位置不变。
26866
+ * 设置相机heading值,保持地图中心位置不变。
27266
26867
  * @param heading - 方向角度值, 0-360
27267
26868
  * @param [options] - 具有以下属性的对象:
27268
26869
  * @param [options.pitch] - 俯仰角度值,绕垂直于地心的轴旋转角度, -90至90
@@ -27635,12 +27236,17 @@ declare class Map extends BaseClass {
27635
27236
  duration?: number;
27636
27237
  center?: any;
27637
27238
  }): Promise<boolean>;
27239
+ /**
27240
+ * 判断指定对象是否为当前场景中正在高亮的对象
27241
+ * @param target - 判断的高亮的对象(如graphic或layer等)
27242
+ * @returns 无
27243
+ */
27244
+ isHighlighting(target: any): void;
27638
27245
  /**
27639
27246
  * 清除已高亮的矢量对象
27640
- * @param [result] - 事件对象
27641
27247
  * @returns 无
27642
27248
  */
27643
- closeHighlight(result?: any): void;
27249
+ closeHighlight(): void;
27644
27250
  /**
27645
27251
  * 高亮矢量对象
27646
27252
  * @param graphic - 矢量对象
@@ -27772,6 +27378,491 @@ declare class Map extends BaseClass {
27772
27378
  listens(type: EventType | string, propagate?: BaseClass): boolean;
27773
27379
  }
27774
27380
 
27381
+ declare namespace Map {
27382
+ /**
27383
+ * 场景参数
27384
+ * @property [center] - 默认相机视角
27385
+ * @property center.lng - 经度值, 180 - 180
27386
+ * @property center.lat - 纬度值, -90 - 90
27387
+ * @property center.alt - 高度值
27388
+ * @property [center.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
27389
+ * @property [center.pitch] - 俯仰角度值,绕纬度线旋转角度,-90至90
27390
+ * @property [center.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
27391
+ * @property [extent] - 矩形范围 相机视角,与center二选一
27392
+ * @property extent.xmin - 最小经度值, -180 至 180
27393
+ * @property extent.xmax - 最大经度值, -180 至 180
27394
+ * @property extent.ymin - 最小纬度值, -90 至 90
27395
+ * @property extent.ymax - 最大纬度值, -90 至 90
27396
+ * @property [removeDblClick = false] - 是否移除Cesium默认的双击事件
27397
+ * @property [ionToken] - Cesium Ion服务的 Token令牌
27398
+ * @property [resolutionScale = 1.0] - 获取或设置渲染分辨率的缩放比例。小于1.0的值可以改善性能不佳的设备上的性能,而值大于1.0则将以更高的速度呈现分辨率,然后缩小比例,从而提高视觉保真度。例如,如果窗口小部件的尺寸为640x480,则将此值设置为0.5将导致场景以320x240渲染,然后在设置时按比例放大设置为2.0将导致场景以1280x960渲染,然后按比例缩小。
27399
+ *
27400
+ * 以下是Cesium.Scene对象相关参数
27401
+ * @property [showSun] - 是否显示太阳,如修改对象可以用 [map.scene.sun]{@link http://mars3d.cn/api/cesium/Sun.html}
27402
+ * @property [showMoon] - 是否显示月亮,如修改对象可以用 [map.scene.moon]{@link http://mars3d.cn/api/cesium/Moon.html}
27403
+ * @property [showSkyBox] - 是否显示天空盒,如修改对象可以用 [map.scene.skyBox]{@link http://mars3d.cn/api/cesium/SkyBox.html}
27404
+ * @property [showSkyAtmosphere] - 是否显示地球大气层外光圈,如修改对象可以用 [map.scene.skyAtmosphere]{@link http://mars3d.cn/api/cesium/SkyAtmosphere.html}
27405
+ * @property [fog] - 是否启用雾化效果,如修改对象可以用 [map.scene.fog]{@link http://mars3d.cn/api/cesium/fog.html}
27406
+ * @property [fxaa] - 是否开启快速抗锯齿
27407
+ * @property [highDynamicRange] - 是否关闭高动态范围渲染(不关闭时地图会变暗)
27408
+ * @property [backgroundColor] - 空间背景色 ,css颜色值
27409
+ *
27410
+ * 以下是Cesium.Viewer所支持的options【控件相关的写在另外的control属性中】
27411
+ * @property [sceneMode = Cesium.SceneMode.SCENE3D] - 初始场景模式。可以设置进入场景后初始是2D、2.5D、3D 模式。
27412
+ * @property [scene3DOnly = false] - 为 true 时,每个几何实例将仅以3D渲染以节省GPU内存。
27413
+ * @property [mapProjection = new Cesium.GeographicProjection()] - 在二维模式下时,地图的呈现坐标系,默认为EPSG4326坐标系,如果需要EPSG3857墨卡托坐标系展示,传 new Cesium.WebMercatorProjection() 即可
27414
+ * @property [mapMode2D = Cesium.MapMode2D.INFINITE_SCROLL] - 在二维模式下时,地图是可旋转的还是可以在水平方向无限滚动。
27415
+ * @property [shouldAnimate = true] - 是否开启时钟动画
27416
+ * @property [shadows = false] - 是否启用日照阴影
27417
+ * @property [useDefaultRenderLoop = true] - 如果此小部件应控制渲染循环,则为true,否则为false。
27418
+ * @property [targetFrameRate] - 使用默认渲染循环时的目标帧速率。
27419
+ * @property [useBrowserRecommendedResolution = true] - 如果为true,则以浏览器建议的分辨率渲染,并忽略 window.devicePixelRatio 。
27420
+ * @property [automaticallyTrackDataSourceClocks = true] - 如果为true,则此小部件将自动跟踪新添加的数据源的时钟设置,并在数据源的时钟发生更改时进行更新。如果要独立配置时钟,请将其设置为false。
27421
+ * @property [contextOptions = {}] - WebGL创建属性 传递给 Cesium.Scene 的 options 。{@link Cesium.Scene}
27422
+ * @property [contextOptions.allowTextureFilterAnisotropic = true] - 允许纹理过滤各向异性
27423
+ * @property [contextOptions.requestWebgl1 = false] - 是否启用webgl1,cesium v1.102起默认用webgl2渲染
27424
+ * @property [contextOptions.webgl] - WebGL画布,用于 canvas.getContext("webgl", webglOptions) See {@link https://registry.khronos.org/webgl/specs/latest/1.0/#5.2|WebGLContextAttributes}
27425
+ * @property [contextOptions.webgl.alpha = false] - 是否包含alpha缓冲区,如果需要DIV透明时,需要改为true
27426
+ * @property [contextOptions.webgl.depth] - 绘图缓冲区的深度缓冲区至少为16位
27427
+ * @property [contextOptions.webgl.stencil = true] - 绘图缓冲区具有至少8位的模板缓冲区
27428
+ * @property [contextOptions.webgl.antialias] - 是否执行抗锯齿
27429
+ * @property [contextOptions.webgl.failIfMajorPerformanceCaveat] - 如果系统性能较低,是否创建上下文
27430
+ * @property [contextOptions.webgl.preserveDrawingBuffer] - 是否将把绘图缓存保留下来,截图需要将该项设置为true
27431
+ * @property [contextOptions.webgl.powerPreference = "high-performance"] - 对用户代理的提示,指示GPU的哪种配置适合WebGL上下文,可选值:"default"、"low-power"、"high-performance"
27432
+ * @property [orderIndependentTranslucency = true] - 如果为true,并且配置支持它,则使用顺序无关的半透明性。
27433
+ * @property [terrainShadows = Cesium.ShadowMode.RECEIVE_ONLY] - 确定地形是否投射或接收来自光源的阴影。
27434
+ * @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}.
27435
+ * @property [maximumRenderTimeChange = 0.0] - 如果requestRenderMode为true,这个值定义了在请求渲染之前允许的模拟时间的最大变化。参见 {@link https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/|Improving Performance with Explicit Rendering}.
27436
+ * @property [depthPlaneEllipsoidOffset = 0.0] - 调整DepthPlane以处理椭球体零标高以下的渲染伪影。
27437
+ * @property [msaaSamples = 1] - 如果提供,该值控制多样本抗混叠的速率。典型的多采样率是每像素2、4,有时是8个采样。更高的MSAA采样率可能会影响性能,以换取更好的视觉质量。这个值只适用于支持多样本渲染目标的WebGL2上下文。
27438
+ *
27439
+ * 以下是Cesium.Globe对象相关参数
27440
+ * @property [globe] - globe地球相关参数
27441
+ * @property [globe.show = true] - 是否显示地球
27442
+ * @property [globe.baseColor = '#546a53'] - 地球背景色 ,css颜色值
27443
+ * @property [globe.depthTestAgainstTerrain = false] - 是否启用深度监测,可以开启来测试矢量对象是否在地形下面或被遮挡。
27444
+ * @property [globe.showGroundAtmosphere = true] - 是否在地球上绘制的地面大气
27445
+ * @property [globe.enableLighting = false] - 是否显示晨昏线,可以看到地球的昼夜区域
27446
+ * @property [globe.tileCacheSize = 100] - 地形图块缓存的大小,表示为图块数。任何其他只要不需要渲染,就会释放超出此数目的图块这个框架。较大的数字将消耗更多的内存,但显示细节更快例如,当缩小然后再放大时。
27447
+ * @property [globe.terrainExaggeration = 1.0] - 地形夸张倍率,用于放大地形的标量。请注意,地形夸张不会修改其他相对于椭球的图元。
27448
+ * @property [globe.realAlt = false] - 地形夸张倍率,在测量高度和下侧提示的高度信息中是否转换为实际真实高度值。
27449
+ * @property [globe.terrainExaggerationRelativeHeight = 0.0] - 地形被夸大的高度。默认为0.0(相对于椭球表面缩放)。高于此高度的地形将向上缩放,低于此高度的地形将向下缩放。请注意,地形夸大不会修改任何其他图元,因为它们是相对于椭球体定位的。
27450
+ *
27451
+ * 以下是Cesium.ScreenSpaceCameraController对象相关参数
27452
+ * @property [cameraController] - 相机操作相关参数
27453
+ * @property [cameraController.minimumZoomDistance = 1.0] - 相机最近视距,变焦时相机位置的最小量级(以米为单位),默认为1。该值是相机与地表(含地形)的相对距离。
27454
+ * @property [cameraController.maximumZoomDistance = 50000000.0] - 相机最远视距,变焦时相机位置的最大值(以米为单位)。该值是相机与地表(含地形)的相对距离。
27455
+ * @property [cameraController.zoomFactor = 3.0] - 滚轮放大倍数,控制鼠标滚轮操作的步长
27456
+ * @property [cameraController.minimumCollisionTerrainHeight = 80000] - 最小碰撞高度,低于此高度时绕鼠标键绕圈,大于时绕视图中心点绕圈。
27457
+ * @property [cameraController.constrainedAxis = true] - 南北极绕轴心旋转,为false时 解除在南北极区域鼠标操作限制
27458
+ * @property [cameraController.enableRotate = true] - 2D和3D视图下,是否允许用户旋转相机
27459
+ * @property [cameraController.enableTranslate = true] - 2D和哥伦布视图下,是否允许用户平移地图
27460
+ * @property [cameraController.enableTilt = true] - 3D和哥伦布视图下,是否允许用户倾斜相机
27461
+ * @property [cameraController.enableZoom = true] - 是否允许 用户放大和缩小视图
27462
+ * @property [cameraController.enableCollisionDetection = true] - 是否允许 地形相机的碰撞检测
27463
+ *
27464
+ * 以下是Cesium.Clock时钟相关参数
27465
+ * @property [clock] - 时钟相关参数
27466
+ * @property [clock.currentTime] - 当前的时间
27467
+ * @property [clock.multiplier = 1.0] - 当前的速度
27468
+ */
27469
+ type sceneOptions = {
27470
+ center?: {
27471
+ lng: number;
27472
+ lat: number;
27473
+ alt: number;
27474
+ heading?: number;
27475
+ pitch?: number;
27476
+ roll?: number;
27477
+ };
27478
+ extent?: {
27479
+ xmin: number;
27480
+ xmax: number;
27481
+ ymin: number;
27482
+ ymax: number;
27483
+ };
27484
+ removeDblClick?: boolean;
27485
+ ionToken?: string;
27486
+ resolutionScale?: number;
27487
+ showSun?: boolean;
27488
+ showMoon?: boolean;
27489
+ showSkyBox?: boolean;
27490
+ showSkyAtmosphere?: boolean;
27491
+ fog?: boolean;
27492
+ fxaa?: boolean;
27493
+ highDynamicRange?: boolean;
27494
+ backgroundColor?: string;
27495
+ sceneMode?: Cesium.SceneMode;
27496
+ scene3DOnly?: boolean;
27497
+ mapProjection?: Cesium.MapProjection;
27498
+ mapMode2D?: Cesium.MapMode2D;
27499
+ shouldAnimate?: boolean;
27500
+ shadows?: boolean;
27501
+ useDefaultRenderLoop?: boolean;
27502
+ targetFrameRate?: number;
27503
+ useBrowserRecommendedResolution?: boolean;
27504
+ automaticallyTrackDataSourceClocks?: boolean;
27505
+ contextOptions?: {
27506
+ allowTextureFilterAnisotropic?: boolean;
27507
+ requestWebgl1?: boolean;
27508
+ webgl?: {
27509
+ alpha?: boolean;
27510
+ depth?: boolean;
27511
+ stencil?: boolean;
27512
+ antialias?: boolean;
27513
+ premultipliedAlpha?: boolean;
27514
+ failIfMajorPerformanceCaveat?: boolean;
27515
+ preserveDrawingBuffer?: boolean;
27516
+ powerPreference?: string;
27517
+ };
27518
+ };
27519
+ orderIndependentTranslucency?: boolean;
27520
+ terrainShadows?: Cesium.ShadowMode;
27521
+ requestRenderMode?: boolean;
27522
+ maximumRenderTimeChange?: number;
27523
+ depthPlaneEllipsoidOffset?: number;
27524
+ msaaSamples?: number;
27525
+ globe?: {
27526
+ show?: boolean;
27527
+ baseColor?: string;
27528
+ depthTestAgainstTerrain?: boolean;
27529
+ showGroundAtmosphere?: boolean;
27530
+ enableLighting?: boolean;
27531
+ tileCacheSize?: number;
27532
+ terrainExaggeration?: number;
27533
+ realAlt?: number;
27534
+ terrainExaggerationRelativeHeight?: number;
27535
+ };
27536
+ cameraController?: {
27537
+ minimumZoomDistance?: number;
27538
+ maximumZoomDistance?: number;
27539
+ zoomFactor?: number;
27540
+ minimumCollisionTerrainHeight?: number;
27541
+ constrainedAxis?: boolean;
27542
+ enableRotate?: boolean;
27543
+ enableTranslate?: boolean;
27544
+ enableTilt?: boolean;
27545
+ enableZoom?: boolean;
27546
+ enableCollisionDetection?: boolean;
27547
+ };
27548
+ clock?: {
27549
+ currentTime?: string | Cesium.JulianDate;
27550
+ multiplier?: number;
27551
+ };
27552
+ };
27553
+ /**
27554
+ * 添加到地图的控件 参数
27555
+ * @property [homeButton = false] - 视角复位按钮,是否显示
27556
+ * @property [zoom] - 放大缩小按钮 , 对应 {@link Zoom}构造参数
27557
+ * @property [sceneModePicker = false] - 二三维切换按钮,是否显示二维、三维、2.5D视图切换按钮
27558
+ * @property [projectionPicker = false] - 投影切换按钮, 是否显示用于在透视和正投影之间进行切换按钮
27559
+ * @property [fullscreenButton = false] - 全屏按钮,是否显示
27560
+ * @property [fullscreenElement = document.body] - 当按下全屏按钮时,要置于全屏模式的元素或id
27561
+ * @property [vrButton = false] - VR效果按钮,是否显示
27562
+ * @property [geocoder = false] - 是否显示 地名查找按钮 控件,是Cesium原生控件
27563
+ * @property [navigationHelpButton = false] - 帮助按钮,是否显示
27564
+ * @property [navigationInstructionsInitiallyVisible = true] - 帮助按钮 在用户明确单击按钮之前是否自动显示
27565
+ * @property [baseLayerPicker = false] - 是否显示 底图切换 按钮,是Cesium原生控件, 如果true底图是Cesium机制控制,Map内的basemaps相关获取和控制将会无效。
27566
+ * @property [imageryProviderViewModels] - baseLayerPicker底图切换面板中,用于图像的ProviderViewModel实例数组,默认自动根据basemaps数组生成。
27567
+ * @property [selectedImageryProviderViewModel] - baseLayerPicker底图切换面板中,如果没有提供当前基本图像层的视图模型,则使用第一个可用的图像层。默认为show:true的basemaps图层
27568
+ * @property [terrainProviderViewModels] - baseLayerPicker底图切换面板中,用于地形的ProviderViewModel实例数组。默认自动使用terrain配置+无地形。
27569
+ * @property [selectedTerrainProviderViewModel] - baseLayerPicker底图切换面板中,如果没有提供当前基础地形层的视图模型,则使用第一个可用的地形层。
27570
+ * @property [compass] - 导航球, 对应 {@link Compass}构造参数
27571
+ * @property [locationBar] - 状态栏, 对应 {@link LocationBar}构造参数
27572
+ * @property [locationBar.fps] - 是否显示实时FPS帧率
27573
+ * @property [locationBar.format] - 显示内容的格式化html展示的内容格式化字符串。 支持以下模版配置:【鼠标所在位置】 经度:{lng}, 纬度:{lat}, 海拔:{alt}米, 【相机的】 方向角度:{heading}, 俯仰角度:{pitch}, 视高:{cameraHeight}米, 【地图的】 层级:{level},
27574
+ * @property [distanceLegend] - 比例尺, 对应 {@link DistanceLegend}构造参数
27575
+ * @property [clockAnimate] - 时钟控制, 对应{@link ClockAnimate}构造参数
27576
+ * @property [animation = true] - 时钟仪表控制(Cesium原生)
27577
+ * @property [timeline = true] - 时间线, 是否创建下侧时间线控件面板
27578
+ * @property [overviewMap] - 鹰眼地图, 对应{@link OverviewMap }构造参数
27579
+ * @property [mapSplit] - 卷帘对比, 对应{@link MapSplit }构造参数
27580
+ * @property [keyboardRoam] - 键盘漫游, 对应{@link KeyboardRoam }构造参数
27581
+ * @property [mouseDownView] - 鼠标滚轮缩放美化样式(指示图标), 对应 {@link MouseDownView}构造参数
27582
+ * @property [infoBox = true] - 信息面板,是否显示点击要素之后显示的信息,是Cesium原生控件
27583
+ * @property [selectionIndicator = true] - 选中框,是否显示选择模型时的绿色框,是Cesium原生控件
27584
+ * @property [showRenderLoopErrors = true] - 如果为true,则在发生渲染循环错误时,此小部件将自动向包含错误的用户显示HTML面板,是Cesium原生控件
27585
+ * @property [contextmenu] - 内置 右键菜单 控制参数, 对应{@link ContextMenu }构造参数
27586
+ * @property [contextmenu.preventDefault = true] - 是否取消右键菜单
27587
+ * @property [contextmenu.hasDefault = true] - 是否绑定默认的地图右键菜单
27588
+ * @property [popup] - 内置 Popup 控制参数
27589
+ * @property [popup.depthTest = true] - 是否打开深度判断(true时判断是否在球背面)
27590
+ * @property [tooltip] - 内置 Tooltip 控制参数
27591
+ * @property [tooltip.cacheTime = 20] - 延迟缓存的时间,单位:毫秒
27592
+ */
27593
+ type controlOptions = {
27594
+ homeButton?: boolean;
27595
+ zoom?: any;
27596
+ sceneModePicker?: boolean;
27597
+ projectionPicker?: boolean;
27598
+ fullscreenButton?: boolean;
27599
+ fullscreenElement?: Element | string;
27600
+ vrButton?: boolean;
27601
+ geocoder?: boolean | Cesium.GeocoderService[];
27602
+ navigationHelpButton?: boolean;
27603
+ navigationInstructionsInitiallyVisible?: boolean;
27604
+ baseLayerPicker?: boolean;
27605
+ imageryProviderViewModels?: Cesium.ProviderViewModel[];
27606
+ selectedImageryProviderViewModel?: Cesium.ProviderViewModel;
27607
+ terrainProviderViewModels?: Cesium.ProviderViewModel[];
27608
+ selectedTerrainProviderViewModel?: Cesium.ProviderViewModel;
27609
+ compass?: any;
27610
+ locationBar?: {
27611
+ fps?: boolean;
27612
+ format?: string | ((...params: any[]) => any);
27613
+ };
27614
+ distanceLegend?: any;
27615
+ clockAnimate?: any;
27616
+ animation?: boolean;
27617
+ timeline?: boolean;
27618
+ overviewMap?: any;
27619
+ mapSplit?: any;
27620
+ keyboardRoam?: any;
27621
+ mouseDownView?: boolean;
27622
+ infoBox?: boolean;
27623
+ selectionIndicator?: boolean;
27624
+ showRenderLoopErrors?: boolean;
27625
+ contextmenu?: {
27626
+ preventDefault?: boolean;
27627
+ hasDefault?: boolean;
27628
+ };
27629
+ popup?: {
27630
+ depthTest?: boolean;
27631
+ };
27632
+ tooltip?: {
27633
+ cacheTime?: number;
27634
+ };
27635
+ };
27636
+ /**
27637
+ * 鼠标操作相关配置 参数
27638
+ * @property [enabledMoveTarget = true] - 是否开启鼠标移动事件的拾取矢量数据
27639
+ * @property [moveDelay = 30] - 鼠标移动事件的延迟毫秒数
27640
+ * @property [pickWidth = 4] - 拾取时所选矩形的宽度,单位:像素
27641
+ * @property [pickHeight = 4] - 拾取时所选矩形的高度,单位:像素
27642
+ * @property [pickLimit = 9] - 在允许allowDrillPick穿透拾取时,限制拾取的对象个数。
27643
+ */
27644
+ type mouseOptions = {
27645
+ enabledMoveTarget?: boolean;
27646
+ moveDelay?: number;
27647
+ pickWidth?: number;
27648
+ pickHeight?: number;
27649
+ pickLimit?: number;
27650
+ };
27651
+ /**
27652
+ * 添加到地图的特效 参数
27653
+ * @property [bloom] - 泛光,对应{@link BloomEffect }构造参数
27654
+ * @property [brightness] - 亮度,对应{@link BrightnessEffect }构造参数
27655
+ * @property [rain] - 雨天气,对应{@link RainEffect }构造参数
27656
+ * @property [snow] - 雪天气 ,对应{@link SnowEffect }构造参数
27657
+ * @property [snowCover] - 地面积雪,对应{@link SnowCoverEffect }构造参数
27658
+ * @property [fog] - 雾天气,对应{@link FogEffect }构造参数
27659
+ * @property [depthOfField] - 景深,对应{@link DepthOfFieldEffect }构造参数
27660
+ * @property [mosaic] - 马赛克,对应{@link MosaicEffect }构造参数
27661
+ * @property [nightVision] - 夜视,对应{@link NightVisionEffect }构造参数
27662
+ * @property [blackAndWhite] - 黑白,对应{@link BlackAndWhiteEffect }构造参数
27663
+ * @property [outline] - 对象轮廓描边,对应{@link OutlineEffect }构造参数
27664
+ * @property [bloomTarget] - 对象泛光,对应{@link BloomTargetEffect }构造参数
27665
+ */
27666
+ type effectOptions = {
27667
+ bloom?: any;
27668
+ brightness?: any;
27669
+ rain?: any;
27670
+ snow?: any;
27671
+ snowCover?: any;
27672
+ fog?: any;
27673
+ depthOfField?: any;
27674
+ mosaic?: any;
27675
+ nightVision?: any;
27676
+ blackAndWhite?: any;
27677
+ outline?: any;
27678
+ bloomTarget?: any;
27679
+ };
27680
+ /**
27681
+ * 地形服务配置
27682
+ * @property [type = "xyz"] - 地形类型
27683
+ * @property url - 地形服务地址
27684
+ * @property [show = false] - 是否启用显示地形
27685
+ * @property [requestVertexNormals = false] - 是否应该从服务器请求额外的光照信息,如果可用,以每个顶点法线的形式。
27686
+ * @property [requestWaterMask = false] - 是否应该向服务器请求每个瓦的水掩膜(如果有的话)。
27687
+ * @property [requestMetadata = true] - 是否应该从服务器请求每个块元数据(如果可用)。
27688
+ * @property [clip = false] - 是否默认启用地形开挖,如果后续打开,缓存数据不会裁剪
27689
+ * @property [flat = false] - 是否默认启用地形压平
27690
+ * @property [uplift = false] - 是否默认启用地形抬升
27691
+ * @property [flood = false] - 是否默认启用地形区域材质(淹没,等高线)
27692
+ */
27693
+ type terrainOptions = {
27694
+ type?: string | TerrainType;
27695
+ url: string | Cesium.Resource;
27696
+ show?: boolean;
27697
+ requestVertexNormals?: boolean;
27698
+ requestWaterMask?: boolean;
27699
+ requestMetadata?: boolean;
27700
+ clip?: boolean;
27701
+ flat?: boolean;
27702
+ uplift?: boolean;
27703
+ flood?: boolean;
27704
+ };
27705
+ /**
27706
+ * 底图图层配置
27707
+ * @property type - 图层类型
27708
+ * @property [多个参数] - 每种不同type都有自己的不同属性,具体参考{@link LayerType}找到type对应的BaseTileLayer子类图层类,查看其构造参数
27709
+ */
27710
+ type basemapOptions = {
27711
+ type: string | LayerType;
27712
+ 多个参数?: any;
27713
+ };
27714
+ /**
27715
+ * 可以叠加显示的图层配置,
27716
+ * @property type - 图层类型
27717
+ * @property [id] - 图层id标识
27718
+ * @property [pid = -1] - 图层父级的id,一般图层管理中使用
27719
+ * @property [name = ''] - 图层名称
27720
+ * @property [show = true] - 图层是否显示
27721
+ * @property [center] - 图层自定义定位视角,默认根据数据情况自动定位。
27722
+ * @property [popup] - 当图层支持popup弹窗时,绑定的值
27723
+ * @property [popupOptions] - popup弹窗时的配置参数
27724
+ * @property [tooltip] - 当图层支持tooltip弹窗时,绑定的值
27725
+ * @property [tooltipOptions] - tooltip弹窗时的配置参数
27726
+ * @property [多个参数] - 每种type都有自己的不同属性,具体参考{@link LayerType}找到type对应的图层类,查看其构造参数
27727
+ */
27728
+ type layerOptions = {
27729
+ type: string | LayerType;
27730
+ id?: string | number;
27731
+ pid?: string | number;
27732
+ name?: string;
27733
+ show?: boolean;
27734
+ center?: any;
27735
+ popup?: any;
27736
+ popupOptions?: Popup.StyleOptions | any;
27737
+ tooltip?: any;
27738
+ tooltipOptions?: Tooltip.StyleOptions | any;
27739
+ 多个参数?: any;
27740
+ };
27741
+ /**
27742
+ * 覆盖SDK内的{@link Token}所有第3方Token默认值
27743
+ * @property [tianditu] - 天地图
27744
+ * @property [gaode] - 高德
27745
+ * @property [baidu] - 百度
27746
+ * @property [ion] - Ion服务
27747
+ * @property [mapbox] - mapbox地图
27748
+ * @property [bing] - 微软Bing地图
27749
+ */
27750
+ type tokenOptions = {
27751
+ tianditu?: string | string[];
27752
+ gaode?: string | string[];
27753
+ baidu?: string | string[];
27754
+ ion?: string;
27755
+ mapbox?: string;
27756
+ bing?: string;
27757
+ };
27758
+ /**
27759
+ * Map支持的{@link EventType}事件类型
27760
+ * @example
27761
+ * //绑定监听事件
27762
+ * map.on(mars3d.EventType.click, function (event) {
27763
+ * console.log('单击了地图对象', event)
27764
+ * })
27765
+ * @property load - 地图初始化完成事件(地形、所有图层完成初始化)
27766
+ * @property addLayer - 添加图层
27767
+ * @property removeLayer - 移除图层
27768
+ * @property terrainChange - 地形变化
27769
+ * @property tileLoadProgress - 地图中瓦片加载进度变化
27770
+ * @property cameraMoveStart - 相机开启移动前 场景事件
27771
+ * @property cameraMoveEnd - 相机移动完成后 场景事件
27772
+ * @property cameraChanged - 相机位置完成 场景事件
27773
+ * @property preUpdate - 场景更新前 场景事件
27774
+ * @property postUpdate - 场景更新后 场景事件
27775
+ * @property preRender - 场景渲染前 场景事件
27776
+ * @property postRender - 场景渲染后 场景事件
27777
+ * @property morphStart - 场景模式(2D/3D/哥伦布)变换前 场景事件
27778
+ * @property morphComplete - 完成场景模式(2D/3D/哥伦布)变换 场景事件
27779
+ * @property clockTick - 时钟跳动 场景事件
27780
+ * @property renderError - 场景渲染失败(需要刷新页面)
27781
+ * @property click - 左键单击 鼠标事件
27782
+ * @property clickGraphic - 左键单击到矢量或模型数据时 鼠标事件
27783
+ * @property clickTileGraphic - 左键单击到wms或arcgis瓦片服务的对应矢量数据时
27784
+ * @property clickMap - 左键单击地图空白(未单击到矢量或模型数据)时 鼠标事件
27785
+ * @property dblClick - 左键双击 鼠标事件
27786
+ * @property leftDown - 左键鼠标按下 鼠标事件
27787
+ * @property leftUp - 左键鼠标按下后释放 鼠标事件
27788
+ * @property mouseMove - 鼠标移动 鼠标事件
27789
+ * @property mouseMoveTarget - 鼠标移动(拾取目标,并延迟处理) 鼠标事件
27790
+ * @property wheel - 鼠标滚轮滚动 鼠标事件
27791
+ * @property rightClick - 右键单击 鼠标事件
27792
+ * @property rightDown - 右键鼠标按下 鼠标事件
27793
+ * @property rightUp - 右键鼠标按下后释放 鼠标事件
27794
+ * @property middleClick - 中键单击 鼠标事件
27795
+ * @property middleDown - 中键鼠标按下 鼠标事件
27796
+ * @property middleUp - 中键鼠标按下后释放 鼠标事件
27797
+ * @property pinchStart - 在触摸屏上两指缩放开始 鼠标事件
27798
+ * @property pinchEnd - 在触摸屏上两指缩放结束 鼠标事件
27799
+ * @property pinchMove - 在触摸屏上两指移动 鼠标事件
27800
+ * @property mouseDown - 鼠标按下 [左中右3键都触发] 鼠标事件
27801
+ * @property mouseUp - 鼠标按下后释放 [左中右3键都触发] 鼠标事件
27802
+ * @property mouseOver - 鼠标移入 鼠标事件
27803
+ * @property mouseOut - 鼠标移出 鼠标事件
27804
+ * @property keydown - 按键按下 键盘事件
27805
+ * @property keyup - 按键按下后释放 键盘事件
27806
+ * @property popupOpen - popup弹窗打开后
27807
+ * @property popupClose - popup弹窗关闭
27808
+ * @property tooltipOpen - tooltip弹窗打开后
27809
+ * @property tooltipClose - tooltip弹窗关闭
27810
+ * @property contextMenuOpen - 右键菜单 打开后
27811
+ * @property contextMenuClose - 右键菜单 关闭
27812
+ * @property contextMenuClick - 右键菜单 单击某一项后
27813
+ */
27814
+ type EventType = {
27815
+ load: string;
27816
+ addLayer: string;
27817
+ removeLayer: string;
27818
+ terrainChange: string;
27819
+ tileLoadProgress: string;
27820
+ cameraMoveStart: string;
27821
+ cameraMoveEnd: string;
27822
+ cameraChanged: string;
27823
+ preUpdate: string;
27824
+ postUpdate: string;
27825
+ preRender: string;
27826
+ postRender: string;
27827
+ morphStart: string;
27828
+ morphComplete: string;
27829
+ clockTick: string;
27830
+ renderError: string;
27831
+ click: string;
27832
+ clickGraphic: string;
27833
+ clickTileGraphic: string;
27834
+ clickMap: string;
27835
+ dblClick: string;
27836
+ leftDown: string;
27837
+ leftUp: string;
27838
+ mouseMove: string;
27839
+ mouseMoveTarget: string;
27840
+ wheel: string;
27841
+ rightClick: string;
27842
+ rightDown: string;
27843
+ rightUp: string;
27844
+ middleClick: string;
27845
+ middleDown: string;
27846
+ middleUp: string;
27847
+ pinchStart: string;
27848
+ pinchEnd: string;
27849
+ pinchMove: string;
27850
+ mouseDown: string;
27851
+ mouseUp: string;
27852
+ mouseOver: string;
27853
+ mouseOut: string;
27854
+ keydown: string;
27855
+ keyup: string;
27856
+ popupOpen: string;
27857
+ popupClose: string;
27858
+ tooltipOpen: string;
27859
+ tooltipClose: string;
27860
+ contextMenuOpen: string;
27861
+ contextMenuClose: string;
27862
+ contextMenuClick: string;
27863
+ };
27864
+ }
27865
+
27775
27866
  /**
27776
27867
  * 材质属性(Entity使用) 基础类
27777
27868
  * @param options - 参数对象
@@ -28096,6 +28187,7 @@ declare class EllipsoidWaveMaterialProperty extends BaseMaterialProperty {
28096
28187
  * @param [options.speed = 0] - 不为0时呈现图片滚动效果,数字代表滚动速度
28097
28188
  * @param [options.flipx = false] - 是否X方向翻转图片
28098
28189
  * @param [options.flipy = false] - 是否Y方向翻转图片
28190
+ * @param [options.repeat = new Cesium.Cartesian2(1.0, 1.0)] - 指定图像在每个方向上重复的次数
28099
28191
  * @param [options.noWhite = true] - 是否不显示白色,true时没有加载完成前的白色闪烁,但也不支持纯白色的图片
28100
28192
  */
28101
28193
  declare class Image2MaterialProperty extends BaseMaterialProperty {
@@ -28106,6 +28198,7 @@ declare class Image2MaterialProperty extends BaseMaterialProperty {
28106
28198
  speed?: number;
28107
28199
  flipx?: boolean;
28108
28200
  flipy?: boolean;
28201
+ repeat?: Cesium.Cartesian2;
28109
28202
  noWhite?: boolean;
28110
28203
  });
28111
28204
  /**
@@ -28136,6 +28229,10 @@ declare class Image2MaterialProperty extends BaseMaterialProperty {
28136
28229
  * 是否不显示白色,true时没有加载完成前的白色闪烁,但也不支持纯白色的图片
28137
28230
  */
28138
28231
  noWhite: boolean;
28232
+ /**
28233
+ * 指定图像在每个方向上重复的次数
28234
+ */
28235
+ repeat: Cesium.Cartesian2;
28139
28236
  /**
28140
28237
  * 获取 材质名称
28141
28238
  * @param [time] - 检索值的时间。
@@ -32127,6 +32224,7 @@ declare class Measure extends BaseThing {
32127
32224
  * @param [options] - 控制参数
32128
32225
  * @param [options.style] - 路线的样式
32129
32226
  * @param [options.label] - 测量结果文本的样式
32227
+ * // * @param {function} [options.label.updateText] 测量结果文本更新的回调方法
32130
32228
  * @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
32131
32229
  * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
32132
32230
  * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
@@ -32147,7 +32245,8 @@ declare class Measure extends BaseThing {
32147
32245
  * 测量 贴地长度
32148
32246
  * @param [options] - 控制参数
32149
32247
  * @param [options.style] - 路线的样式
32150
- * @param [options.label] - 测量结果文本的样式
32248
+ * @param [options.label] - 测量结果文本的样式,
32249
+ * // * @param {function} [options.label.updateText] 测量结果文本更新的回调方法
32151
32250
  * @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
32152
32251
  * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
32153
32252
  * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
@@ -32175,6 +32274,7 @@ declare class Measure extends BaseThing {
32175
32274
  * @param [options] - 控制参数
32176
32275
  * @param [options.style] - 路线的样式
32177
32276
  * @param [options.label] - 测量结果文本的样式
32277
+ * // * @param {function} [options.label.updateText] 测量结果文本更新的回调方法
32178
32278
  * @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
32179
32279
  * @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
32180
32280
  * @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
@@ -32445,16 +32545,20 @@ declare class Shadows extends BaseThing {
32445
32545
  * @param options - 参数
32446
32546
  * @param options.startDate - 开始时间
32447
32547
  * @param options.endDate - 结束时间
32448
- * @param positions - 分析区域范围坐标
32449
- * @param step - 间隔(单位米)
32450
- * @param [minHeight] - 最小高程(单位米),与maxHeight一起可以设置多层
32451
- * @param [maxHeight] - 最大高程(单位米)
32548
+ * @param options.positions - 分析区域范围坐标
32549
+ * @param options.step - 间隔(单位米)
32550
+ * @param [options.minHeight] - 最小高程(单位米),与maxHeight一起可以设置多层
32551
+ * @param [options.maxHeight] - 最大高程(单位米)
32452
32552
  * @returns 分析结果
32453
32553
  */
32454
32554
  startRate(options: {
32455
32555
  startDate: Date;
32456
32556
  endDate: Date;
32457
- }, positions: Cesium.Cartesian3[] | LngLatPoint[] | any, step: number, minHeight?: number, maxHeight?: number): Promise<any>;
32557
+ positions: Cesium.Cartesian3[] | LngLatPoint[] | any;
32558
+ step: number;
32559
+ minHeight?: number;
32560
+ maxHeight?: number;
32561
+ }): Promise<any>;
32458
32562
  }
32459
32563
 
32460
32564
  declare namespace Sightline {
@@ -33525,7 +33629,8 @@ declare class TerrainEditBase extends BaseThing {
33525
33629
  * 添加单个区域
33526
33630
  * @param positions - 坐标位置数组
33527
33631
  * @param [options = {}] - 控制的参数
33528
- * @param [options.height] - 高度值
33632
+ * @param [options.height] - 地形压平时,高度值
33633
+ * @param [options.diffHeight] - 地形开挖和抬升时,墙体的高度值
33529
33634
  * @param [options.simplify] - 是否简化坐标点位,为空时不简化
33530
33635
  * @param [options.simplify.tolerance = 0.0001] - 简化的程度,传值是经纬度的小数位
33531
33636
  * @param [options.simplify.highQuality = true] - 是否花更多的时间用不同的算法创建更高质量的简化
@@ -33534,6 +33639,7 @@ declare class TerrainEditBase extends BaseThing {
33534
33639
  */
33535
33640
  addArea(positions: string[] | any[][] | LngLatPoint[] | Cesium.Cartesian3[], options?: {
33536
33641
  height?: any;
33642
+ diffHeight?: any;
33537
33643
  simplify?: {
33538
33644
  tolerance?: number;
33539
33645
  highQuality?: boolean;
@@ -35275,13 +35381,13 @@ declare namespace MeasureUtil {
35275
35381
  * @param val - 距离值,米
35276
35382
  * @param [options] - 参数:
35277
35383
  * @param [options.unit = 'auto'] - 计量单位, 可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
35278
- * @param [options.lang = 0] - 使用的语言
35384
+ * @param [options.getLangText] - 获取文本的对应方法
35279
35385
  * @param [options.decimal = 2] - 保留的小数位
35280
35386
  * @returns 带单位的格式化距离值字符串,如:20.17 米
35281
35387
  */
35282
35388
  function formatDistance(val: number, options?: {
35283
35389
  unit?: string;
35284
- lang?: LangType;
35390
+ getLangText?: (...params: any[]) => any;
35285
35391
  decimal?: number;
35286
35392
  }): string;
35287
35393
  /**
@@ -35289,13 +35395,13 @@ declare namespace MeasureUtil {
35289
35395
  * @param val - 面积值,平方米
35290
35396
  * @param [options] - 参数:
35291
35397
  * @param [options.unit = 'auto'] - 计量单位,可选值:auto、m、km、mu、ha 。auto时根据面积值自动选用m或km
35292
- * @param [options.lang = 0] - 使用的语言
35398
+ * @param [options.getLangText] - 获取文本的对应方法
35293
35399
  * @param [options.decimal = 2] - 保留的小数位
35294
35400
  * @returns 带单位的格式化面积值字符串,如:20.21 平方公里
35295
35401
  */
35296
35402
  function formatArea(val: number, options?: {
35297
35403
  unit?: string;
35298
- lang?: LangType;
35404
+ getLangText?: (...params: any[]) => any;
35299
35405
  decimal?: number;
35300
35406
  }): string;
35301
35407
  /**
@@ -35303,13 +35409,13 @@ declare namespace MeasureUtil {
35303
35409
  * @param val - 体积值,立方米
35304
35410
  * @param [options] - 参数:
35305
35411
  * @param [options.unit = 'auto'] - 计量单位,当前无用,备用参数
35306
- * @param [options.lang = 0] - 使用的语言
35412
+ * @param [options.getLangText] - 获取文本的对应方法
35307
35413
  * @param [options.decimal = 2] - 保留的小数位
35308
35414
  * @returns 带单位的格式化体积值字符串,如:20.21立方米
35309
35415
  */
35310
35416
  function formatVolume(val: number, options?: {
35311
35417
  unit?: string;
35312
- lang?: LangType;
35418
+ getLangText?: (...params: any[]) => any;
35313
35419
  decimal?: number;
35314
35420
  }): string;
35315
35421
  }
@@ -35623,9 +35729,10 @@ declare namespace PointUtil {
35623
35729
  * 求2点的中间点(贴地表)
35624
35730
  * @param mpt1 - 点1坐标
35625
35731
  * @param mpt2 - 点2坐标
35732
+ * @param [fraction = 0.5] - 起始点和终点之间距离的比例
35626
35733
  * @returns 2个点是否为重复的点
35627
35734
  */
35628
- function getMidpoint(mpt1: Cesium.Cartesian3 | LngLatPoint, mpt2: Cesium.Cartesian3 | LngLatPoint): Cesium.Cartesian3;
35735
+ function getMidpoint(mpt1: Cesium.Cartesian3 | LngLatPoint, mpt2: Cesium.Cartesian3 | LngLatPoint, fraction?: number): Cesium.Cartesian3;
35629
35736
  /**
35630
35737
  * 判断2个点是否为重复的点,比如标绘中的双击会偶尔产生2个重复点
35631
35738
  * @param mpt1 - 点1坐标
@@ -35954,7 +36061,7 @@ declare namespace PolyUtil {
35954
36061
  * @param options.center - 中心坐标
35955
36062
  * @param [options.width] - 矩形的宽度,单位:米
35956
36063
  * @param [options.height] - 矩形的高度,单位:米
35957
- * @param [options.rotation = 0] - 旋转的角度
36064
+ * @param [options.rotation = 0] - 旋转的角度(弧度值)
35958
36065
  * @param [options.originX = 0.5] - 中心点所在的位置x轴方向比例,取值范围:0.1-1.0
35959
36066
  * @param [options.originY = 0.5] - 中心点所在的位置y轴方向比例,取值范围:0.1-1.0
35960
36067
  * @returns 矩形面的顶点坐标数组
@@ -36757,21 +36864,6 @@ declare namespace Util {
36757
36864
  timeout?: number;
36758
36865
  headers?: any;
36759
36866
  }): Promise<any>;
36760
- /**
36761
- * 根据设置的lang参数,获取当前key对应语言的文本内容。
36762
- * @param key - 文本key
36763
- * @param [langType = 0] - 使用的语言
36764
- * @returns lang参数指定的对应文本内容
36765
- */
36766
- function getLangText(key: string, langType?: LangType): string;
36767
- /**
36768
- * 更新Lang值,设置当前key对应语言的文本内容。
36769
- * @param key - 文本key
36770
- * @param text - 文本内容
36771
- * @param [langType = 0] - 使用的语言
36772
- * @returns 是否更新成功
36773
- */
36774
- function setLangText(key: string, text: string, langType?: LangType): void;
36775
36867
  /**
36776
36868
  * 进入全屏
36777
36869
  * @param container - 指定DOM元素,如 map.container
@@ -37029,6 +37121,32 @@ declare namespace graphic {
37029
37121
  export { SatelliteSensor }
37030
37122
  }
37031
37123
 
37124
+ /**
37125
+ * 矢量数据编辑类 命名空间
37126
+ */
37127
+ declare namespace edit {
37128
+ export { EditBase }
37129
+ export { EditBox }
37130
+ export { EditCircle }
37131
+ export { EditCorridor }
37132
+ export { EditCylinder }
37133
+ export { EditEllipsoid }
37134
+ export { EditModel }
37135
+ export { EditPlane }
37136
+ export { EditPoint }
37137
+ export { EditPoly }
37138
+ export { EditPolygon }
37139
+ export { EditPolygonGrid }
37140
+ export { EditPolylineVolume }
37141
+ export { EditRectangle }
37142
+ export { EditTileset }
37143
+ export { EditVideo2D }
37144
+ export { EditWall }
37145
+
37146
+ export { EditDivGraphic }
37147
+ }
37148
+
37149
+
37032
37150
  /**
37033
37151
  * 图层类 命名空间,
37034
37152
  * 教程 http://mars3d.cn/dev/guide/map/layer.html
@@ -37144,9 +37262,9 @@ declare namespace thing {
37144
37262
 
37145
37263
  export {
37146
37264
  name, update, version, proj4, Tle,
37147
- BaseClass, BaseThing, LngLatPoint, LngLatArray, GroundSkyBox, MultipleSkyBox, LocalWorldTransform, CRS, ChinaCRS, EventType, State, Token, ColorRamp, MaterialType, GraphicType, LayerType, ControlType, EffectType, Lang, LangType, MoveType, ClipType, Icon,
37265
+ BaseClass, BaseThing, LngLatPoint, LngLatArray, GroundSkyBox, MultipleSkyBox, LocalWorldTransform, CRS, ChinaCRS, EventType, State, Token, ColorRamp, MaterialType, GraphicType, LayerType, ControlType, EffectType, Lang, MoveType, ClipType, Icon,
37148
37266
  DomUtil, MeasureUtil, PointUtil, PolyUtil, PointTrans, Util, Log, MaterialUtil, GraphicUtil, DrawUtil, LayerUtil, ControlUtil, EffectUtil,
37149
37267
  BaseMaterialConver, BaseStyleConver, BillboardStyleConver, CloudStyleConver, BoxStyleConver, CircleStyleConver, CorridorStyleConver, CylinderStyleConver, DivGraphicStyleConver, EllipsoidStyleConver, LabelStyleConver, ModelStyleConver, PathStyleConver, PlaneStyleConver, PointStyleConver, PolygonStyleConver, PolylineStyleConver, PolylineVolumeStyleConver, RectangleStyleConver, RectangularSensorStyleConver, WallStyleConver,
37150
- material, graphic, provider, layer, thing, effect, control, query,
37268
+ material, graphic, edit, provider, layer, thing, effect, control, query,
37151
37269
  Map,
37152
37270
  };