<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DisplayAScene</title>
<style>
html,
body,
#SceneDiv {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.20/esri/themes/light/main.css">
<script src="https://js.arcgis.com/4.20/"></script>
<script>
require([
"esri/config",
"esri/Map",
"esri/views/SceneView"
], function(esriConfig, Map, SceneView) {
esriConfig.apiKey = "YOUR-KEY";
const map = new Map({
basemap: "arcgis-topographic",
ground: "world-elevation",
});
const view = new SceneView({
container: "SceneDiv",
map: map,
camera: {
position: {
x: -118.808,
y: 33.961,
z: 2000
},
tilt: 75
}
});
});
</script>
</head>
<body>
<div id="SceneDiv"></div>
</body>
</html>
WEBGIS加载三维地图
最新推荐文章于 2024-05-07 16:31:57 发布