ol-cesium icon indicating copy to clipboard operation
ol-cesium copied to clipboard

What is possible and what is not?

Open strech345 opened this issue 8 years ago • 4 comments

Hello, for me it is not really clear what functionalities i will get from ol3 and cesium.

Does i have the full features of Cesium? for example ...

  • Loading different elevation models
  • new 3D vector tiles (http://cesiumjs.org/2015/08/10/introducing-3d-tiles/)
  • 3d models in gltf
  • loading primitive
  • Plugins (for example cesium-navigaton https://github.com/alberto-acevedo/cesium-navigation)
  • Interactions

Does it have the full features of OL3 ? for example ...

  • Heatmaps
  • Clustering of Marker
  • loading Vector Tiles
  • loading KML, Json,...
  • Interactions

Would be great to get a comsumption about what is possible and what's not.

strech345 avatar Jan 26 '17 18:01 strech345

A lot of things work. Now, I don't know about most of these, but I do know about a few of them:

  • Interactions do not work; you have to use Cesium calls for that
  • KML works, and clustering of markers, though there are some glitches (https://github.com/openlayers/ol3-cesium/issues/345, https://github.com/openlayers/ol3-cesium/issues/346)

jmgomezpoveda avatar Jan 26 '17 18:01 jmgomezpoveda

You create and pass the OL map so you have full control on it. The Cesium globe is created by OL3-Cesium but you get notably the reference to the Cesium.Scene, you can then use the Cesium API.

For missing features it is possible to:

  • improve OL3-Cesium by contributing patches;
  • use hooks to implement own logics (eg synchronize a raster layer in OL3 to a vector layer in Cesium / gltf ...)

gberaudo avatar Jan 30 '17 11:01 gberaudo

@gberaudo for me it is important to have the reference on cesium viewer also and to control it like i want. It would be nice to create boath instances (ol3 and cesium) and to use this framework to connect boath with each other. But i think this will not be the case.

@jmgomezpoveda So. its possible with cesium feature request to request also ol3 features?

strech345 avatar Feb 03 '17 09:02 strech345

@strech345 I am not sure I understand your question. With ol3-cesium you use the same API as ol3, and ol3-cesium internally translates the API requests into the Cesium API. You create the map once and you are able to switch between the ol3 and Cesium views at will.

In most cases you only need to use the ol3 API for this. In some cases, though, you may need to interact directly with the Cesium object exposed by ol3-cesium.

jmgomezpoveda avatar Feb 03 '17 11:02 jmgomezpoveda