From d91ea5ed17f512909b7cca0900be08518d0a96e4 Mon Sep 17 00:00:00 2001 From: thyphoonfr Date: Wed, 3 Aug 2016 21:19:18 +0200 Subject: [PATCH] Add SetMapServer() and RefreshMapGadget() --- PBMap.pb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/PBMap.pb b/PBMap.pb index 144c994..7934f43 100644 --- a/PBMap.pb +++ b/PBMap.pb @@ -267,6 +267,13 @@ Module PBMap EndIf EndProcedure + Procedure SetMapServer(ServerURL.s="http://tile.openstreetmap.org/",TileSize.l=256,ZoomMin.l=0,ZoomMax.l=18) + PBMap\ServerURL = ServerURL + PBMap\ZoomMin = ZoomMin + PBMap\ZoomMax = ZoomMax + PBMap\TileSize = TileSize + EndProcedure + Procedure Quit() ;kill main drawing thread (nicer than KillThread(PBMap\MainDrawingThread)) LockMutex(PBMap\Drawing\Mutex) @@ -1058,8 +1065,8 @@ CompilerIf #PB_Compiler_IsMainFile CompilerEndIf ; IDE Options = PureBasic 5.50 (Windows - x86) -; CursorPosition = 835 -; FirstLine = 811 +; CursorPosition = 272 +; FirstLine = 224 ; Folding = --------- ; EnableThread ; EnableXP