ZylGMaps Delphi & C++Builder Component

Class TMarker

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type TMarker = class(TPersistent)

Description

Marker class.

Hierarchy

Overview

Methods

Public constructor Create(centerPosition: Boolean = false);
Public function Clone: TMarker;
Public destructor Destroy(); override;
Public function GetPopupFontBoldStr(): String;

Properties

Published property Name: String read FName write SetMarkerName;
Published property Position: TGPSPosition read fPosition write fPosition;
Published property Title: String read fTitle write fTitle;
Published property Popup: String read fPopup write fPopup;
Published property Icon: String read FIcon write FIcon;
Published property Size: Integer read FSize write FSize;
Published property Text: String read FLabel write FLabel;
Published property TextColor: TColor read fTextColor write fTextColor;
Published property BackgroundColor: TColor read fBackgroundColor write fBackgroundColor;
Published property TextFontSize: integer read fTextFontSize write fTextFontSize;
Published property Visible: Boolean read fVisible write fVisible default true;
Published property Draggable: Boolean read fDraggable write fDraggable default false;
Published property PopupFontColor: TColor read fPopupFontColor write fPopupFontColor;
Published property PopupBackgroundColor: TColor read fPopupBackgroundColor write fPopupBackgroundColor;
Published property PopupFontBold: Boolean read fPopupFontBold write fPopupFontBold;
Published property PopupFontSize: Integer read fPopupFontSize write fPopupFontSize;
Published property OnMarkerClick: TMarkerEvent read FOnMarkerClick write FOnMarkerClick;
Published property OnMarkerRightClick: TMarkerEvent read FOnMarkerRightClick write FOnMarkerRightClick;
Published property OnMarkerDoubleClick: TMarkerEvent read FOnMarkerDoubleClick write FOnMarkerDoubleClick;

Description

Methods

Public constructor Create(centerPosition: Boolean = false);

Constructor.

Parameters
centerPosition
True, if center position marker, otherwise it is false.
Public function Clone: TMarker;

Clone the marker.

Returns

Cloned marker.

Public destructor Destroy(); override;

Destructor.

Public function GetPopupFontBoldStr(): String;

Return "bold" if the font style is bold, otherwise "normal".

Returns

"bold" if the font style is bold, otherwise "normal".

Properties

Published property Name: String read FName write SetMarkerName;

Name of the marker. Must be unique!

Published property Position: TGPSPosition read fPosition write fPosition;

Position of the marker.

Published property Title: String read fTitle write fTitle;

Title (hint) of the marker hover.

Published property Popup: String read fPopup write fPopup;

Popup for the marker.

Published 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>

Published 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.

Published property Text: String read FLabel write FLabel;

Label of the marker.

Published property TextColor: TColor read fTextColor write fTextColor;

Color of the label (Text).

Published property BackgroundColor: TColor read fBackgroundColor write fBackgroundColor;

Background color of the icon.

Published property TextFontSize: integer read fTextFontSize write fTextFontSize;

Font size of the label.

Published property Visible: Boolean read fVisible write fVisible default true;

Indicates if the marker is visible.

Published 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.

Published property PopupFontColor: TColor read fPopupFontColor write fPopupFontColor;

Font color of the popup text.

Published property PopupBackgroundColor: TColor read fPopupBackgroundColor write fPopupBackgroundColor;

Background color of the popup text.

Published property PopupFontBold: Boolean read fPopupFontBold write fPopupFontBold;

Font style of the popup text (Bold or normal).

Published property PopupFontSize: Integer read fPopupFontSize write fPopupFontSize;

Font size of the popup text.

Published property OnMarkerClick: TMarkerEvent read FOnMarkerClick write FOnMarkerClick;

Events {$ifdef RADSTUDIO10_4} <summary> Occur when the marker is clicked. </summary>

Published property OnMarkerRightClick: TMarkerEvent read FOnMarkerRightClick write FOnMarkerRightClick;

Occur when the marker is right clicked.

Published property OnMarkerDoubleClick: TMarkerEvent read FOnMarkerDoubleClick write FOnMarkerDoubleClick;

Occur when the marker is double clicked.

Copyright © 2003 - 2026 by Zyl Soft. All rights reserved.
Generated by PasDoc 0.16.0.