Questions tagged [cesiumjs]

CesiumJS is an open source JavaScript library for 3D geospatial visualization. Consider also adding the JavaScript tag. A question tagged CesiumJS should be related to CesiumJS, so CesiumJS should be used by the code in question, and at least CesiumJS usage-related elements must be in the question.

About

CesiumJS is an open source JavaScript library for creating 3D globes and maps. Developers across industries, from aerospace to smart cities to drones, use CesiumJS to create interactive web apps for sharing dynamic geospatial data.

Features

Built on open formats, CesiumJS is designed for robust interoperability and scaling for massive datasets.

  • Stream in 3D Tiles and other standard formats from Cesium ion or another source
  • Visualize and analyze on a high-precision WGS84 globe
  • Share with users on desktop or mobile

Getting started

Cesium.com has an extensive Quick start guide to get your environment setup for CesiumJS.

Examples

Cesium.com has a live example site called sandcastle with multiple examples to show-case its capabilities.

Related Tags

836 questions
16
votes
2 answers

Cesium how to 'drape' a polygon or line onto terrain surface

So, I'm using cesium and I want to add a polygon or line to represent a property boundary on a terrain surface. My polygon works fine on the flat/Ellipsoid surface, unfortunately however the polygon doesn't automagically drape over the surface when…
danwild
  • 1,886
  • 1
  • 26
  • 31
15
votes
1 answer

Cesium: View from the front of the tracked entity

I need to achieve a front view for the tracking entity, which will change according to the entities movements. When I assign a value to viewer.trackedEntity property, the camera assumes a certain position. Is it possible to change this position so…
ollazarev
  • 1,076
  • 8
  • 26
15
votes
2 answers

Cesium in Drupal: Load Viewer on a Page in Drupal

IMPORTANT NOTE When instantiating the Cesium Object in a normal project, it does not have any properties that are prefixed with underscores (_dataSourceCollection, _dataSourceDisplay, etc). When instantiated in Drupal, however, about 40-45…
Emmanuel Buckshi
  • 558
  • 1
  • 7
  • 23
13
votes
1 answer

Streaming CZML into Cesium using HTML5 EventSource

I'm currently looking into using Cesium as a way of visualising data for a personal project, and real-time updates would be a great thing to be able to do. Reading the wiki, I found this section which outlines how dynamically updating objects in…
user2583109
  • 185
  • 4
  • 12
11
votes
2 answers

How to Set the Default View Location (Cesium 1.6)

I want to set the default view/home location for a cesium app. I don't just want to flyTo the location once; I want the location set as the default/home - so that it can be used elsewhere in the app - e.g. in the HomeButton Widget. I've tried…
danwild
  • 1,886
  • 1
  • 26
  • 31
11
votes
2 answers

How to set Cesium JS map center (coordinates: latitude & longitude)

I would like to initialize cesium so that the map is centered on some specific coordinates instead of the default ones. I have the following initialization code: var map = new Cesium.CesiumWidget('map-js'); map.centralBody.terrainProvider = new…
nemesisdesign
  • 8,159
  • 12
  • 58
  • 97
10
votes
1 answer

How to display a polyline collection in Cesium?

I must be doing something simply wrong because I am not sure after reading the documents how to show a polyline collection in Cesium. I am not explicitly seeing any method or tutorial in the documentation here about displaying the polyline…
ThePartyTurtle
  • 2,276
  • 2
  • 18
  • 32
10
votes
1 answer

Threejs and 3D Tiles (from Cesium)

I am currently in charge of exploring options to display large 3D geological models on a web page. They are built by the geologists with GeoModeller and exported using Cinema 4D to .DAE, or .OBJ. Once displayed, the model should be interactive and…
ashdeb
  • 171
  • 1
  • 10
10
votes
1 answer

What is difference between Entity and Primitive in Cesiumjs?

What is difference between Entity and Primitive in Cesium.js? In my application I am using primitives and this (choose Drill Down Picking) uses Entities. I want to implement same highlighting functionality but with Primitives. How can I achieve…
meen
  • 2,287
  • 3
  • 23
  • 42
10
votes
1 answer

Display of KML in Cesium

I want to display the KML from Cesium. the source kml can read I was looking for from the following Github. https://github.com/AnalyticalGraphicsInc/cesium/tree/kml build and run Cesium. However, I do not know. How may be specified as in the…
ishizaki
  • 103
  • 1
  • 4
9
votes
1 answer

How to rotate left or right in Cesium Map based on view bounds

Want to mimic the left-right arrow keys in CesiumJS app similar to Google Earth navigation. Press right or left arrow keys should rotate the globe ~5% of the view bounds to the right or left, respectively. If zoomed out then it rotates a large…
CodeMonkey
  • 22,825
  • 4
  • 35
  • 75
9
votes
1 answer

What is the lightest possible method of using Cesium?

I'm interested in using Cesium to build a 3D Earth with custom tiles, but as per the "get started" instructions here, it seems as though you have to download a massive 30mb directory and include the whole thing in your project to have it run…
j_d
  • 2,818
  • 9
  • 50
  • 91
9
votes
2 answers

Cesium JS Save Camera Position

I'm thinking of saving a camera position (specifically rotation) so changing back and forth between 2D and 3D will always go back to my last viewed position in 3D. What is the best way to do this? I would also like to save it as a cookie or in local…
bcm
  • 5,470
  • 10
  • 59
  • 92
8
votes
1 answer

I want to get latitude longitude height of my mouse at the bottom of the cesium screen

For now using below javascript, I am getting the lat long values over the mouse pointer. How can I make it appear at the bottom of the cesium screen like it is in google earth. viewer.entities.add({ id: 'mou', label: { // position :…
Ashutosh Mishra
  • 103
  • 1
  • 6
8
votes
4 answers

npm run build error for html-webpack-plugin

Hey so I am new to webpack and I am trying to use it for a project using the Cesium js api. I am following their tutorial online to the T but for some reason when I run the command "npm run build" I get the following error without it executing…
Sai Peri
  • 339
  • 1
  • 3
  • 17
1
2 3
55 56