CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.91k stars 3.48k forks source link

Polylines with height don't show up in rotatable 2D mode #4620

Open hpinkos opened 7 years ago

hpinkos commented 7 years ago

This polyline doesn't show up on the globe. If you remove the height, or change to regular 2D mode, it shows up fine.

var viewer = new Cesium.Viewer('cesiumContainer', {
     sceneMode: Cesium.SceneMode.SCENE2D, 
     mapMode2D : Cesium.MapMode2D.ROTATE
});

var orangeOutlined = viewer.entities.add({
    polyline : {
        positions : Cesium.Cartesian3.fromDegreesArrayHeights([-75, 39, 250000,
                                                               -125, 39, 250000]),
        width : 5
    }
});

viewer.zoomTo(viewer.entities);
hpinkos commented 7 years ago

Found when investigating #4619

pjcozzi commented 7 years ago

This is the same or similar issue as the oldest open issue in the repo, #94.

krheinwald commented 6 years ago

Is there any chance this will get tackled sometime?

hpinkos commented 6 years ago

Hi @krheinwald, sorry, but we haven't had a chance to look into it yet. We're happy to review a pull request if anyone has a chance to submit a fix though!