|Submitted||Jul 08, 2015|
|Modified||Jun 11, 2020|
|Applies To||ArcGIS Runtime SDK for Java|
|Server Platform||Red Hat Enterprise Linux 6.4 64 Bit|
|Client Platform||Red Hat Enterprise Linux 6.4 64 Bit|
|Status||Not in Current Product Plan|
Unable to correctly display a TextSymbol for a Point Graphic with a labeling expression as the text string.
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");