[英]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沒有背景框,並且文本不在適當的經/緯度下方居中。
此功能不適用於SceneView嗎? 如果沒有,我該怎么辦?
不幸的是,第一個v100版本不支持文本背景。 我們希望在下一個更新中提供它,但它尚未發布,因此我不能100%肯定地承諾它。
但是,我們確實支持輪廓色,所以也許您可以使用它呢?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.