ol-cesium
Version:
OpenLayers Cesium integration library
23 lines (21 loc) • 1.34 kB
HTML
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="index, all" />
<title>olcesium ground vectors example</title>
<link rel="stylesheet" href="../node_modules/ol/ol.css" type="text/css"></link>
<style>.cesium-credit-textContainer { display: inline-block; font-size: 50%; line-height: 100%;}</style>
</head>
<body>
<div id="map2d" style="width:600px;height:400px;float:left;"></div>
<div id="map3d" style="width:600px;height:400px;float:left;position:relative;"></div>
<div><input id="enable" type="button" value="Enable/disable Cesium" /></div>
<div><input type="button" value="Toggle clampToGround mode"
onclick="javascript:toggleClampToGround(); ol3d.getAutoRenderLoop().restartRenderLoop()" /></div>
<div>Vectors are synchronized from the OpenLayers map to the Cesium scene.
<br/>3D positioning and some styling is supported, with optional clamping to the ground.</div>
<script src="inject_ol_cesium.js"></script>
<script type="text/javascript" src="commons.1ba132e07f9f7066a8c6.js"></script><script type="text/javascript" src="groundvectors.4a8941318d1607ccdd61.js"></script></body>
</html>