type TMarker = class(TPersistent)
Marker class.
![]() |
constructor Create(centerPosition: Boolean = false); |
![]() |
function Clone: TMarker; |
![]() |
destructor Destroy(); override; |
![]() |
function GetPopupFontBoldStr(): String; |
![]() |
property Name: String read FName write SetMarkerName; |
![]() |
property Position: TGPSPosition read fPosition write fPosition; |
![]() |
property Title: String read fTitle write fTitle; |
![]() |
property Popup: String read fPopup write fPopup; |
![]() |
property Icon: String read FIcon write FIcon; |
![]() |
property Size: Integer read FSize write FSize; |
![]() |
property Text: String read FLabel write FLabel; |
![]() |
property TextColor: TColor read fTextColor write fTextColor; |
![]() |
property BackgroundColor: TColor read fBackgroundColor write fBackgroundColor; |
![]() |
property TextFontSize: integer read fTextFontSize write fTextFontSize; |
![]() |
property Visible: Boolean read fVisible write fVisible default true; |
![]() |
property Draggable: Boolean read fDraggable write fDraggable default false; |
![]() |
property PopupFontColor: TColor read fPopupFontColor write fPopupFontColor; |
![]() |
property PopupBackgroundColor: TColor read fPopupBackgroundColor write fPopupBackgroundColor; |
![]() |
property PopupFontBold: Boolean read fPopupFontBold write fPopupFontBold; |
![]() |
property PopupFontSize: Integer read fPopupFontSize write fPopupFontSize; |
![]() |
property OnMarkerClick: TMarkerEvent read FOnMarkerClick write FOnMarkerClick; |
![]() |
property OnMarkerRightClick: TMarkerEvent read FOnMarkerRightClick write FOnMarkerRightClick; |
![]() |
property OnMarkerDoubleClick: TMarkerEvent read FOnMarkerDoubleClick write FOnMarkerDoubleClick; |
![]() |
constructor Create(centerPosition: Boolean = false); |
|
Constructor.
Parameters
| |
![]() |
function Clone: TMarker; |
|
Clone the marker.
ReturnsCloned marker. | |
![]() |
destructor Destroy(); override; |
|
Destructor. | |
![]() |
function GetPopupFontBoldStr(): String; |
|
Return "bold" if the font style is bold, otherwise "normal".
Returns"bold" if the font style is bold, otherwise "normal". | |
![]() |
property Name: String read FName write SetMarkerName; |
|
Name of the marker. Must be unique! | |
![]() |
property Position: TGPSPosition read fPosition write fPosition; |
|
Position of the marker. | |
![]() |
property Title: String read fTitle write fTitle; |
|
Title (hint) of the marker hover. | |
![]() |
property Popup: String read fPopup write fPopup; |
|
Popup for the marker. | |
![]() |
property Icon: String read FIcon write FIcon; |
|
Custom marker icon. Leave it blank for default icon.
You can use standard and custom marker icons from the Google Earth/Maps Icons collection. http://kml4earth.appspot.com/icons.html <example> @Icon = "http://maps.google.com/mapfiles/kml/shapes/airports.png"; </example> | |
![]() |
property Size: Integer read FSize write FSize; |
|
Size of the marker. (e.g. 16x16 = 16) It is used for OSM. The default value is 16. | |
![]() |
property Text: String read FLabel write FLabel; |
|
Label of the marker. | |
![]() |
property TextColor: TColor read fTextColor write fTextColor; |
|
Color of the label (Text). | |
![]() |
property BackgroundColor: TColor read fBackgroundColor write fBackgroundColor; |
|
Background color of the icon. | |
![]() |
property TextFontSize: integer read fTextFontSize write fTextFontSize; |
|
Font size of the label. | |
![]() |
property Visible: Boolean read fVisible write fVisible default true; |
|
Indicates if the marker is visible. | |
![]() |
property Draggable: Boolean read fDraggable write fDraggable default false; |
|
To allow users to drag a marker to a different location on the map, set this property to true. | |
![]() |
property PopupFontColor: TColor read fPopupFontColor write fPopupFontColor; |
|
Font color of the popup text. | |
![]() |
property PopupBackgroundColor: TColor read fPopupBackgroundColor write fPopupBackgroundColor; |
|
Background color of the popup text. | |
![]() |
property PopupFontBold: Boolean read fPopupFontBold write fPopupFontBold; |
|
Font style of the popup text (Bold or normal). | |
![]() |
property PopupFontSize: Integer read fPopupFontSize write fPopupFontSize; |
|
Font size of the popup text. | |
![]() |
property OnMarkerClick: TMarkerEvent read FOnMarkerClick write FOnMarkerClick; |
|
Events {$ifdef RADSTUDIO10_4} <summary> Occur when the marker is clicked. </summary> | |
![]() |
property OnMarkerRightClick: TMarkerEvent read FOnMarkerRightClick write FOnMarkerRightClick; |
|
Occur when the marker is right clicked. | |
![]() |
property OnMarkerDoubleClick: TMarkerEvent read FOnMarkerDoubleClick write FOnMarkerDoubleClick; |
|
Occur when the marker is double clicked. | |