使用的chrome低版本支持插件 ie不会出现此类问题 feature3D赋值的问题吧
//添加屏幕图层文本
try{
var anchorPoint = new SuperMap.Web.Core.Point3D(0.35,0.975,0);
var txtPart3D = new SuperMap.Web.Core.TextPart3D("设置气泡任一属性后,需要关闭当前气泡,选择模型对象,弹出新气泡,修改属性生效", anchorPoint);
var textArray = [txtPart3D];
var text3D = new SuperMap.Web.Core.GeoText3D(textArray);
var feature3D = new SuperMap.Web.Core.Feature3D();
feature3D.set_geometry(text3D);
var textStyle = new SuperMap.Web.Core.TextStyle3D();
textStyle.set_foreColor(new SuperMap.Web.Core.Color(255,0,0,255));
textStyle.set_backColor(new SuperMap.Web.Core.Color(0,0,0,255));
textStyle.set_outline(true);
textStyle.set_fontName("微软雅黑");
textStyle.set_fontScale(0.8);
feature3D.set_textStyle3D(textStyle);
scene.get_screenLayer3D().add(feature3D,"Text");
scene.get_screenLayer3D().set_isVisible(true);
}
catch(e){
alert("屏幕图层添加文字失败");
}