ZylGMaps Delphi & C++Builder Component

Class TZylGMaps

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type TZylGMaps = class(TZylWebBrowser)

Description

Map component for VCL. For Delphi 10.4 or later WebView2 runtime required: https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy(); override;
Public procedure DrawMap;
Public procedure RefreshMap;
Public procedure SaveMapToHtml(fileName: String);
Public procedure SaveMapToImage(fileName: String);
Public procedure Reset;

Properties

Public property UnlockKey: String read FUnlockKey write FUnlockKey;
Public property Version: Double read FVersion;
Public property Paths: TPaths read FPaths write FPaths;
Public property Polylines: TPaths read FPaths write FPaths;
Public property Markers: TMarkers read FMarkers write FMarkers;
Public property Circles: TCircles read FCircles write FCircles;
Public property Rectangles: TRectangles read FRectangles write FRectangles;
Published property Visible;
Published property CenterPosition: TGPSPosition read fCenterPosition write fCenterPosition;
Published property CenterPositionMarker: TMarker read fCenterPositionMarker write fCenterPositionMarker;
Published property Zoom: Integer read FZoom write SetZoom;
Published property MapType: TMapType read FMapType write FMapType;
Published property MapProvider: TMapProvider read FMapProvider write FMapProvider;
Published property ShowPOI: Boolean read FShowPOI write FShowPOI default true;
Published property ApiKey: AnsiString read FApiKey write FApiKey;
Published property ZoomControl: Boolean read FZoomControl write FZoomControl;
Published property MapTypeControl: Boolean read FMapTypeControl write FMapTypeControl;
Published property StreetViewControl: Boolean read FStreetViewControl write FStreetViewControl;

Description

Methods

Public constructor Create(AOwner: TComponent); override;

Constructor.

Parameters
AOwner
Owner of the component.
Public destructor Destroy(); override;

Destructor.

Public procedure DrawMap;

Display the map.

Public procedure RefreshMap;

Refresh the map.

Public procedure SaveMapToHtml(fileName: String);

Save the current map to html file.

Parameters
fileName
Html file.
Public procedure SaveMapToImage(fileName: String);

Save the current map to jpeg image.

Parameters
fileName
Jpeg image file.
Public procedure Reset;

Reset the position to default value.

Properties

Public property UnlockKey: String read FUnlockKey write FUnlockKey;

It is used to protect your software after deployment. You will have to set it to the correct value, before drawing. You will find the key in your software package.

Public property Version: Double read FVersion;

Component version.

Public property Paths: TPaths read FPaths write FPaths;

Paths to be shown on the map as polylines.

Public property Polylines: TPaths read FPaths write FPaths;

Paths to be shown on the map as polylines.

Public property Markers: TMarkers read FMarkers write FMarkers;

List of markers to be shown on the map, except center position marker.

Public property Circles: TCircles read FCircles write FCircles;

List of circles to be shown on the map.

Public property Rectangles: TRectangles read FRectangles write FRectangles;

List of rectangles to be shown on the map.

Published property Visible;

Indicates if the map is visible.

Published property CenterPosition: TGPSPosition read fCenterPosition write fCenterPosition;

Center position coordinates.

Published property CenterPositionMarker: TMarker read fCenterPositionMarker write fCenterPositionMarker;

Marker for the center position.

Published property Zoom: Integer read FZoom write SetZoom;

Zoom level.

Published property MapType: TMapType read FMapType write FMapType;

Map type.

Published property MapProvider: TMapProvider read FMapProvider write FMapProvider;

Map provider.

Published property ShowPOI: Boolean read FShowPOI write FShowPOI default true;

Display or hide points of interest.

Published property ApiKey: AnsiString read FApiKey write FApiKey;

Google maps API key.

Published property ZoomControl: Boolean read FZoomControl write FZoomControl;

Show / hide zoom control buttons.

Published property MapTypeControl: Boolean read FMapTypeControl write FMapTypeControl;

Show / hide map type control tabs.

Published property StreetViewControl: Boolean read FStreetViewControl write FStreetViewControl;

Show / hide street view button.

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