You've already forked lazarus-ccr
LazMapViewer: Add new property Cyclic (not functional yet)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8804 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -60,6 +60,7 @@ Type
|
||||
function GetCacheOnDisk: boolean;
|
||||
function GetCachePath: String;
|
||||
function GetCenter: TRealPoint;
|
||||
function GetCyclic: Boolean;
|
||||
function GetDownloadEngine: TMvCustomDownloadEngine;
|
||||
function GetDrawingEngine: TMvCustomDrawingEngine;
|
||||
function GetMapProvider: String;
|
||||
@@ -75,6 +76,7 @@ Type
|
||||
procedure SetCacheOnDisk(AValue: boolean);
|
||||
procedure SetCachePath(AValue: String);
|
||||
procedure SetCenter(AValue: TRealPoint);
|
||||
procedure SetCyclic(AValue: Boolean);
|
||||
procedure SetDebugTiles(AValue: Boolean);
|
||||
procedure SetDefaultTrackColor(AValue: TColor);
|
||||
procedure SetDefaultTrackWidth(AValue: Integer);
|
||||
@@ -140,6 +142,7 @@ Type
|
||||
property Align;
|
||||
property CacheOnDisk: boolean read GetCacheOnDisk write SetCacheOnDisk default true;
|
||||
property CachePath: String read GetCachePath write SetCachePath stored IsCachePathStored;
|
||||
property Cyclic: Boolean read GetCyclic write SetCyclic default false;
|
||||
property DebugTiles: Boolean read FDebugTiles write SetDebugTiles default false;
|
||||
property DefaultTrackColor: TColor read FDefaultTrackColor write SetDefaultTrackColor default clRed;
|
||||
property DefaultTrackWidth: Integer read FDefaultTrackWidth write SetDefaultTrackWidth default 1;
|
||||
@@ -319,6 +322,11 @@ begin
|
||||
Result := Engine.Center;
|
||||
end;
|
||||
|
||||
function TMapView.GetCyclic: Boolean;
|
||||
begin
|
||||
Result := Engine.Cyclic;
|
||||
end;
|
||||
|
||||
function TMapView.GetDownloadEngine: TMvCustomDownloadEngine;
|
||||
begin
|
||||
if FDownloadEngine = nil then
|
||||
@@ -396,6 +404,11 @@ begin
|
||||
Engine.Center := AValue;
|
||||
end;
|
||||
|
||||
procedure TMapView.SetCyclic(AValue: Boolean);
|
||||
begin
|
||||
Engine.Cyclic := AValue;
|
||||
end;
|
||||
|
||||
procedure TMapView.SetDebugTiles(AValue: Boolean);
|
||||
begin
|
||||
if FDebugTiles = AValue then exit;
|
||||
|
||||
Reference in New Issue
Block a user