TdxMapCustomElement Class
A custom map item.
Declaration
TdxMapCustomElement = class(
TdxMapPointer
)
Remarks
The TdxMapCustomElement class has members that allow you to do the following:
Position the custom element on a map (Location).
Set the custom element text (Text).
Load and position an image for the custom element (Image and ImageOrigin).
Hide or display the assigned image (ImageVisible).
Switch the custom map element’s visibility and selected state (Visible and Selected).
Specify the hint message or ScreenTip for the custom map element (Hint and ScreenTip).
Assign appearance settings for various states (Style, StyleHot, and StyleSelected).
Store arbitrary data with the map item (Attributes).
Tip
Call a map item layer‘s AddItem function and pass a reference to the TdxMapCustomElement class to create a custom map element.
Note
If you want to place a marker without an image, use the TdxMapDot or TdxMapPushpin classes instead.