获取到了图层buildings@RealspaceSample,但是为什么获取不到图层的数据呢?
var layer3D = scene.get_layer3Ds().get_item("buildings@RealspaceSample"); //alert(layer3D.get_caption()+";"+layer3D.get_dataName()+";"+layer3D.get_dataType()+";"+layer3D.get_description());
var fieldInfo = "";
fieldCount = layer3D.get_fieldInfos().get_count();
for(var i=0;i<fieldCount;i++)
{
fieldInfo += layer3D.get_fieldInfos().get_item(i).get_name() + ":";
fieldInfo += layer3D.getFieldValue(i) + "; ";
}
alert(fieldInfo);