ZylGMaps Delphi & C++Builder Component

Class TPath

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type TPath = class(TObject)

Description

Path class. Collection of GPS positions (polyline between positions).

Hierarchy

Overview

Methods

Public constructor Create();
Public destructor Destroy; override;
Public procedure Add(const Item: TGPSPosition);
Public procedure Insert(index: Integer; const Item: TGPSPosition);
Public procedure Delete(index: Integer);
Public procedure Clear;

Properties

Public property Count: Integer read GetCount;
Public property Items[index:Integer]: TGPSPosition read GetItem write SetItem;
Published property Name: String read fName write fName;
Published property StrokeColor: TColor read fStrokeColor write fStrokeColor;
Published property StrokeOpacity: Double read fStrokeOpacity write fStrokeOpacity;
Published property StrokeWeight: Integer read fStrokeWeight write fStrokeWeight;
Published property FillColor: TColor read fFillColor write fFillColor;
Published property FillOpacity: Double read fFillOpacity write fFillOpacity;
Published property GeodesicStatus: Boolean read fGeodesicStatus write fGeodesicStatus;
Published property PathType: TPathType read fPathType write fPathType;
Published property Visible: Boolean read fVisible write fVisible default true;

Description

Methods

Public constructor Create();

Constructor.

Public destructor Destroy; override;

Destructor.

Public procedure Add(const Item: TGPSPosition);

Add GPS position to collection.

Parameters
Item
GPSPosition item.
Public procedure Insert(index: Integer; const Item: TGPSPosition);

Insert GPS position into collection.

Parameters
index
Index, where the position is inserted.
Item
GPSPosition item.
Public procedure Delete(index: Integer);

Delete position from collection.

Parameters
index
Index, where the position is deleted from.
Public procedure Clear;

Remove all positions from collection.

Properties

Public property Count: Integer read GetCount;

GPSPosition count.

Public property Items[index:Integer]: TGPSPosition read GetItem write SetItem;

GPSPosition items.

Published property Name: String read fName write fName;

Path name.

Published property StrokeColor: TColor read fStrokeColor write fStrokeColor;

Color of the stroke.

Published property StrokeOpacity: Double read fStrokeOpacity write fStrokeOpacity;

Opacity of the stroke.

Published property StrokeWeight: Integer read fStrokeWeight write fStrokeWeight;

Weight of the stroke.

Published property FillColor: TColor read fFillColor write fFillColor;

Fill color of the shape.

Published property FillOpacity: Double read fFillOpacity write fFillOpacity;

Opacity of the shape.

Published property GeodesicStatus: Boolean read fGeodesicStatus write fGeodesicStatus;

Indicates whether the segments of the polyline should be drawn as geodesics, as opposed to straight lines on the Mercator projection. A geodesic is the shortest path between two points on the Earth's surface. The geodesic curve is constructed assuming the Earth is a sphere.

Published property PathType: TPathType read fPathType write fPathType;

Path type (polygon or polyline).

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

Indicates that the path is visible on the map.

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