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

Camera.flyTo rectangle incorrect in 2D #3688

Closed
hpinkos opened this issue Mar 8, 2016 · 2 comments
Closed

Camera.flyTo rectangle incorrect in 2D #3688

hpinkos opened this issue Mar 8, 2016 · 2 comments

Comments

@hpinkos
Copy link
Contributor

hpinkos commented Mar 8, 2016

Reported in #3686

camear.setView goes to the rectangle, camera.flyTo does not.

var viewer = new Cesium.Viewer('cesiumContainer', {sceneMode: Cesium.SceneMode.SCENE2D});
var scene = viewer.scene;
var clock = viewer.clock;

var west = 0.3323436621771766;
var south = 0.8292930502744068;
var east = 0.3325710961342694;
var north = 0.8297059734014236;
var rectangle = new Cesium.Rectangle(west, south, east, north);
viewer.entities.add({
    rectangle : {
        coordinates : rectangle,
        fill : false,
        outline : true,
        outlineColor : Cesium.Color.WHITE
    }
});

Sandcastle.addToolbarButton('setView', function() {
    viewer.camera.setView({
        destination: rectangle
    });
});

Sandcastle.addToolbarButton('flyTo', function() {
    viewer.camera.flyTo({
        destination: rectangle
    });
});
@novacto2
Copy link
Contributor

Could you please take a look at it #3695 ?
@hpinkos

@hpinkos
Copy link
Contributor Author

hpinkos commented Apr 5, 2016

fixed in #3695

@hpinkos hpinkos closed this as completed Apr 5, 2016
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

2 participants