-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmap3d.js
More file actions
44 lines (35 loc) · 1.35 KB
/
map3d.js
File metadata and controls
44 lines (35 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
class CesiumView extends NView {
constructor() {
super();
}
build(me, target) {
target.html('<h1>Loading Map...</h1>');
LazyLoad.js('lib/cesium/Cesium.js', ()=>{
//me.info('Cesium 3D Map ready');
target.html('');
const c = new Cesium.CesiumWidget(target[0], {
//http://cesiumjs.org/Cesium/Build/Documentation/CesiumWidget.html
sceneModePicker: true,
timeline: false,
animation: true,
fullscreenButton: false,
sceneMode: Cesium.SceneMode.SCENE3D,
navigationHelpButton: false,
navigationInstructionsInitiallyVisible: false,
targetFrameRate: 15,
projectionPicker: true,
skyAtmosphere: false,
contextOptions: {
//http://cesiumjs.org/Cesium/Build/Documentation/Scene.html
}
//imageryProvider: !1,
//baseLayerPicker: !1,
//clock: clock,
//terrainProvider: !1
});
c._element.setAttribute('style', 'width: 100%; height: 100%');
c._canvas.setAttribute('style', 'width: 100%; height: 100%');
//viewer.extend(Cesium.viewerCesiumNavigationMixin, {});
});
}
}