dcaliste / maep-qt

A map viewer for Jolla Sailfish OS
29 stars 14 forks source link

Adding other maps #32

Open sbridger opened 5 years ago

sbridger commented 5 years ago

Hi, Thanks for writing this! Looks like you are still active with it. I am using XA2, just getting

I want to add NZ topomaps. Where do I start? What is required?

Also:

dcaliste commented 4 years ago

Currently maps are hardcoded… You need an URL that is providing tiles when coordinates are given. There are currently different "formats" like the one used by Google maps or the one used by OpenStreetMap. Then it's easy to add it in the code.

To cache and preload, there is currently no function to do this for an area. Since we're using free access on tile servers, I'm not sure that they will allow this kind of large download if I make this easy in the app. My approach is a bit more pragmatic on this: since I'm going to use the map for car travel or hiking, I check the circuit "by hand" (i.e. by viewing it at the right zoom level, or at one or two other zoom level) before leaving. So like that it is automatically cached and I have a correct overview of the trip in advance.

sbridger commented 4 years ago

My winphone app keeps all tiles it has ever used on the sdcard. I also allows you to select an area (zoomed out) and it will get all tiles of all zoom levels for that area.

I will see what I can find about the topomap server, I have spoken to the author before.