iobject .net中如何将GeoText3D对象添加到kml图层中
代码如下,但没看见文本
<!--StartFragment -->
m_editTextStyle = new TextStyle();
m_editTextStyle.IsSizeFixed = true;
m_editTextStyle.FontName = "黑体";
m_editTextStyle.ForeColor = System.Drawing.Color.FromArgb(colorname);
//修改此颜色,根据不同类型取不同的颜色
m_editTextStyle.Shadow = true;
m_editTextStyle.ShadowColor = System.Drawing.Color.White;
m_editTextStyle.Bold = true;
m_editTextStyle.FontScale = 1;
m_editTextStyle.FontHeight = 22;
GeoText3D geoText3D = new GeoText3D(new TextPart3D(content,position.X, position.Y, 0));
geoText3D.TextStyle = m_editTextStyle;
<!--StartFragment -->
Feature3D feature3D = new Feature3D();
feature3D.Name = strName;
feature3D.Geometry = geoText3D;
m_layerSurfElem.Features.Add(feature3D);