Unable to correctly display a TextSymbol for a Point Graphic with a labeling expression as the text string.
Last Published: July 30, 2015ArcGIS Runtime SDK for Java
Bug ID Number
July 8, 2015
June 11, 2020
ArcGIS Runtime SDK for Java
Red Hat Enterprise Linux
Operating System Version
6.4 64 Bit
After review by the development team, it has been determined that this issue is related to a known limitation with the software that lies outside of Esri's control. The issue's Additional Information section may contain further explanation.
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.
//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");