English
Bug Number BUG-000088931
Submitted Jul 08, 2015
Modified Jun 11, 2020
Severity Medium
Applies To ArcGIS Runtime SDK for Java
Version Found 10.2.2
Prog Language N/A
Server Platform Red Hat Enterprise Linux 6.4 64 Bit
Client Platform Red Hat Enterprise Linux 6.4 64 Bit
Database N/A
Locale N/A
Status Not in Current Product Plan
Version Fixed
SP Fixed

Bug BUG-000088931

Synopsis

Unable to correctly display a TextSymbol for a Point Graphic with a labeling expression as the text string.


Additional Information

The label expression functionality was added for 3D scene views and does work for 2D maps. The Quartz release provides a feature label capability.


Alternate Solution

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");