使用时需要引用Cesium、ol、olcesium的相应js及css
以下代码为使用olcesium加载二维影像地图及3DTiles示例
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>集恩ol-cesium demo</title>
<link href="/dist/Cesium/Widgets/widgets.css" rel="stylesheet">
<link href="/dist/ol.css" rel="stylesheet">
<link href="/dist/olcs.css" rel="stylesheet">
<script src="/dist/Cesium/Cesium.js"></script>
<script src="/dist/ol.js"></script>
<script src="/dist/olcesium.js"></script>
<style>
html, body, #cesiumContainer {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;