ARCGIS Runtime for .NET 如何在 SceneView 中设置文本符号的背景颜色

ARCGIS Runtime for .NET How to set background color for Text Symbol in SceneView

我的代码如下所示:

            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 没有背景框,文本未在适当的下方居中 lat/long。

SceneView 没有这个功能吗?如果没有,我该怎么做?

很遗憾,第一个 v100 版本不支持文本背景。我们希望在下一次更新中有它,但它还没有,所以我还不能 100% 肯定地承诺它。

但是我们支持轮廓颜色,所以也许您可以改用它?