FAQ Database Discussion Community


CesiumJS memory management issues

javascript,json,geojson,cesium
I am making a 3d model viwer in cesiumjs. The geojson is requested from the url and it works fine for small models. Incase of complex json multipolygon files and json url request data exceeds 16mb cesium takes so long in parsing and then rendering and if I make a...

Cesium - Using scaleByDistance for a billboard created through CZML

javascript,cesium
I am trying to show an icon as a billboard and scale it by distance. I can manage fine, but as soon as I load the billboard through CZML instead of directly in JS, I cannot get the billboard the resize. In my JS file I have: var czmlDataSource =...

Cesium Resampling

zooming,resampling,cesium
I know that Cesium offers several different interpolation methods, including linear (or bilinear in 2D), Hermite, and Lagrange. One can use these methods to resample sets of points and/or create curves that approximate sampled points, etc. However, the question I have is what method does Cesium use internally when it...

Add satellite track to WebGLEarth map (with e.g. Leafletjs or Cesiumjs)

javascript,leaflet,cesium
I have made a map with a lot of clickable markers (with popups) in WebGLEarth (http://www.webglearth.org/api) and I would like to have three satellite tracks around my globe. It is important that you clearly see that it is a satellite hovering somewhere (where doesn't really matter and it doesn't have...

Get ground altitude CesiumJS

cesium
Is there any way to get ground altitude for a given position in CesiumJS? I tried scene.globe.getHeight func but it returns undefined. //marker is a point on map. var marker = {latitude: 61.08658108795938, longitude: -99.64592791446208}; var height = scene.globe.getHeight( new Cesium.Cartographic(marker.longitude, marker.latitude ) );//undefined Thank you....

Serve private mapping from S3 tiles by proxying data or signing urls through heroku?

heroku,amazon-s3,mapping,leaflet,cesium
I want to store mapping tiles in a private S3 bucket. Each tile has its own URL and each set of tiles could potentially have GBs of tiles. I then want to visualise these tiles through a front end mapping client (e.g leaflet). This client pulls tiles as it needs...

How to set width to SimplePolylineGeometry primitive in CesiumJS

cesium
I have this code, which adds polyline primitive to scene. function createPolyline(startPosition, endPosition) { Cesium.SimplePolylineGeometry({ positions : [startPosition, endPosition] }); var geometry = Cesium.SimplePolylineGeometry.createGeometry(polyline); return scene.primitives.add(new Cesium.Primitive({ geometryInstances : new Cesium.GeometryInstance({ geometry : geometry, attributes : { color : Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.SPRINGGREEN) } }), appearance : new Cesium.PerInstanceColorAppearance() })); } How...

Asynchronous Entity Rendering in Cesium 1.7+

cesium
Good Day all, I've been working with Cesium for a bit now and I started when Primitive Collections were the thing to use. I had click and drag primitive rendering working, but now I want to upgrade Cesium and move on to entities. I moved over the code, refactored, and...

Proper try of Cesium creation, error catching, cross browser compatibility and developer errors

javascript,mobile,error-handling,cross-browser,cesium
I am currently working on a GIS project hat has to be cross browser, mobile, multiplatform and omnipotent. Cesium does not work without WebGL, on some older browser and other minor exceptions, but i have to catch them all. I decided to swich to OpenLayers when Cesium can't be an...

Is there a generic ScreenSpaceEvent that captures all events?

cesium
To react to specific space handlers I typically do this - var fooHandler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas); fooHandler.setInputAction(function(movement){ // do stuff }, Cesium.ScreenSpaceEventType.WHEEL); This function would be limited to WHEEL inputs. I have a couple of things that I need to do every time the camera changes position or height. I...

How to Set the Default View Location (Cesium 1.6)

javascript,cesium
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 setting the...