<div dir="ltr"><div dir="ltr"><div dir="ltr">I thought that way and even did so, but wasnt as aesthetical as i wished it to be, and wasnt comply with the default interface from HttpClient as you asked.<br><br>But we cant have everything as we wish, right? At least it works :-D<br><br>I'll submit it soon.<br><br>Thanks again Benoît.<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em ter, 12 de fev de 2019 às 12:52, Benoît Minisini <<a href="mailto:g4mba5@gmail.com">g4mba5@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le 12/02/2019 à 15:21, gen braga a écrit :<br>
> Things become easier with example code :-D<br>
> <br>
> Attached modified sources only, from gb.map . Everything else from Git.<br>
> <br>
> Problem is in MapView.class, line 19:<br>
> <br>
> Property Read Proxy1 As Proxy<br>
> <br>
> should be something like:<br>
> <br>
> Property Read Proxy As _Proxy<br>
> <br>
> but I get an override error...<br>
> <br>
> Gen.<br>
> <br>
<br>
Ha, sorry I forgot the Proxy property inherited from UserControl...<br>
<br>
I suggest you add the Proxy property to the Map class instead. Something <br>
like that:<br>
<br>
--8<--------------------------------------------------<br>
<br>
' Map.class<br>
<br>
Public _Proxy as _MapProxy<br>
<br>
Property Read Proxy As _MapProxy<br>
<br>
Private Sub Proxy_Read() as _MapProxy<br>
<br>
   If Not _Proxy Yhen _Proxy = New _MapProxy<br>
   Return _Proxy<br>
<br>
End<br>
<br>
' _MapProxy.class<br>
<br>
Public Auth As Integer<br>
Public Host As String<br>
Public Password As String<br>
Public Type As Integer<br>
Public User As String<br>
<br>
' _MapLayer.class<br>
<br>
Public Sub _new(Optional CacheName As String)<br>
<br>
   ...<br>
<br>
   For I = 0 To $aClients.Max<br>
     hClient = New HttpClient As "Client"<br>
     ...<br>
     With GetMap()<br>
       If ._Proxy Then<br>
         hClient.Proxy.Auth = ._Proxy.Auth<br>
         hClient.Proxy.Host = ._Proxy.Host<br>
         ' ... and so on<br>
      Endif<br>
   Next<br>
<br>
End<br>
<br>
--8<--------------------------------------------------<br>
<br>
@Fabien: why do _get() and _next() return Object instead of _MapLayer?<br>
<br>
-- <br>
Benoît Minisini<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>