-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
592 lines (497 loc) · 20.8 KB
/
index.html
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="description" content="Cesiumを使った日野市オープンデータ可視化のサンプルです" />
<meta property="og:image" content="data/hinoshi.png" />
<meta property="og:description" content="Cesiumを使った日野市オープンデータ可視化のサンプルです" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>WHISKY MAP</title>
<link rel="alternate" href="http://hiroshima.archiving.jp/index_en.html" hreflang="en" />
<link rel="SHORTCUT ICON" href="http://shinsai.mapping.jp/favicon.ico">
<style>
@import url(Cesium/Widgets/widgets.css);
</style>
<link rel="stylesheet" type="text/css" media="all" href="./css/style.css" />
<link rel="stylesheet" type="text/css" media="all" href="./css/menubutton.css" />
<script src="js/jquery-2.1.3.min.js"></script>
<script src="js/slidein.js"></script>
<script src="Cesium/Cesium.js"></script>
<script src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=AIzaSyCc9E-ulJKRVMPyJe_V5sUVNU8kxiDIUtg"></script>
</head>
<body>
<div class="geocode">
<form action="javascript:geocode()" class="textbox" />
<input id="inputtext" class="textbox" type="text" value="" placeholder="地名で検索" />
</form>
</div>
<div id="svNotAvailable" onclick="fadeInOut(svNotAvailable,0)"></div>
<div id="blackOut">
<img class="loading" src="data/loading.gif">
</div>
<div id="cesiumContainer"></div>
<div id="buttonViewPoint" class="general-button">
<div class="button-content">
<span class="icon-font">menu</span>
</div>
</div>
<div id="buttonHelp" class="general-button" onclick="help();">
<div class="button-content">
<span class="icon-font">help</span>
</div>
</div>
<div id="buttonLayer" class="general-button">
<div class="button-content">
<span class="icon-font">paramater</span>
</div>
</div>
<div id="buttonGeo" class="general-button" onclick="flyToMyLocation();">
<div class="button-content">
<span class="icon-font">geo</span>
</div>
</div>
<div id="slideMenuViewPoint"></div>
<div id="slideMenuLayer"></div>
<div id="streetView_wrapper">
<div id="streetView"></div>
<button class="btn" onclick="fadeInOut(streetView_wrapper,0)">×</button>
</div>
<div id="osmCredit">
<a href="https://www.openstreetmap.org/copyright" target="_blank">MapData: © OpenStreetMap contributors</a>
</div>
<!-- チェックボックス -->
<div id="check_bar" style="display: block;">
<form name="check_box">
<label for="singleMalt">
<input type = "checkbox" class = "chbox" checked = "checked" id = "singleMalt">
シングルモルト
</labek>
</br>
<label for = "blendMalt">
<input type = "checkbox" class = "chbox" checked = "checked" id = "blendMalt">
ブレンデッドモルト
</label>
</br>
<label for="singleGrain">
<input type = "checkbox" class = "chbox" checked = "checked" id = "singleGrain">
シングルグレーン
</label>
</br>
<label for="blend">
<input type = "checkbox" class = "chbox" checked = "checked" id = "blend">
ブレンデッド
</label>
</br>
</form>
</div>
<!-- チェックボックスここまで -->
<script>
// ========== 初期化 ==========
//スマホで閲覧した際に,スワイプによるスクロールを禁止
var cesiumDiv = document.getElementById("cesiumContainer");
function preventScroll(event) {
event.preventDefault();
}
cesiumDiv.addEventListener("gesturestart", preventScroll, false);
cesiumDiv.addEventListener("gesturechange", preventScroll, false);
cesiumDiv.addEventListener("gestureend", preventScroll, false);
//各種DIVのオブジェクトを取得
var blackOutDiv = document.getElementById("blackOut");
var streetViewWrapper = document.getElementById("streetView_wrapper");
var svNotAvailable = document.getElementById("svNotAvailable");
//ストリートビューのエラーメッセージDIVを隠す
$(function () {
$(svNotAvailable).hide();
});
// ========== ビューア初期化 ==========
var viewer = new Cesium.Viewer('cesiumContainer', {
imageryProvider: new Cesium.ArcGisMapServerImageryProvider({
url: '//server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer',
enablePickFeatures: false
}),
navigationHelpButton: false,
navigationInstructionsInitiallyVisible: false,
geocoder: false,
//時間を使うときは以下の二行をコメントアウト
timeline: false,
animation: false,
sceneModePicker: false,
baseLayerPicker: false,
scene3DOnly: true,
//地形を強調する際は値を変更
terrainExaggeration: 1.0
});
//ダブルクリック操作を付加
viewer.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
//地形メッシュを設定
var cesiumTerrainProviderMeshes = new Cesium.CesiumTerrainProvider({
url: '//assets.agi.com/stk-terrain/world',
//海を表示しないときは以下をfalseに
requestWaterMask: true,
requestVertexNormals: true
});
viewer.terrainProvider = cesiumTerrainProviderMeshes;
//フォグとLODを設定
var fog = new Cesium.Fog();
fog.density = 0.0005;
fog.screenSpaceErrorFactor = 100.0;
// ========== 視点関連 ==========
//視点配列を作成
function viewPoints(_label, _lat, _lng, _heading, _pitch, _range) {
this.label = _label;
this.lat = _lat;
this.lng = _lng;
this.heading = _heading;
this.pitch = _pitch;
this.range = _range;
}
var viewPointsArray = [];
//視点を登録: 緯度,経度,注視点の高さ,傾き,視点の高さ
viewPointsArray[0] = new viewPoints("全体", 54.18, -4.57, 0, -90, 15719000)
viewPointsArray[1] = new viewPoints("日本", 36.665726, 136.443778, 0, -30, 1335830);
viewPointsArray[2] = new viewPoints("スコットランド", 56.65, -4.15, 0, -30, 600000);
viewPointsArray[3] = new viewPoints("アイルランド", 53.42, -8.06, 0, -45, 544260);
viewPointsArray[4] = new viewPoints("アメリカ", 35.63, -99.72, 0, -45, 4330230);
viewPointsArray[5] = new viewPoints("カナダ", 58.32, -103.07, 0, -45, 4330230);
//視点メニューを作成
var viewPointChangeMenu = document.getElementById('slideMenuViewPoint');
var dropDownList = "";
for (var i = 0; i < viewPointsArray.length; i++) {
dropDownList = dropDownList + '<li><a href="#" onclick = "changeViewPoint(' + i + ',' + '3.0);return false;">' + viewPointsArray[i].label + '</a></li>';
}
var viewPointChangeMenuHtml = '<ul class="viewpoint">' + dropDownList + '</ul>';
viewPointChangeMenu.innerHTML = viewPointChangeMenuHtml;
//視点を変更
function changeViewPoint(num, delay) {
var newLat = viewPointsArray[num].lat;
var newLng = viewPointsArray[num].lng;
var newHeading = Cesium.Math.toRadians(viewPointsArray[num].heading);
var newPitch = Cesium.Math.toRadians(viewPointsArray[num].pitch);
var newRange = viewPointsArray[num].range;
var center = Cesium.Cartesian3.fromDegrees(newLng, newLat);
var boundingSphere = new Cesium.BoundingSphere(center, newRange);
var headingPitchRange = new Cesium.HeadingPitchRange(newHeading, newPitch, newRange);
viewer.camera.flyToBoundingSphere(boundingSphere, {
duration: delay,
offset: headingPitchRange,
easingFunction: Cesium.EasingFunction.CUBIC_IN_OUT
});
}
//現在地へ移動
function flyToMyLocation() {
function fly(position) {
viewer.camera.flyTo({
destination: Cesium.Cartesian3.fromDegrees(position.coords.longitude, position.coords.latitude, 750.0),
easingFunction: Cesium.EasingFunction.CUBIC_IN_OUT
});
}
navigator.geolocation.getCurrentPosition(fly);
}
// ========== 以降,起動シークエンス ==========
//クレジットを隠す
$(function () {
$('.cesium-widget-credits').css('display', 'none');
});
fadeInOut(blackOutDiv, 0);
setTimeout('groundZero()', 1000);
function groundZero() {
//視点を移動:視点番号,デュレーション
changeViewPoint(0, 3);
//オーバレイを追加
openStreetMapLayer();
//setTimeout('landing()', 4000);
setTimeout('loadKml()', 4000);
}
/*
function landing() {
//視点を移動:視点番号,デュレーション
changeViewPoint(0, 3);
//ローディングGIFを表示
setTimeout('fadeInOut(blackOutDiv,1)', 3000);
setTimeout('loadKml()', 3000);
}
*/
// ========== KMLをロード ==========
//KML配列を作成
function kmlData(_label, _url) {
this.label = _label;
this.url = _url;
}
var kmlDataArray = [];
//KMLデータを登録.kmzでもOK
//singleMaltJap
kmlDataArray[0] = new kmlData("yoichi", 'data/kml/yoichi.kml');
kmlDataArray[1] = new kmlData("miyagikyo", 'data/kml/miyagikyo.kml');
kmlDataArray[2] = new kmlData("yamazaki", 'data/kml/yamazaki.kml');
kmlDataArray[3] = new kmlData("hakushu", 'data/kml/hakushu.kml');
kmlDataArray[4] = new kmlData("fuji-sanroku", 'data/kml/fuji-sanroku.kml');
kmlDataArray[5] = new kmlData("akashi", 'data/kml/akashi.kml');
kmlDataArray[6] = new kmlData("ichiro's-malt", 'data/kml/ichiro-s-malt.kml');
//blendMaltJap
kmlDataArray[7] = new kmlData("taketsuru", 'data/kml/taketsuru.kml');
kmlDataArray[8] = new kmlData("pure-malt", 'data/kml/pure-malt.kml');
kmlDataArray[9] = new kmlData("ichiro's-malt2", 'data/kml/ichiro-s-malt2.kml');
//singleGrainJap
kmlDataArray[10] = new kmlData("komagatake", 'data/kml/komagatake.kml');
kmlDataArray[11] = new kmlData("chita", 'data/kml/chita.kml');
kmlDataArray[12] = new kmlData("coffey-grain", 'data/kml/coffey-grain.kml');
kmlDataArray[13] = new kmlData("fuji-singleGrain", 'data/kml/fuji-singleGrain.kml');
//blendJap
kmlDataArray[14] = new kmlData("hibiki", 'data/kml/hibiki.kml');
kmlDataArray[15] = new kmlData("superNikka", 'data/kml/superNikka.kml');
kmlDataArray[16] = new kmlData("bostonClub", 'data/kml/bostonClub.kml');
kmlDataArray[17] = new kmlData("robertBrown", 'data/kml/robertBrown.kml');
//singleMaltScotch
kmlDataArray[18] = new kmlData("benromach", 'data/kml/benromach.kml');
kmlDataArray[19] = new kmlData("glenElgin", 'data/kml/glenElgin.kml');
kmlDataArray[20] = new kmlData("glenLossie", 'data/kml/glenLossie.kml');
kmlDataArray[21] = new kmlData("linkwood", 'data/kml/linkwood.kml');
kmlDataArray[22] = new kmlData("mannochmore", 'data/kml/mannochmore.kml');
kmlDataArray[23] = new kmlData("benriach", 'data/kml/benriach.kml');
kmlDataArray[24] = new kmlData("longmorn", 'data/kml/longmorn.kml');
kmlDataArray[25] = new kmlData("glenMoray", 'data/kml/glenMoray.kml');
kmlDataArray[26] = new kmlData("strathisla", 'data/kml/strathisla.kml');
kmlDataArray[27] = new kmlData("strathmill", 'data/kml/strathmill.kml');
kmlDataArray[28] = new kmlData("glenrothes", 'data/kml/glenrothes.kml');
kmlDataArray[29] = new kmlData("inchgower", 'data/kml/inchgower.kml');
kmlDataArray[30] = new kmlData("glenSpey", 'data/kml/glenSpey.kml');
kmlDataArray[31] = new kmlData("speyburn", 'data/kml/speyburn.kml');
kmlDataArray[32] = new kmlData("glenGrant", 'data/kml/glenGrant.kml');
kmlDataArray[33] = new kmlData("balvenie", 'data/kml/balvenie.kml');
kmlDataArray[34] = new kmlData("glenfiddich", 'data/kml/glenfiddich.kml');
kmlDataArray[35] = new kmlData("theSingletonDufftown", 'data/kml/theSingletonDufftown.kml');
kmlDataArray[36] = new kmlData("mortlach", 'data/kml/mortlach.kml');
kmlDataArray[37] = new kmlData("pittyvaich", 'data/kml/pittyvaich.kml');
kmlDataArray[38] = new kmlData("tomintoul", 'data/kml/tomintoul.kml');
kmlDataArray[39] = new kmlData("theGlenlivet", 'data/kml/theGlenlivet.kml');
kmlDataArray[40] = new kmlData("aberlour", 'data/kml/aberlour.kml');
kmlDataArray[41] = new kmlData("benrinnes", 'data/kml/benrinnes.kml');
kmlDataArray[42] = new kmlData("cragganmore", 'data/kml/cragganmore.kml');
kmlDataArray[43] = new kmlData("dailuaine", 'data/kml/dailuaine.kml');
//チェックボックス試行2
/*
var dataSourceMenu = document.getElementById('check_bar');
var kmlSourceList = "";
for(var i = 0; i < kmlDataArray.length; i++){
kmlSourceList = kmlSourceList + '<label for = "' + kmlDataArray[i].label + '"><input type = "checkbox" class = "chbox" id = "' + kmlDataArray[i].label + '">' + kmlDataArray[i].label + '</label><br />';
}
var dataSourceListHtml = '<form name = "check_box"><div class = "c_check close_btn">×</div><p>ウイスキーの種類</p>' + kmlSourceList + '<p>ウイスキーの種類</p>' + '</form>';
dataSourceMenu.innerHTML = dataSourceListHtml;
var dataSources = viewer.dataSources._dataSources;
$("#check_bar: checkbox").click(function(){
var elements = document.getElementsByClassName("chbox");
for(var i = 0; l = elements.length; l > i; i++){
if(elements[i].checked){
dataSources[i].show = true;
}else{
dataSources[i].show = false;
}
}
})
*/
//チェックボックス
var dataSources = viewer.dataSources._dataSources;
$("#check_bar :checkbox").click(function () {
console.log(dataSources);
var elements = document.getElementsByClassName("chbox");
for (var i = 0, l = elements.length; l > i; i++) {
if (elements[i].checked) {
dataSources[i].show = true;
} else {
dataSources[i].show = false;
}
}
});
//時間情報入りのKML
//kmlDataArray[2] = new kmlData("タイムスパン", 'data/kml/timeSpans.kml');
function loadKml() {
var i = 0;
var load = setInterval(function () {
var kmlDataSource = new Cesium.KmlDataSource();
var promise = kmlDataSource.load(kmlDataArray[i].url);
promise.then(function (dataSource) {
viewer.dataSources.add(dataSource);
//ビルボードの高さを地形に合わせる
billboardsIdsLength = (kmlDataSource.entities.values).length;
var i = 0;
while (i < billboardsIdsLength) {
var entity = kmlDataSource.entities.values[i];
if (entity.billboard != null) {
//CLAMP_TO_GROUND,NONE,RELATIVE_TO_GROUNDのいずれかを選択
entity.billboard.heightReference = Cesium.HeightReference.RELATIVE_TO_GROUND;
}
i++;
}
}).otherwise(function (error) {
alert('KMLデータが読み込めません');
});
i++;
if (i == kmlDataArray.length) {
clearInterval(load);
//クリック時にストビューを表示する処理
setClickEvent();
//ローディングGIFを非表示に
setTimeout('fadeInOut(blackOutDiv,0)', 1000);
}
}, 200);
}
// ========== 地図オーバレイを作成 ==========
// オーバレイ配列
var overlayDataArray = [];
var openStreetMap = [];
var layers = viewer.scene.imageryLayers;
function openStreetMapLayer() {
openStreetMap = layers.addImageryProvider(new Cesium.createOpenStreetMapImageryProvider());
//OSMの明度を下げる
openStreetMap.brightness = 0.7;
//OSMの不透明度をデフォルト0に
openStreetMap.alpha = 0;
//オーバーレイ配列を作成
function overlayData(_label, _value, _overlayObj, _id) {
this.label = _label;
this.value = _value;
this.overlayObj = _overlayObj;
this.id = _id;
}
overlayDataArray[0] = new overlayData("現在の地図", 0, openStreetMap, "range01");
//オーバレイメニューを作成
var overlayList = "";
for (var i = 0; i < overlayDataArray.length; i++) {
overlayList = overlayList + '<p class="slideLabel">' + overlayDataArray[i].label + '</p><input id="' + overlayDataArray[i].id + '" type="range" min="0" max="33" value="' + overlayDataArray[i].value * 0.33 + '" step="1" oninput="transParent(' + i +
');"/>';
}
var overlayListMenu = document.getElementById('slideMenuLayer');
overlayListMenu.innerHTML = overlayList;
}
//オーバレイの透明度を変更
function transParent(layer) {
var id = overlayDataArray[layer].id;
var overlay = overlayDataArray[layer].overlayObj;
var slider = document.getElementById(id);
if (slider.value == 0) {
overlay.show = false;
} else {
overlay.show = true;
overlay.alpha = slider.value * 0.03;
}
}
//ジオコード
function geocode() {
var geocoder = new google.maps.Geocoder();
var input = document.getElementById('inputtext').value;
geocoder.geocode({
address: input
},
function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var viewportObj = results[0].geometry.viewport;
var southNorth = viewportObj[Object.keys(viewportObj)[0]];
var westEast = viewportObj[Object.keys(viewportObj)[1]];
var south = southNorth[Object.keys(southNorth)[0]];
var north = southNorth[Object.keys(southNorth)[1]];
var west = westEast[Object.keys(westEast)[0]];
var east = westEast[Object.keys(westEast)[1]];
var rectangle = Cesium.Rectangle.fromDegrees(west, south, east, north);
viewer.camera.flyTo({
destination: rectangle,
easingFunction: Cesium.EasingFunction.CUBIC_IN_OUT
});
} else {
alert('見つかりません');
}
}
);
}
// ========== ダブルクリックでストビューを表示 ==========
//移動前のカメラ位置格納オブジェクト
var cameraPosWC;
var cameraOrientation;
function setClickEvent() {
var handler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas);
handler.setInputAction(function (click) {
var pickedObject = viewer.scene.pick(click.position);
if (Cesium.defined(pickedObject) && (pickedObject != "")) {
var position = pickedObject.primitive._position;
//ダブルクリック時のカメラ位置を取得
cameraPosWC = [viewer.camera.positionWC.x, viewer.camera.positionWC.y, viewer.camera.positionWC.z];
cameraOrientation = [viewer.camera.heading, viewer.camera.pitch, viewer.camera.roll];
var cart = Cesium.Ellipsoid.WGS84.cartesianToCartographic(position);
var latlng = new google.maps.LatLng(Cesium.Math.toDegrees(cart.latitude), Cesium.Math.toDegrees(cart.longitude));
var sv = new google.maps.StreetViewService();
var svp = void 0;
sv.getPanoramaByLocation(latlng, 100, function (data, status) {
//ストリートビュー未対応エリアの場合エラーメッセージを表示
if (status != google.maps.StreetViewStatus.OK) {
svNotAvailable.innerHTML = '<p class="errorMessage">この場所のストリートビューは利用できません</p>';
fadeInOut(svNotAvailable, 1);
setTimeout('fadeInOut(svNotAvailable,0)', 1500);
} else {
streetViewWrapper.style.display = "block";
fadeInOut(streetViewWrapper, 1);
if (svp === void 0) {
svp = new google.maps.StreetViewPanorama(
document.getElementById("streetView"), {
position: latlng
});
} else {
svp.setPano(data.location.pano);
}
}
//選択したPlacemarkの場所にズーム
var newHeading = Cesium.Math.toRadians(0);
var newPitch = Cesium.Math.toRadians(-45);
var newRange = 500;
var center = position;
var boundingSphere = new Cesium.BoundingSphere(center, 1000);
var headingPitchRange = new Cesium.HeadingPitchRange(newHeading, newPitch, newRange);
viewer.camera.flyToBoundingSphere(boundingSphere, {
duration: 1,
offset: headingPitchRange,
easingFunction: Cesium.EasingFunction.CUBIC_IN_OUT
});
});
}
}, Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
}
// ========== ヘルプへリンク ==========
function help() {
window.open('https://github.com/wtnv-lab/cesiumGitHubPages');
}
// ========== 各種DIVのフェードイン・アウト ==========
function fadeInOut(layer, param) {
if (param == 0) {
$(function () {
$(layer).fadeOut("slow");
});
//ストリートビューDIVをフェードアウトした際には元の視点に復帰
if (layer == streetView_wrapper) {
viewer.camera.flyTo({
destination: new Cesium.Cartesian3(cameraPosWC[0], cameraPosWC[1], cameraPosWC[2]),
orientation: {
heading: cameraOrientation[0],
pitch: cameraOrientation[1],
roll: 0.0,
duration: 1.5,
easingFunction: Cesium.EasingFunction.CUBIC_IN_OUT
}
});
}
//オブジェクト選択と視点拘束を解除
viewer.trackedEntity = undefined;
} else {
$(function () {
$(layer).fadeIn("slow");
});
}
}
</script>
<!--jQueryの追加-->
<!--
<script type = "text/javascript"
src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js">
</script>
-->
</body>
</html>