简体   繁体   English

NET的ARCGIS运行时如何在SceneView中设置文本符号的背景颜色

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

My code looks like this: 我的代码如下所示:

            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);

The text symbol shows up as expected on the MapView, but the SceneView there is no background box and the text is not centered under the appropriate lat/long. 文本符号按预期显示在MapView上,但是SceneView没有背景框,并且文本不在适当的经/纬度下方居中。

Is this capability not available for SceneView? 此功能不适用于SceneView吗? If not, how can I do this? 如果没有,我该怎么办?

Unfortunately text background is not supported in the first v100 release. 不幸的是,第一个v100版本不支持文本背景。 We hope to have it in the next update, but it's not be in yet, so I can't with 100% certainty promise it yet. 我们希望在下一个更新中提供它,但它尚未发布,因此我不能100%肯定地承诺它。

We do however support outline color, so perhaps you can use that instead? 但是,我们确实支持轮廓色,所以也许您可以使用它呢?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM