cesium_dev_kit 1.0.46 → 1.0.48
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/index.js +1 -23
- package/dist/index.min.js +1 -1
- package/package.json +2 -3
package/dist/index.js
CHANGED
|
@@ -4,12 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
6
|
|
|
7
|
-
var CesiumNavigation = _interopDefault(require('cesium-navigation-es6'));
|
|
8
7
|
var SuperGif = _interopDefault(require('libgif'));
|
|
9
8
|
var turf = require('@turf/turf');
|
|
10
9
|
var dat = require('dat.gui');
|
|
11
10
|
var echarts = _interopDefault(require('echarts'));
|
|
12
|
-
var alternateCesium = require('cesium');
|
|
13
11
|
|
|
14
12
|
// 输入16进制颜色值 转 rgb 的数组值 255
|
|
15
13
|
function colorRgb(inColor) {
|
|
@@ -119,11 +117,6 @@ class Controller {
|
|
|
119
117
|
// 显示 fps
|
|
120
118
|
// viewer.scene.debugShowFramesPerSecond = true
|
|
121
119
|
|
|
122
|
-
// 是否需要 初始化 cesium-navigation 控件
|
|
123
|
-
if (extreaConfig['initNavigate']) {
|
|
124
|
-
this.initCesiumNavigation(viewer);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
120
|
// 增加配置图层
|
|
128
121
|
this.setConfigMapList(viewer, MapImageryList);
|
|
129
122
|
// 消除锯齿
|
|
@@ -131,21 +124,6 @@ class Controller {
|
|
|
131
124
|
this.viewer = viewer;
|
|
132
125
|
return viewer;
|
|
133
126
|
}
|
|
134
|
-
initCesiumNavigation(viewer) {
|
|
135
|
-
const options = {};
|
|
136
|
-
// 用于在使用重置导航重置地图视图时设置默认视图控制。接受的值是Cesium.Cartographic 和 Cesium.Rectangle.
|
|
137
|
-
options.defaultResetView = new Cesium$1.Rectangle.fromDegrees(80, 22, 130, 50); // new Cesium.Rectangle.fromDegrees(113.8980, 22.4899, 113.9686, 22.5438)
|
|
138
|
-
// 用于启用或禁用罗盘。true是启用罗盘,false是禁用罗盘。默认值为true。如果将选项设置为false,则罗盘将不会添加到地图中。
|
|
139
|
-
options.enableCompass = true;
|
|
140
|
-
// 用于启用或禁用缩放控件。true是启用,false是禁用。默认值为true。如果将选项设置为false,则缩放控件将不会添加到地图中。
|
|
141
|
-
options.enableZoomControls = true;
|
|
142
|
-
// 用于启用或禁用距离图例。true是启用,false是禁用。默认值为true。如果将选项设置为false,距离图例将不会添加到地图中。
|
|
143
|
-
options.enableDistanceLegend = true;
|
|
144
|
-
// 用于启用或禁用指南针外环。true是启用,false是禁用。默认值为true。如果将选项设置为false,则该环将可见但无效。
|
|
145
|
-
options.enableCompassOuterRing = true;
|
|
146
|
-
// 注意需要new 否则Cannot set properties of undefined (setting 'terria')
|
|
147
|
-
new CesiumNavigation(viewer, options);
|
|
148
|
-
}
|
|
149
127
|
setOneimageryProvider(MapImagery) {
|
|
150
128
|
if (MapImagery.classConfig.customTags) {
|
|
151
129
|
MapImagery.classConfig.customTags = evil('(' + MapImagery.classConfig.customTags + ')');
|
|
@@ -13631,7 +13609,7 @@ const prototypeExtends = function (viewer, cesiumGlobal) {
|
|
|
13631
13609
|
* @returns
|
|
13632
13610
|
*/
|
|
13633
13611
|
function initCesium({
|
|
13634
|
-
cesiumGlobal
|
|
13612
|
+
cesiumGlobal,
|
|
13635
13613
|
containerId,
|
|
13636
13614
|
viewerConfig = {},
|
|
13637
13615
|
extreaConfig = {},
|