cesium_dev_kit 1.0.47 → 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 +0 -21
- package/dist/index.min.js +1 -1
- package/package.json +2 -3
package/dist/index.js
CHANGED
|
@@ -4,7 +4,6 @@ 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');
|
|
@@ -118,11 +117,6 @@ class Controller {
|
|
|
118
117
|
// 显示 fps
|
|
119
118
|
// viewer.scene.debugShowFramesPerSecond = true
|
|
120
119
|
|
|
121
|
-
// 是否需要 初始化 cesium-navigation 控件
|
|
122
|
-
if (extreaConfig['initNavigate']) {
|
|
123
|
-
this.initCesiumNavigation(viewer);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
120
|
// 增加配置图层
|
|
127
121
|
this.setConfigMapList(viewer, MapImageryList);
|
|
128
122
|
// 消除锯齿
|
|
@@ -130,21 +124,6 @@ class Controller {
|
|
|
130
124
|
this.viewer = viewer;
|
|
131
125
|
return viewer;
|
|
132
126
|
}
|
|
133
|
-
initCesiumNavigation(viewer) {
|
|
134
|
-
const options = {};
|
|
135
|
-
// 用于在使用重置导航重置地图视图时设置默认视图控制。接受的值是Cesium.Cartographic 和 Cesium.Rectangle.
|
|
136
|
-
options.defaultResetView = new Cesium$1.Rectangle.fromDegrees(80, 22, 130, 50); // new Cesium.Rectangle.fromDegrees(113.8980, 22.4899, 113.9686, 22.5438)
|
|
137
|
-
// 用于启用或禁用罗盘。true是启用罗盘,false是禁用罗盘。默认值为true。如果将选项设置为false,则罗盘将不会添加到地图中。
|
|
138
|
-
options.enableCompass = true;
|
|
139
|
-
// 用于启用或禁用缩放控件。true是启用,false是禁用。默认值为true。如果将选项设置为false,则缩放控件将不会添加到地图中。
|
|
140
|
-
options.enableZoomControls = true;
|
|
141
|
-
// 用于启用或禁用距离图例。true是启用,false是禁用。默认值为true。如果将选项设置为false,距离图例将不会添加到地图中。
|
|
142
|
-
options.enableDistanceLegend = true;
|
|
143
|
-
// 用于启用或禁用指南针外环。true是启用,false是禁用。默认值为true。如果将选项设置为false,则该环将可见但无效。
|
|
144
|
-
options.enableCompassOuterRing = true;
|
|
145
|
-
// 注意需要new 否则Cannot set properties of undefined (setting 'terria')
|
|
146
|
-
new CesiumNavigation(viewer, options);
|
|
147
|
-
}
|
|
148
127
|
setOneimageryProvider(MapImagery) {
|
|
149
128
|
if (MapImagery.classConfig.customTags) {
|
|
150
129
|
MapImagery.classConfig.customTags = evil('(' + MapImagery.classConfig.customTags + ')');
|