0

I am trying to hide all elements in Cesium to get a plain UI. I have experimented with different properties in the JS API but wasn't able to remove all the UI elements and just keep the Earth Globe. Is there any way I can do this?

2 Answers 2

2

Instead of hiding all elements, you can use this code snippet.

const widget = new Cesium.CesiumWidget("cesiumContainer");

Sign up to request clarification or add additional context in comments.

Comments

0

One way to solve this is by using css, here is a property which I used to hide all Cesium UI elements

/* hide cesium elements */
.cesium-viewer-animationContainer, .cesium-viewer-timelineContainer, .cesium-viewer-bottom, .cesium-viewer-fullscreenContainer, .cesium-viewer-toolbar {
  display: none !important;
}

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.