我的代码如下所示:
TextSymbol ts = new TextSymbol()
{
Font = new SymbolFont("Arial", 18),
BackgroundColor = Color.FromArgb(160, 255, 255, 255),
HorizontalTextAlignment = HorizontalTextAlignment.Center,
VerticalTextAlignment = VerticalTextAlignment.Baseline,
Text = icon.description,
XOffset = 0,
YOffset = -icon.height
};
var pointGraphic = new Graphic(GeometryEngine.Project(new MapPoint(icon.Longitude, icon.Latitude, 100, wgs84), MyViewBase.SpatialReference), ts);
文本符号在 MapView 上按预期显示,但 SceneView 没有背景框,并且文本不在适当的纬度/经度下居中。
此功能是否不适用于 SceneView?如果没有,我该怎么做?