Cesium Viewer Problem when Property globe: false and Entity Label Shown

Hi.
I have found that the Cesium Viewer throws an error when the globe property is false and within an entity, e.g. a point, a text label is included.
Of course, when I add a globe (by not adding the property globe: false), the text label is shown correctly.
A sample code is included next:

var viewer = new Cesium.Viewer(‘cesiumContainer’, {
globe: false
});

var tripoli = viewer.entities.add({
    name : 'A Point',
    position : Cesium.Cartesian3.fromDegrees(-70.0, 50.0),
    point : {
        pixelSize : 10,
        color : Cesium.Color.RED
    },
    label : {
        text : 'ES'
    }
});

Please let me know if this is a bug or there is another way to show text labels when no globe is added.

Thanks,
Nikos

Cesium Version: 1.28
Windows 10, Firefox 50.1.0, node.js 7.2.1 (x64) and npm

Hello Nikos,

You need to have a globe when using the Entity API. If you don’t want a globe, you can add points and labels using primitive collections like this:

var viewer = new Cesium.Viewer(‘cesiumContainer’, {
globe: false
});
var points = viewer.scene.primitives.add(new Cesium.PointPrimitiveCollection());
points.add({
position : Cesium.Cartesian3.fromDegrees(-70.0, 50.0),
pixelSize : 10,
color : Cesium.Color.RED
});

var labels = viewer.scene.primitives.add(new Cesium.LabelCollection());
labels.add({
position : Cesium.Cartesian3.fromDegrees(-70.0, 50.0),
text : ‘ES’
});

``

Best,

Hannah

Thank you so much for your prompt response.

Regards,
Nikos

Τη Τρίτη, 27 Δεκεμβρίου 2016 - 5:39:18 μ.μ. UTC+2, ο χρήστης Hannah Pinkos έγραψε: