openlayers / ol-cesium

OpenLayers - Cesium integration
http://openlayers.org/ol-cesium/
BSD 2-Clause "Simplified" License
1.01k stars 329 forks source link

What is possible and what is not? #435

Open strech345 opened 7 years ago

strech345 commented 7 years ago

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 ...

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

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

jmgomezpoveda commented 7 years ago

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

gberaudo commented 7 years ago

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:

strech345 commented 7 years ago

@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?

jmgomezpoveda commented 7 years ago

@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.