Unable to correctly display a TextSymbol for a Point Graphic with a labeling expression as the text string.
上次发布: July 30, 2015ArcGIS Runtime SDK for Java
漏洞 ID 编号
BUG-000088931
已提交
July 8, 2015
上次修改时间
June 11, 2020
适用范围
ArcGIS Runtime SDK for Java
找到的版本
10.2.4
服务器平台
Red Hat Enterprise Linux
客户端平台
6.4 64 Bit
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
The label expression functionality was added for 3D scene views and does work for 2D maps. The Quartz release provides a feature label capability.
解决办法
Lookup the value of the needed label in the HashMap by supplying the key for the value that needs to be returned. Use the string that is returned to display the TextSymbol.
Example;
//Create an attribute
Map<String, Object> attributes = new HashMap<String, Object>();
//Put the key value into the Map
attributes.put("Name", "This is some text");
//get the string value by supplying the key
String expression = (String) attributes.get("Name");