type TZylGMaps = class(TZylWebBrowser)
Map component for VCL. For Delphi 10.4 or later WebView2 runtime required: https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
destructor Destroy(); override; |
![]() |
procedure DrawMap; |
![]() |
procedure RefreshMap; |
![]() |
procedure SaveMapToHtml(fileName: String); |
![]() |
procedure SaveMapToImage(fileName: String); |
![]() |
procedure Reset; |
![]() |
property UnlockKey: String read FUnlockKey write FUnlockKey; |
![]() |
property Version: Double read FVersion; |
![]() |
property Paths: TPaths read FPaths write FPaths; |
![]() |
property Polylines: TPaths read FPaths write FPaths; |
![]() |
property Markers: TMarkers read FMarkers write FMarkers; |
![]() |
property Circles: TCircles read FCircles write FCircles; |
![]() |
property Rectangles: TRectangles read FRectangles write FRectangles; |
![]() |
property Visible; |
![]() |
property CenterPosition: TGPSPosition read fCenterPosition write fCenterPosition; |
![]() |
property CenterPositionMarker: TMarker read fCenterPositionMarker write fCenterPositionMarker; |
![]() |
property Zoom: Integer read FZoom write SetZoom; |
![]() |
property MapType: TMapType read FMapType write FMapType; |
![]() |
property MapProvider: TMapProvider read FMapProvider write FMapProvider; |
![]() |
property ShowPOI: Boolean read FShowPOI write FShowPOI default true; |
![]() |
property ApiKey: AnsiString read FApiKey write FApiKey; |
![]() |
property ZoomControl: Boolean read FZoomControl write FZoomControl; |
![]() |
property MapTypeControl: Boolean read FMapTypeControl write FMapTypeControl; |
![]() |
property StreetViewControl: Boolean read FStreetViewControl write FStreetViewControl; |
![]() |
constructor Create(AOwner: TComponent); override; |
|
Constructor.
Parameters
| |
![]() |
destructor Destroy(); override; |
|
Destructor. | |
![]() |
procedure DrawMap; |
|
Display the map. | |
![]() |
procedure RefreshMap; |
|
Refresh the map. | |
![]() |
procedure SaveMapToHtml(fileName: String); |
|
Save the current map to html file.
Parameters
| |
![]() |
procedure SaveMapToImage(fileName: String); |
|
Save the current map to jpeg image.
Parameters
| |
![]() |
procedure Reset; |
|
Reset the position to default value. | |
![]() |
property Version: Double read FVersion; |
|
Component version. | |
![]() |
property Paths: TPaths read FPaths write FPaths; |
|
Paths to be shown on the map as polylines. | |
![]() |
property Polylines: TPaths read FPaths write FPaths; |
|
Paths to be shown on the map as polylines. | |
![]() |
property Markers: TMarkers read FMarkers write FMarkers; |
|
List of markers to be shown on the map, except center position marker. | |
![]() |
property Circles: TCircles read FCircles write FCircles; |
|
List of circles to be shown on the map. | |
![]() |
property Rectangles: TRectangles read FRectangles write FRectangles; |
|
List of rectangles to be shown on the map. | |
![]() |
property Visible; |
|
Indicates if the map is visible. | |
![]() |
property CenterPosition: TGPSPosition read fCenterPosition write fCenterPosition; |
|
Center position coordinates. | |
![]() |
property CenterPositionMarker: TMarker read fCenterPositionMarker write fCenterPositionMarker; |
|
Marker for the center position. | |
![]() |
property Zoom: Integer read FZoom write SetZoom; |
|
Zoom level. | |
![]() |
property MapType: TMapType read FMapType write FMapType; |
|
Map type. | |
![]() |
property MapProvider: TMapProvider read FMapProvider write FMapProvider; |
|
Map provider. | |
![]() |
property ShowPOI: Boolean read FShowPOI write FShowPOI default true; |
|
Display or hide points of interest. | |
![]() |
property ApiKey: AnsiString read FApiKey write FApiKey; |
|
Google maps API key. | |
![]() |
property ZoomControl: Boolean read FZoomControl write FZoomControl; |
|
Show / hide zoom control buttons. | |
![]() |
property MapTypeControl: Boolean read FMapTypeControl write FMapTypeControl; |
|
Show / hide map type control tabs. | |
![]() |
property StreetViewControl: Boolean read FStreetViewControl write FStreetViewControl; |
|
Show / hide street view button. | |