Add a new property Header to _MapTile Class to set up the http client Header.

[GB.MAP]
* NEW: Add a new property Header to _MapTile Class to set up the http client Header.
This commit is contained in:
gambix 2020-12-03 15:56:22 +01:00
parent b45a677cbe
commit f77f4b8188

View File

@ -12,6 +12,7 @@ Property MaxBounds As MapBounds
Property CacheRefreshDelay As Integer '' Delay before refreshing an image in the cache. (By default 30 day)
Property WMSProjection As String '' Set the projection used by the WMS server.
Property Opacity As Float
Property Header As String[] Use $aHeader
Private $aStack As New String[]
Private $aClients As New HttpClient[]
Private $iClientCount As Integer = 4
@ -369,7 +370,7 @@ Public Sub tmrGet_Timer()
hClient.Url = sUrl
'Print surl
hClient.Tag = sFile
hClient.Get(Null, $sCachePath &/ sFile)
hClient.Get($aHeader, $sCachePath &/ sFile)
Loop
End