mirror of
https://github.com/jiawanlong/Cesium-Examples.git
synced 2025-07-04 15:17:36 +00:00
35 lines
1.1 KiB
HTML
35 lines
1.1 KiB
HTML
<!--********************************************************************
|
|
* by jiawanlong
|
|
*********************************************************************-->
|
|
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="stylesheet" href="./../../libs/cesium/Cesium1.98/Widgets/widgets.css" />
|
|
<script type="text/javascript" src="./../../libs/cesium/Cesium1.98/Cesium.js"></script>
|
|
<script src="./turf.min.js"></script>
|
|
<script src="./latlng.js"></script>
|
|
</head>
|
|
|
|
<body style="overflow: hidden;margin: 0;">
|
|
<div id="map" style="margin: 0 auto; width: 100%; height: 100vh"></div>
|
|
<script type="text/javascript">
|
|
|
|
let viewer;
|
|
document.onload = function () {
|
|
initMap();
|
|
}()
|
|
|
|
function initMap() {
|
|
Cesium.Ion.defaultAccessToken =
|
|
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIyMjBhMzcxMC0wNjBiLTRmYjItYjY1MC0wMzAwMzMyMGUyMmEiLCJpZCI6MzAzNzc3LCJpYXQiOjE3NDc2Mzk0NTV9.E_90aKtVdzRGlU2z48VwJ4mWvl-uuDkfQBCOO6zbzn4";
|
|
viewer = new Cesium.Viewer("map", {});
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html> |