Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomMapItemLayer.ItemHint Property

Specifies the default hint message for the map layer’s items.

#Declaration

Delphi
property ItemHint: string read; write;

#Property Value

Type
string

#Remarks

This property provides the default value for the GetItemHint function. In addition to normal strings, you can include a map item’s attribute values in the message. To accomplish this, add required attribute names and enclose each one with braces {}. The names and braces will be automatically replaced with the corresponding attribute values on displaying the hint message. If a certain attribute cannot be found by the specified name, this name with enclosing braces are passed as is into the message.

The following code shows how to set the ItemHint property to make hint messages display the location name and altitude associated with map items and stored in map item attributes called Name and Altitude.

Delphi
<dxMapControlItemLayer>.ItemHint := '{Name}, Altitude: {Altitude} m';
See Also