Selecting another Map for GPS?

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, helmut, xnview

User avatar
Peter2
XnThusiast
Posts: 1334
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Selecting another Map for GPS?

Post by Peter2 »

Is it possible to select another map for GPS display, e.g. OpenStreetMap or Swisstopo or ...?
XnViewMP 1.6.5 German, XnConvert 1.99, Win 10
User avatar
xnview
Author of XnView
Posts: 43611
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Selecting another Map for GPS?

Post by xnview »

you can try gpsProvider=osm
Pierre.
User avatar
Peter2
XnThusiast
Posts: 1334
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Selecting another Map for GPS?

Post 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 ..
XnViewMP 1.6.5 German, XnConvert 1.99, Win 10
User avatar
xnview
Author of XnView
Posts: 43611
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Selecting another Map for GPS?

Post 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
Pierre.
User avatar
Peter2
XnThusiast
Posts: 1334
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Selecting another Map for GPS?

Post 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!
XnViewMP 1.6.5 German, XnConvert 1.99, Win 10
Sir_MacCoy
Posts: 8
Joined: Thu Jan 13, 2022 4:08 pm

Re: Selecting another Map for GPS?

Post 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 :)