【问题标题】:ARCGIS Runtime for .NET How to set background color for Text Symbol in SceneViewARCGIS Runtime for .NET 如何在 SceneView 中设置文本符号的背景颜色
【发布时间】:2016-10-29 20:17:29
【问题描述】:

我的代码如下所示:

            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 是否没有此功能?如果没有,我该怎么做?

【问题讨论】:

    标签: c# .net arcgis arcgis-runtime


    【解决方案1】:

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

    我们确实支持轮廓颜色,所以也许您可以使用它来代替?

    【讨论】:

      猜你喜欢
      • 2013-07-29
      • 1970-01-01
      • 2019-09-09
      • 1970-01-01
      • 1970-01-01
      • 2018-03-17
      • 1970-01-01
      • 2019-11-26
      • 1970-01-01
      相关资源
      最近更新 更多