Bug 462371

Summary: Proxy settings are ignored with OpenStreetMap
Product: [Applications] marble Reporter: Patrick <patrix87>
Component: generalAssignee: marble-bugs
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 22.11.80   
Target Milestone: ---   
Platform: Ubuntu   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick 2022-11-28 22:29:38 UTC
SUMMARY

When using OpenStreetMap the Proxy settings will be ignored completely.

The only way to change the map server address is to edit : /usr/share/marble/data/maps/earth/openstreetmap/openstreetmap.dgml
or on windows: 
C:\Program Files\Skydel\data\maps\earth\openstreetmap\openstreetmap.dgml

And replace : 
<downloadUrl protocol="https" host="a.tile.openstreetmap.org" path="/"/>
<downloadUrl protocol="https" host="b.tile.openstreetmap.org" path="/"/>
<downloadUrl protocol="https" host="c.tile.openstreetmap.org" path="/"/>

With : 
<downloadUrl protocol="http" host="127.0.0.1" path="/tile/"/>

The whole process is documented here : https://github.com/SkydelSolutions/openstreetmap-tile-server/blob/master/Deployment.md

STEPS TO REPRODUCE
1. Deploy OSM as a docker following instructions on https://github.com/SkydelSolutions/openstreetmap-tile-server/blob/master/Deployment.md
2. Open Marble and edit the proxy settings to use your local map server.
3. It won't change anything, you can validate that by using wireshark to look at the packages and API calls.
4. Edit the openstreetmap.dgml as described above and reopen marble.
5. It should work fine.
6. Open Marble and edit the proxy settings to anything you want.
7. It will still work as it ignores those values with OpenStreetMap.

OBSERVED RESULT
Will not use the configured proxy / map server

EXPECTED RESULT
Should use the configured proxy / map server

SOFTWARE/OS VERSIONS
Windows: 10 22h2
Linux/KDE Plasma: Ubuntu 18.04 and 22.04.01

ADDITIONAL INFORMATION
I'm not sure if this is the intended use of the proxy configuration, but please tell me if you find a simpler or better way to get a dedicated map server to work with openstreetmap in Marble.
Thanks