Description


The class is designed to indicate the northeast and southwest coordinates. The class is used to gets or sets a rectangular area on the map.



Class Properties

 Property

 NorthEast.Latitude: Double

 NorthEast.Longitude: Double

 SouthWest.Latitude: Double

 SouthWest.Longitude: Double





Example


// showing Paris on the map
procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
var
    Bounds: TBounds;
begin
    Bounds := TBounds.Create;
    Bounds.NorthEast.Latitude := 48.900868;
    Bounds.NorthEast.Longitude := 2.396142;
    Bounds.SouthWest.Latitude := 48.817004;
    Bounds.SouthWest.Longitude := 2.244114;
    Form1.Map1.MapZoomTo(Bounds);
    Bounds.Free;
end;