OpenLayer3 and Cesium with dump1090?

Was thinking about the possibility of using Cesium for 3D rendering to complement the 2D rendering via OpenLayers3. Well, I ran across OL3-Cesium - Create your map using OpenLayers 3, and visualize it on a globe with Cesium.

An OpenLayers map can be switched to a 3d globe view by running the code below after the map has been created:


var ol3d = new olcs.OLCesium({map: map}); // map is the ol.Map instance
ol3d.setEnabled(true);
The above will use the WGS84 ellipsoid all around the globe. To use terrain, simply add a terrain provider using the Cesium API (can be your own, but in the snippet below it's one that ships with Cesium):

var ol3d = new olcs.OLCesium({map: map}); // map is the ol.Map instance
var scene = ol3d.getCesiumScene();
scene.terrainProvider = new Cesium.CesiumTerrainProvider({
  url: 'https://assets.agi.com/stk-terrain/world'
});
ol3d.setEnabled(true);

Which file is this add too?

It would be added to script.js, right after the openlayers map is defined around line 450. I’m attempting to integrate ol3-cesium now, but having an issue with the layerswitcher in gmap.html.

OK. I tried to make this WAY more complicated, but I’ve got Cesuim up and running. More work needs to be done, like dealing with the altitude for the aircraft. Just demonstrating Cesium will work. I don’t know how practical this is, but it sure does look neat.

https://s3-us-west-2.amazonaws.com/pawlowski-01312016/dump1090-mutability-with-cesium.png