_在线地形服务">
赞
踩
有哪些在线地形可供调用?请看下文!
Cesium可以调用SuperMap在线地形服务,服务地址为:https://www.supermapol.com/realspace/services/3D-stk_terrain/rest/realspace/datas/info/data/path,
需要使用CesiumTerrainProvider。
在线代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<link href="../../Cesium/Widgets/widgets.css" rel="stylesheet">
<script type="text/javascript" src="../../Cesium/Cesium.js"></script>
<script src="../config.js"></script>
<title>building</title>
</head>
<body style="margin: 0px;width:100%;height:100%;">
<div id="cesiumContainer" style="width:100%;height:100%;position:absolute;"></div>
</body>
<script>
//created by onegiser at 2021-10-25
const imageryProvider = new Cesium.UrlTemplateImageryProvider({
url: 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',
subdomains: ['0', '1', '2', '3'],
tilingScheme: new Cesium.WebMercatorTilingScheme()
});
const terrainProvider = new Cesium.CesiumTerrainProvider({
url: 'https://data.marsgis.cn/terrain'
});
const viewer = new Cesium.Viewer('cesiumContainer', {
imageryProvider,
terrainProvider
});
const x = 103.8768888, y = 36.0348739
viewer.camera.flyTo({
destination: Cesium.Cartesian3.fromDegrees(x, y, 3000),
});
</script>
</html>
火星科技:http://data.mars3d.cn/terrain
恒歌科技:http://www.freexgis.com/web-data/terrain
CesiumLab:https://lab.earthsdk.com/terrain/577fd5b0ac1f11e99dbd8fd044883638
CesiumLab2:https://lab.earthsdk.com/terrain/42752d50ac1f11e99dbd8fd044883638
需要使用CesiumTerrainProvider。
在线代码
ESRI地址:https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer
需要使用ArcGISTiledElevationTerrainProvider。
在线代码
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。