<!DOCTYPE html>
<html lang="en">
<head>
<!-- Use correct character set. -->
<meta charset="utf-8">
<!-- Tell IE to use the latest, best version. -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Make the application on mobile take up the full browser screen and disable user scaling. -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>Compass Cesium POC</title>
<script src="../Build/Cesium/Cesium.js"></script>
<script src="../node_modules/requirejs/require.js"></script>
<!-- IMPORTANT: because the cesium navigation viewer mixin depends on Cesium be sure to load it after Cesium -->
<script src="../Source/viewerCesiumNavigationMixin.js"></script>
<script src="../Source/SpirographPositionProperty.js"></script>
<style>
@import url(../Build/Cesium/Widgets/widgets.css);
html, body, #cesiumContainer {
width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden;
}
</style>
</head>
<body>
<div id="cesiumContainer"></div>
<script>
var viewer = new Cesium.Viewer('cesiumContainer');
// extend our view by the cesium navigaton mixin
viewer.extend(Cesium.viewerCesiumNavigationMixin, {});
var cesiumNavigation = viewer.cesiumNavigation;
var options = {};
options.defaultResetView = Cesium.Rectangle.fromDegrees(71, 3, 90, 14);
// Only the compass will show on the map
alert("test");
options.enableCompass = true;
alert("compass");
options.enableZoomControls = false;
options.enableDistanceLegend = false;
viewer.extend(Cesium.viewerCesiumNavigationMixin, options);
</script>
</body>
</html>