You've already forked lazarus-ccr
LazMapViewer: Fix track demos (hick-up with previously used map provider).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8774 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -60,6 +60,9 @@
|
|||||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||||
</SearchPaths>
|
</SearchPaths>
|
||||||
<Linking>
|
<Linking>
|
||||||
|
<Debugging>
|
||||||
|
<DebugInfoType Value="dsDwarf3"/>
|
||||||
|
</Debugging>
|
||||||
<Options>
|
<Options>
|
||||||
<Win32>
|
<Win32>
|
||||||
<GraphicApplication Value="True"/>
|
<GraphicApplication Value="True"/>
|
||||||
|
@ -19,7 +19,6 @@ object MainForm: TMainForm
|
|||||||
DrawingEngine = MapView.BuiltInDE
|
DrawingEngine = MapView.BuiltInDE
|
||||||
Font.Color = clBlack
|
Font.Color = clBlack
|
||||||
MapProvider = 'OpenStreetMap Mapnik'
|
MapProvider = 'OpenStreetMap Mapnik'
|
||||||
POIImagesWidth = 0
|
|
||||||
UseThreads = True
|
UseThreads = True
|
||||||
OnZoomChange = MapViewZoomChange
|
OnZoomChange = MapViewZoomChange
|
||||||
end
|
end
|
||||||
@ -71,9 +70,9 @@ object MainForm: TMainForm
|
|||||||
Left = 339
|
Left = 339
|
||||||
Height = 19
|
Height = 19
|
||||||
Top = 19
|
Top = 19
|
||||||
Width = 117
|
Width = 156
|
||||||
BorderSpacing.Left = 24
|
BorderSpacing.Left = 24
|
||||||
Caption = 'Triangle Loop Tour'
|
Caption = 'Triangle Loop Tour (black)'
|
||||||
Checked = True
|
Checked = True
|
||||||
OnChange = CheckBox3Change
|
OnChange = CheckBox3Change
|
||||||
State = cbChecked
|
State = cbChecked
|
||||||
|
@ -71,14 +71,14 @@ begin
|
|||||||
MapView.Active := true;
|
MapView.Active := true;
|
||||||
|
|
||||||
// Load GPX files
|
// Load GPX files
|
||||||
FTrack1 := LoadGPXFile(FILENAME1, clRed, 1.0);
|
FTrack1 := LoadGPXFile(Application.Location + FILENAME1, clRed, 1.0);
|
||||||
FTrack1.GetArea(totalArea);
|
FTrack1.GetArea(totalArea);
|
||||||
|
|
||||||
FTrack2 := LoadGPXFile(FILENAME2, clBlue, 1.2);
|
FTrack2 := LoadGPXFile(Application.Location + FILENAME2, clBlue, 1.2);
|
||||||
FTrack2.GetArea(trackArea);
|
FTrack2.GetArea(trackArea);
|
||||||
ExtendArea(totalArea, trackArea);
|
ExtendArea(totalArea, trackArea);
|
||||||
|
|
||||||
FTrack3 := LoadGPXFile(FILENAME3, clBlack, 0.5);
|
FTrack3 := LoadGPXFile(Application.Location + FILENAME3, clBlack, 0.5);
|
||||||
FTrack3.GetArea(trackArea);
|
FTrack3.GetArea(trackArea);
|
||||||
ExtendArea(totalArea, trackArea);
|
ExtendArea(totalArea, trackArea);
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ object MainForm: TMainForm
|
|||||||
Font.CharSet = ANSI_CHARSET
|
Font.CharSet = ANSI_CHARSET
|
||||||
Font.Color = clBlack
|
Font.Color = clBlack
|
||||||
Font.Pitch = fpVariable
|
Font.Pitch = fpVariable
|
||||||
MapProvider = 'OpenStreetMap Mapnik'
|
MapProvider = 'Google Maps'
|
||||||
POIImage.Data = {
|
POIImage.Data = {
|
||||||
36170000424D36170000000000003600000028000000200000002E0000000100
|
36170000424D36170000000000003600000028000000200000002E0000000100
|
||||||
2000000000000017000064000000640000000000000000000000FFFFFF00FFFF
|
2000000000000017000064000000640000000000000000000000FFFFFF00FFFF
|
||||||
@ -211,7 +211,6 @@ object MainForm: TMainForm
|
|||||||
FEEB0000FEC70000FE980000FD570000EA0CFFFFFF00FFFFFF00FFFFFF00FFFF
|
FEEB0000FEC70000FE980000FD570000EA0CFFFFFF00FFFFFF00FFFFFF00FFFF
|
||||||
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00
|
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00
|
||||||
}
|
}
|
||||||
POIImagesWidth = 0
|
|
||||||
POITextBgColor = clCream
|
POITextBgColor = clCream
|
||||||
OnCenterMove = MapViewCenterMove
|
OnCenterMove = MapViewCenterMove
|
||||||
OnZoomChange = MapViewZoomChange
|
OnZoomChange = MapViewZoomChange
|
||||||
|
@ -74,7 +74,7 @@ begin
|
|||||||
crs := Screen.Cursor;
|
crs := Screen.Cursor;
|
||||||
Screen.Cursor := crHourglass;
|
Screen.Cursor := crHourglass;
|
||||||
try
|
try
|
||||||
MapView.MapProvider := 'Open Topo Map';
|
MapView.MapProvider := 'Google Maps'; //'Open Topo Map';
|
||||||
MapView.Active := true;
|
MapView.Active := true;
|
||||||
// Center on Grand Canyon Village
|
// Center on Grand Canyon Village
|
||||||
MapView.Zoom := 13;
|
MapView.Zoom := 13;
|
||||||
@ -134,7 +134,7 @@ var
|
|||||||
begin
|
begin
|
||||||
reader := TGpxReader.Create;
|
reader := TGpxReader.Create;
|
||||||
try
|
try
|
||||||
reader.LoadFromFile(GPX_FILE_NAME, MapView.GPSItems, b);
|
reader.LoadFromFile(Application.Location + GPX_FILE_NAME, MapView.GPSItems, b);
|
||||||
MapView.Engine.ZoomOnArea(b);
|
MapView.Engine.ZoomOnArea(b);
|
||||||
FTrack := MapView.GpsItems.GetObjectsInArea(b).Items[0] as TGpsTrack;
|
FTrack := MapView.GpsItems.GetObjectsInArea(b).Items[0] as TGpsTrack;
|
||||||
|
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
<Filename Value="main.pas"/>
|
<Filename Value="main.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<ComponentName Value="MainForm"/>
|
<ComponentName Value="MainForm"/>
|
||||||
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
</Unit1>
|
</Unit1>
|
||||||
</Units>
|
</Units>
|
||||||
@ -58,6 +59,9 @@
|
|||||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||||
</SearchPaths>
|
</SearchPaths>
|
||||||
<Linking>
|
<Linking>
|
||||||
|
<Debugging>
|
||||||
|
<DebugInfoType Value="dsDwarf3"/>
|
||||||
|
</Debugging>
|
||||||
<Options>
|
<Options>
|
||||||
<Win32>
|
<Win32>
|
||||||
<GraphicApplication Value="True"/>
|
<GraphicApplication Value="True"/>
|
||||||
|
Reference in New Issue
Block a user