LazMapViewer: Use threads in colored_tracks sample project.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8109 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2021-09-30 22:22:25 +00:00
parent 2388ef8a3d
commit 362b046840
2 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,8 @@ object MainForm: TMainForm
DrawingEngine = MapView.BuiltInDE
Font.Color = clBlack
MapProvider = 'OpenStreetMap Mapnik'
POIImagesWidth = 0
UseThreads = True
OnZoomChange = MapViewZoomChange
end
object Panel1: TPanel

View File

@ -66,7 +66,7 @@ begin
Screen.Cursor := crHourglass;
try
// Threaded painting interferes with track painting over several tiles
MapView.UseThreads := false;
MapView.UseThreads := true; //false;
MapView.MapProvider := Combobox1.Text;
MapView.Active := true;