ol-cesium
Version:
OpenLayers Cesium integration library
1 lines • 1.36 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 vectors example</title><link rel="stylesheet" href="../node_modules/ol/ol.css"><style>.cesium-credit-textContainer { display: inline-block; font-size: 50%; line-height: 100%;}</style><script defer="defer" src="commons.732f075a07b3917e2988.js"></script><script defer="defer" src="icon-position.b15fb6e7555d953f6617.js"></script></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 depth test" onclick="scene.globe.depthTestAgainstTerrain = !scene.globe.depthTestAgainstTerrain; ol3d.getAutoRenderLoop().restartRenderLoop()"/></div><div><input type="button" value="Toggle clampToGround mode" onclick="toggleClampToGround(); ol3d.getAutoRenderLoop().restartRenderLoop()"/></div><div>Icon on the right has default placement: it is centered on the point position.<br/>The icon on the left has its anchor on the bottom center</div><script src="inject_ol_cesium.js"></script></body></html>