Commit 2158f0da authored by Joe TS Dell's avatar Joe TS Dell
Browse files


parent 2aee5012
<html lang="en">
<meta charset="utf-8">
<script src=""></script>
<link href="" rel="stylesheet">
<div id="cesiumContainer" style="width: 100%; height:100%"></div>
// Cesium.Ion.defaultAccessToken = '<Your Access Token Here>';
var viewer = new Cesium.Viewer('cesiumContainer', {
baseLayerPicker: true,
vrButton: true,
geocoder: false,
navigationHelpButton: false,
selectionIndicator: false,
shadows: true,
timeline: true,
sceneModePicker: true,
var tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
url: "tileset/tileset.json"
Cesium.when(tileset.readyPromise).then(function (tileset) {
var heightOffset = -20.0;
var boundingSphere = tileset.boundingSphere;
var cartographic = Cesium.Cartographic.fromCartesian(;
var surface = Cesium.Cartesian3.fromRadians(cartographic.longitude, cartographic.latitude, 0.0);
var offset = Cesium.Cartesian3.fromRadians(cartographic.longitude, cartographic.latitude,
var translation = Cesium.Cartesian3.subtract(offset, surface, new Cesium.Cartesian3());
tileset.modelMatrix = Cesium.Matrix4.fromTranslation(translation);
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment