Skip to content

Commit b1e87c0

Browse files
author
hezhentao
committed
【示例】【修改】【修改Cesium、MapBox-GL示例】
1 parent 42762c1 commit b1e87c0

File tree

260 files changed

+12102
-5621
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

260 files changed

+12102
-5621
lines changed
63.1 KB
Loading
3.7 KB
Loading
398 Bytes
Loading
8.42 KB
Loading
2.47 KB
Loading

website/public/static/demo/cesium/example/analysis/analysis-animation.htm

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,21 @@
6464
scene.camera.enableTerrainAdjustmentWhenLoading = true; //避免穿透地形
6565

6666
//漫游路径
67-
positions = Cesium.Cartesian3.fromDegreesArray([
68-
117.213063, 31.812956, 117.213162, 31.812389, 117.212929, 31.812056, 117.213275, 31.811582,
69-
117.21348, 31.811513, 117.214141, 31.811682, 117.21497, 31.811691, 117.216318, 31.811454,
70-
117.216962, 31.812037, 117.217893, 31.812298, 117.218607, 31.811488, 117.219466, 31.810935,
71-
117.224439, 31.810929, 117.225266, 31.811119, 117.225308, 31.81131, 117.224819, 31.811724,
72-
117.225189, 31.811928, 117.225676, 31.811624, 117.225843, 31.811943, 117.22625, 31.812183,
73-
117.226292, 31.81281, 117.225888, 31.813287, 117.226093, 31.814059, 117.22564, 31.814582,
74-
117.225953, 31.814731, 117.225611, 31.814954, 117.22576, 31.815233, 117.224073, 31.816329,
75-
117.223694, 31.81627, 117.222769, 31.817007, 117.222259, 31.816871, 117.221922, 31.816707,
76-
117.221653, 31.816788, 117.22151, 31.817002, 117.221039, 31.816891, 117.220395, 31.816352,
77-
117.220166, 31.815734, 117.219804, 31.815607, 117.219461, 31.815122, 117.21878, 31.814846,
78-
117.218297, 31.815275, 117.217975, 31.815172, 117.217142, 31.815229, 117.216753, 31.815124,
79-
117.216652, 31.814308, 117.215726, 31.814049, 117.214769, 31.813517, 117.214111, 31.813717,
80-
117.213552, 31.814099, 117.213024, 31.813954, 117.212897, 31.813892, 117.213224, 31.813681,
81-
117.212788, 31.813147, 117.212928, 31.813018, 117.213063, 31.812956
67+
positions = Cesium.Cartesian3.fromDegreesArrayHeights([
68+
117.213063, 31.812956, 500, 117.213162, 31.812389, 500, 117.212929, 31.812056, 500, 117.213275, 31.811582, 500,
69+
117.21348, 31.811513, 500, 117.214141, 31.811682, 500, 117.21497, 31.811691, 500, 117.216318, 31.811454, 500,
70+
117.216962, 31.812037, 500, 117.217893, 31.812298, 500, 117.218607, 31.811488, 500, 117.219466, 31.810935, 500,
71+
117.224439, 31.810929, 500, 117.225266, 31.811119, 500, 117.225308, 31.81131, 500, 117.224819, 31.811724, 500,
72+
117.225189, 31.811928, 500, 117.225676, 31.811624, 500, 117.225843, 31.811943, 500, 117.22625, 31.812183, 500,
73+
117.226292, 31.81281, 500, 117.225888, 31.813287, 500, 117.226093, 31.814059, 500, 117.22564, 31.814582, 500,
74+
117.225953, 31.814731, 500, 117.225611, 31.814954, 500, 117.22576, 31.815233, 500, 117.224073, 31.816329, 500,
75+
117.223694, 31.81627, 500, 117.222769, 31.817007, 500, 117.222259, 31.816871, 500, 117.221922, 31.816707, 500,
76+
117.221653, 31.816788, 500, 117.22151, 31.817002, 500, 117.221039, 31.816891, 500, 117.220395, 31.816352, 500,
77+
117.220166, 31.815734, 500, 117.219804, 31.815607, 500, 117.219461, 31.815122, 500, 117.21878, 31.814846, 500,
78+
117.218297, 31.815275, 500, 117.217975, 31.815172, 500, 117.217142, 31.815229, 500, 117.216753, 31.815124, 500,
79+
117.216652, 31.814308, 500, 117.215726, 31.814049, 500, 117.214769, 31.813517, 500, 117.214111, 31.813717, 500,
80+
117.213552, 31.814099, 500, 117.213024, 31.813954, 500, 117.212897, 31.813892, 500, 117.213224, 31.813681, 500,
81+
117.212788, 31.813147, 500, 117.212928, 31.813018, 500, 117.213063, 31.812956, 500,
8282
]);
8383

8484
//初始化高级分析功能管理类

website/public/static/demo/cesium/example/data/data-3Dtiles.htm

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,27 @@
1616

1717
//定义三维视图的主要类
1818
var webGlobe;
19-
19+
var thirdPartyLayer;
2020
//地图初始化函数
2121
function init() {
2222
//构造三维视图类(视图容器div的id,三维视图设置参数)
2323
webGlobe = new Cesium.WebSceneControl('GlobeView', {});
2424

2525
//构造第三方图层对象
26-
var thirdPartyLayer = new CesiumZondy.Layer.ThirdPartyLayer({
26+
thirdPartyLayer = new CesiumZondy.Layer.ThirdPartyLayer({
2727
viewer: webGlobe.viewer
2828
});
29-
//加载天地图
30-
var tdtLayer = thirdPartyLayer.appendTDTuMap({
31-
//天地图经纬度数据
32-
url: 'http://t0.tianditu.com/DataServer?T=vec_c&X={x}&Y={y}&L={l}',
33-
//开发token (请到天地图官网申请自己的开发token,自带token仅做功能验证随时可能失效)
34-
token: "9c157e9585486c02edf817d2ecbc7752",
35-
//地图类型 'vec'矢量 'img'影像 'ter'地形
36-
ptype: "img"
37-
});
29+
var osm = thirdPartyLayer.appendOsmMap();
3830

3931
//构造通用数据管理对象
4032
var commonDataManager = new CesiumZondy.Manager.CommonDataManager({
4133
viewer: webGlobe.viewer
4234
});
43-
//加载3DTile数据
35+
var path = './static/data/3DTile/Tileset/tileset.json';
36+
// 加载3DTile数据
4437
var tiles = commonDataManager.append3DTile(
4538
//3DTile数据路径
46-
'./static/data/3DTile/Tileset/tileset.json',
39+
path,
4740
//成功回调函数
4841
load
4942
);

website/public/static/demo/cesium/example/drawGraphic/drawGraphic-icon.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
});
4646

4747
//视点跳转(经度,纬度,视角高度,方位角,俯仰角,翻滚角)
48-
sceneManager.flyToEx(114.39919170144876, 30.5061826301631, {
48+
sceneManager.flyToEx(114.3936, 30.5084, {
4949
height: 559.6854173537928,
5050
heading: 0,
5151
pitch: -90,
@@ -65,7 +65,7 @@
6565

6666
//添加图片标注(经度、纬度、高程、名称、图片地址、图标宽度、图标高度)
6767
icon = labelLayer.appendBillboard(
68-
114.39920, 30.50620, 0,
68+
114.3936, 30.5084, 0,
6969
'图标',
7070
"./static/data/picture/icon.png",
7171
50, 50

website/public/static/demo/cesium/example/drawGraphic/drawGraphic-label.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
});
4646

4747
//视点跳转(经度,纬度,视角高度,方位角,俯仰角,翻滚角)
48-
sceneManager.flyToEx(114.39919170144876, 30.5061826301631, {
48+
sceneManager.flyToEx(114.3936, 30.5084, {
4949
height: 559.6854173537928,
5050
heading: 0,
5151
pitch: -90,
@@ -66,7 +66,7 @@
6666
//添加文字标注
6767
label = labelLayer.appendLabel(
6868
//经度、纬度、高程
69-
114.39920, 30.50620, 0,
69+
114.3936, 30.5084, 0,
7070
//文本内容
7171
'光谷广场', {
7272
//文字大小、字体样式

website/public/static/demo/cesium/example/drawGraphic/drawGraphic-labelicon.htm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
//开发token (请到天地图官网申请自己的开发token,自带token仅做功能验证随时可能失效)
4242
token: "9c157e9585486c02edf817d2ecbc7752",
4343
//地图类型 'vec'矢量 'img'影像 'ter'地形
44-
ptype: "img"
44+
ptype: "vec"
4545
});
4646

4747
//视点跳转(经度,纬度,视角高度,方位角,俯仰角,翻滚角)
@@ -68,7 +68,7 @@
6868
//文本内容
6969
"湖北省老年大学",
7070
//经度、纬度、高度
71-
114.3639, 30.5603, 0,
71+
114.3645, 30.5618, 0,
7272
//文字大小、字体
7373
"16pt 宋体",
7474
//文字颜色
@@ -86,7 +86,7 @@
8686
);
8787

8888
//位置(x、y、z)
89-
var position = Cesium.Cartesian3.fromDegrees(114.36517991431259, 30.56206615740468, 10);
89+
var position = Cesium.Cartesian3.fromDegrees(114.3664, 30.5631, 10);
9090
//图片对象
9191
var billboardGraphics = new Cesium.BillboardGraphics({
9292
//图片地址

0 commit comments

Comments
 (0)