Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use OpenLayers interactions in Cesium #467

Open
Oryon86 opened this issue Jun 6, 2017 · 5 comments
Open

How to use OpenLayers interactions in Cesium #467

Oryon86 opened this issue Jun 6, 2017 · 5 comments

Comments

@Oryon86
Copy link

Oryon86 commented Jun 6, 2017

I've created a 3D view like this :

var ol3d = new olcs.OLCesium({map: map});
ol3d.setEnabled(true);

"map" has some interactions before creating "ol3D", but these interactions not usable on 3D map, only "pan" on world map is active.

Is it possible to have interactions on 3D Map and how do i do that?

Thank you for your answer

@gberaudo
Copy link
Member

gberaudo commented Jun 7, 2017

No, there is no support for interactions in OL-Cesium.

Some support would be great though, for example here: http://openlayers.org/ol-cesium/examples/selection.html where clicking in 3D could also select the feature.

@Oryon86
Copy link
Author

Oryon86 commented Jun 7, 2017

Thank you for your response.

@KillDragon
Copy link

@gberaudo I set the camera,but the camera doesn't work,can you tell me why,thanks

@gberaudo
Copy link
Member

gberaudo commented Jul 4, 2017

Do you have details?

@KillDragon
Copy link

KillDragon commented Jul 4, 2017

@gberaudo Thanks for your reply, you can see the issue #473 :
var camera=ol3d.getCesiumScene().camera;
camera.setView({
destination:Cesium.Cartesian3.formDegrees(89,38,500),
orientation:{
heading:1.0,
pitch:0,
roll:0.5
}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants