jQuery.ajax({
url: 'test.php', //returns json_decode array()
dataType: 'json',
success: function(data){
for (i=0; i < data.length ; i++){
var entity = new Cesium.Entity();
entity.position = Cesium.Cartesian3.fromDegrees(data[i].T_X, data[i].T_Y),
entity.label = new Cesium.LabelGraphics();
entity.label.text = data[i].A_ID;
entity.label.verticalOrigin = Cesium.VerticalOrigin.TOP;
entity.billboard=billboard;
viewer.entities.add(entity);
}
}
});
</script>
______________________________________________________________________
----and i got error:
An error occurred while rendering. Rendering has stopped.
RangeError: Invalid array length
RangeError: Invalid array length
at K (http://localhost:8080/Cesium/Build/Cesium/Cesium.js:456:24374)
at et (http://localhost:8080/Cesium/Build/Cesium/Cesium.js:456:26223)
at dt (http://localhost:8080/Cesium/Build/Cesium/Cesium.js:456:31194)
at vt.render (http://localhost:8080/Cesium/Build/Cesium/Cesium.js:457:4984)
at P.render (http://localhost:8080/Cesium/Build/Cesium/Cesium.js:462:5471)
at t (http://localhost:8080/Cesium/Build/Cesium/Cesium.js:461:31242)
---- I've tried loop with some number instead of data.length and it doesn't work too
Does anyone have id(ea)?!
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you again!