| cadetill's blog | Copyright © Xavier Martínez (cadetill) |
Class TGMLatLngBounds
Unit
Declaration
type TGMLatLngBounds = class(TGMPersistentStr, IGMControlChanges)
Description
A TGMLatLngBounds instance represents a rectangle in geographical coordinates, including one that crosses the 180 degrees longitudinal meridian.
More information at google.maps.LatLngBounds class
Hierarchy
- TObject
- TPersistent
- TInterfacedPersistent
- TGMInterfacedOwnedPersistent
- TGMPersistent
- TGMPersistentStr
- TGMLatLngBounds
Overview
Methods
![]() |
constructor Create(SW, NE: TGMLatLng; Lang: TGMLang = lnEnglish); reintroduce; overload; virtual; |
![]() |
constructor Create(AOwner: TPersistent; SWLat: Real = 0; SWLng: Real = 0; NELat: Real = 0; NELng: Real = 0); reintroduce; overload; virtual; |
![]() |
constructor Create(AOwner: TPersistent; SW, NE: TGMLatLng); reintroduce; overload; virtual; |
![]() |
constructor Create(SWLat: Real = 0; SWLng: Real = 0; NELat: Real = 0; NELng: Real = 0; Lang: TGMLang = lnEnglish); reintroduce; overload; virtual; |
![]() |
destructor Destroy; override; |
![]() |
function Contains(LatLng: TGMLatLng): Boolean; |
![]() |
function GetCenter: TGMLatLng; |
![]() |
function Intersects(Other: TGMLatLngBounds): Boolean; |
![]() |
function IsEmpty: Boolean; |
![]() |
function IsEqual(Other: TGMLatLngBounds): Boolean; |
![]() |
function PropToString: string; override; |
![]() |
function ToJson(Precision: Integer = 6): string; |
![]() |
function ToSpan: TGMLatLng; |
![]() |
function ToStr(Precision: Integer = 6): string; |
![]() |
function ToUrlValue(Precision: Integer = 6): string; |
![]() |
function GetOwnerLang: TGMLang; override; |
![]() |
procedure Assign(Source: TPersistent); override; |
![]() |
procedure Extend(LatLng: TGMLatLng); |
![]() |
procedure Union(Other: TGMLatLngBounds); |
![]() |
procedure PropertyChanged(Prop: TPersistent; PropName: string); |
Properties
![]() |
property APIUrl; |
![]() |
property NE: TGMLatLng read FNE write FNE; |
![]() |
property SW: TGMLatLng read FSW write FSW; |
Description
Methods
![]() |
constructor Create(SW, NE: TGMLatLng; Lang: TGMLang = lnEnglish); reintroduce; overload; virtual; |
|
Constructor class.
Parameters
| |
![]() |
constructor Create(AOwner: TPersistent; SW, NE: TGMLatLng); reintroduce; overload; virtual; |
|
Constructor class.
Parameters
| |
![]() |
constructor Create(SWLat: Real = 0; SWLng: Real = 0; NELat: Real = 0; NELng: Real = 0; Lang: TGMLang = lnEnglish); reintroduce; overload; virtual; |
|
Constructor class.
Parameters
| |
![]() |
destructor Destroy; override; |
|
Destructor class. | |
![]() |
function Contains(LatLng: TGMLatLng): Boolean; |
|
Returns
Parameters
Returns
Exceptions raised
| |
![]() |
function GetCenter: TGMLatLng; |
|
Get the center of current bounds.
Parameters
Exceptions raised
| |
![]() |
function Intersects(Other: TGMLatLngBounds): Boolean; |
|
Returns
Parameters
Returns
Exceptions raised
| |
![]() |
function IsEmpty: Boolean; |
|
Returns
Returns
| |
![]() |
function IsEqual(Other: TGMLatLngBounds): Boolean; |
|
Returns
Two bounds are equals if his coordinates NE and SW are equals.
Parameters
Returns
| |
![]() |
function PropToString: string; override; |
|
Converts all class properties values to a string separated by comma used to send values to a JavaScript function. Returnsstring with all properties. | |
![]() |
function ToJson(Precision: Integer = 6): string; |
|
Convert bounds to Json representation.
Parameters
ReturnsJson with the bounds. | |
![]() |
function ToSpan: TGMLatLng; |
|
Converts the given bounds to a lat/lng span.
Parameters
Exceptions raised
| |
![]() |
function ToStr(Precision: Integer = 6): string; |
|
Convert bounds to string representation.
Parameters
ReturnsString with the bounds. | |
![]() |
function GetOwnerLang: TGMLang; override; |
|
Returns the TGMLang of the Owner.
If Owner is not assigned or not supports IGMOwnerLang interface then should be returned
ReturnsTGMLang of the owner object. | |
![]() |
procedure Extend(LatLng: TGMLatLng); |
|
Extends the bounds to contain the given point.
Parameters
Exceptions raised
| |
![]() |
procedure Union(Other: TGMLatLngBounds); |
|
Extends this bounds to contain the union of this and the given bounds.
Parameters
Exceptions raised
| |
Properties
![]() |
property APIUrl; |
|
URL to Google Maps API page. | |
![]() |
property NE: TGMLatLng read FNE write FNE; |
|
North-east coordinates. | |
![]() |
property SW: TGMLatLng read FSW write FSW; |
|
South-west coordinates. | |
Generated by PasDoc 0.15.0.


