Page 1 of 1

Selecting another Map for GPS?

Posted: Mon Feb 26, 2024 10:30 am
by Peter2
Is it possible to select another map for GPS display, e.g. OpenStreetMap or Swisstopo or ...?

Re: Selecting another Map for GPS?

Posted: Mon Feb 26, 2024 4:48 pm
by xnview
you can try gpsProvider=osm

Re: Selecting another Map for GPS?

Posted: Mon Feb 26, 2024 5:16 pm
by Peter2
Thanks

I added to the file
%AppData%\Roaming\XnViewMP\xnview.ini

in section
[%General]

the line
gpsProvider=osm

and now it uses OpenStreetMap as background, but with a watermark "API Key required".

I think there are many other possibilities, because "the longer the more" governments are opening their data for free, common access.

Switzerland:
https://www.swisstopo.admin.ch/en/web-m ... ss-map-web

Austria:
https://maps.bev.gv.at/?trk=public_post ... /zoom/10.8

Baden-Württemberg:
https://www.lgl-bw.de/Produkte/Open-Data/

and so on ..

Re: Selecting another Map for GPS?

Posted: Tue Feb 27, 2024 7:46 am
by xnview
Peter2 wrote: Mon Feb 26, 2024 5:16 pm and now it uses OpenStreetMap as background, but with a watermark "API Key required".
yes a known issue

Re: Selecting another Map for GPS?

Posted: Tue Feb 27, 2024 7:09 pm
by Peter2
Will you consider the possibility of integration of different map-sources (as mentioned above) or different WMS-Services?
This could be a great improvement!

Re: Selecting another Map for GPS?

Posted: Wed Apr 03, 2024 5:30 pm
by Sir_MacCoy
Is it possible to use an url instead of just typing "osm"?

My guess is, that you can get an API-key for OSM on their website.
If you have this key, then, if it is posibble in XnView, and paste that url, you should see the map without the watermark Api Key Required.

I have an API-key for OpenCycleMap. I've pasted it instead of "osm" but it reverts back to Google.
Is it possible, that I can use an url instead?

Here is an example how it looks:

https:// tile.thunderforest.com/cycle/{z}/{x}/{y}@2x.png?apikey=xxxxxxx

You would make me, and I guess some other users, very happy. :D

Edit:

I just took a look on the website of Thunderforest.
You can get your own API-key there if you want, and if you choose "Atlas" as view, you get the same result as in XnView.
Here is the an example: https://www.thunderforest.com/maps/atlas/preview/

So, In XnView the url should look like this: https:// tile.thunderforest.com/atlas/{z}/{x}/{y}@2x.png?apikey=xxxxxxx

Now it just depends on the developer to implement the use of an url, and you're good to go :)