crash If scene3DOnly is true and loading primitive

18 views
Skip to first unread message

s.pla...@gmail.com

unread,
Nov 16, 2016, 5:52:03 AM11/16/16
to cesium-dev
I've the newest build.
If i set scene3DOnly = true and load a primitive

var redSphere = viewer.entities.add({
name : 'Red sphere with black outline',
position: Cesium.Cartesian3.fromDegrees(-107.0, 40.0, 300000.0),
ellipsoid : {
radii : new Cesium.Cartesian3(300000.0, 300000.0, 300000.0),
material : Cesium.Color.RED.withAlpha(0.5),
outline : true,
outlineColor : Cesium.Color.BLACK
}
});


it crash with
TypeError: Cannot read property 'longitude' of undefined
TypeError: Cannot read property 'longitude' of undefined
at s.project (http://localhost:60105/com.ens.uns/libs/Cesium/Cesium.js:422:28001)
at ee (http://localhost:60105/com.ens.uns/libs/Cesium/Cesium.js:446:28638)
at G.update (http://localhost:60105/com.ens.uns/libs/Cesium/Cesium.js:447:7791)
at a.update (http://localhost:60105/com.ens.uns/libs/Cesium/Cesium.js:468:26744)
at Ue (http://localhost:60105/com.ens.uns/libs/Cesium/Cesium.js:472:934)
at Ve (http://localhost:60105/com.ens.uns/libs/Cesium/Cesium.js:471:31592)
at Be (http://localhost:60105/com.ens.uns/libs/Cesium/Cesium.js:471:29552)
at qe (http://localhost:60105/com.ens.uns/libs/Cesium/Cesium.js:472:3593)
at de.render (http://localhost:60105/com.ens.uns/libs/Cesium/Cesium.js:472:8773)
at P.render (http://localhost:60105/com.ens.uns/libs/Cesium/Cesium.js:477:23238)

s.pla...@gmail.com

unread,
Nov 16, 2016, 7:07:40 AM11/16/16
to cesium-dev, s.pla...@gmail.com
sorry, never mind.
in a newer build it works.
Reply all
Reply to author
Forward
0 new messages