Defining BackgroundColor for TextSymbol in SceneView

1200
0
06-27-2016 10:59 AM
DavidHope
New Contributor III


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.

Is this capability not available for SceneView? If not, how can I do this?

0 Kudos
0 Replies