Forum > Packages and Libraries

LazMapViewer : Problem downloading background map images

(1/2) > >>

folkeu08:
Hi,
At my home, the download works fine.
At my work: IT specialists block most ports and services to avoid intrusions, which prevents the downloading of base maps.
This is the problem!
I tried another identical component at the development stage and with this one, at my work, the download works well despite the blockages.
It is this component: https://github.com/Fr0sT-Brutal/Delphi_OSMMap
By leaving the default choice at "System default" in the 'proxy' panel, the card bases are loaded.
Is it possible for you to postpone this dialog mode so that I can use your component in the software that I write for my work.
Thanks
Fran├žois

wp:
You mean you want to change the proxy settings for the downloads?

Seems that you are on Windows since you mention Delphi. Well, for Windows the relatively new native download engine is used by default, but proxy parameters are not yet implemented here. But you can drop a TMVDEFPC on the form and connect it to the DownloadEngine property of the MapView - this is the httpclient which comes with FPC. Or you can drop the Synapse Download engine (Requires installation of the lazmapviewer_synapse package). Both have properties to setup the proxy:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---  TMVDEFPC = class(TMvCustomDownloadEngine)  ...  {$IF FPC_FullVersion >= 30101}  published    property UseProxy: Boolean read FUseProxy write FUseProxy default false;    property ProxyHost: String read FProxyHost write FProxyHost;    property ProxyPort: Word read FProxyPort write FProxyPort;    property ProxyUsername: String read FProxyUserName write FProxyUserName;    property ProxyPassword: String read FProxyPassword write FProxyPassword;  {$IFEND}  end;   TMvDESynapse = class(TMvCustomDownloadEngine)  ...  published    property UseProxy: Boolean read FUseProxy write FUseProxy default false;    property ProxyHost: string read FProxyHost write FProxyHost;    property ProxyPort: Integer read FProxyPort write FProxyPort default 0;    property ProxyUsername: string read FProxyUsername write FProxyUsername;    property ProxyPassword: string read FProxyPassword write FProxyPassword;  end;
Note however that it is necessary to have the OpenSSL dlls in the correct bitness on the system

folkeu08:
Hi,
I think that I should not have the openssl libraries on my work PC.
I'll try tomorrow.
Thanks for this idea.
Fran├žois

wp:
It's enough when you have the dlls in the exe directory of your application, and you must have write permission there because otherwise you would not be able to compile.

folkeu08:
This is definitely not a dll problem because I tested with the 2 types of dll for 3 and 64 bits for Windows. It still doesn't work in both cases.
Why then with LazMapViewer, the map images are not downloaded and with OSM MapControl (https://github.com/Fr0sT-Brutal/Delphi_OSMMap) installed under Lazarus, the download is done?
IT will not open new ports so is it possible to postpone the download mode of OSM MapControl to LazMapViewer ?
Thanks

Navigation

[0] Message Index

[#] Next page

Go to full version