Offline custom maps + GPX Viewer

Hello, after 10 years with Nokia 808 I finally migrated to Xperia III with Sailfish OS. Everything went smoothly and now I am happy user of new phone with interesting OS. On old phone I used a lot Sport Tracker application (mainly for bike trips) with Polar HRM. I have a lot saved routes (only locally - I didn’t upload results). Now I tried Kuri and it works almost like Sport Tracker, but I have some questions related to maps and GPX support.

  1. On old phone I used offline maps prepared by Mobile Atlas Creator (MOBAC) application. The big advantage of this app is that I can download (as simple image tiles) from custom source. I used as source mainly this map: (it is free fork of OSM) - because it has a good coverage of walking trails / bike tracks. Second good map which I used is It is possible with ANY native app available for Sailfish to download and use offline custom maps? I know that there is good application: OSM Scout Server (used with Kuri) - but I don’t know how can I replace maps downloaded by this application with my custom map. I also know that for it is dedicated Android app - but it is not a perfect solution to run Kuri and application simultaneously…

  2. Second thing is to migrate old saved activities from Sports Tracker to my new phone (locally). Unfortunately Kuri doesn’t recognize GPX files exported from Sports Tracker (which is strange, I thought that GPX files are unified - it is, after all, simple XML - GPX versions of Kuri/Sports Tracker are the same version=“1.1”). I found also Mæp application - which can open these GPX files, but it shows only basic info (no graphs, no HR pulse, etc.). Do you know if there is ANY native Sailfish app which can open GPX files with all saved details? I found one fantastic application which can be used also with custom maps: GPXSee - it is QT app, and somebody long time ago ported it for Maemo, but I cannot find for Sailfish OS… There is of course Andorid version of this app, but it not works, crashes at start. Rest popular Android applications - doesn’t work - because “you don’t have Google Services”). So I stuck and wrote this post :slight_smile:

If you have any ideas how to deal in Sailfish OS with custom maps and GPX files I will be very grateful.


  1. Xperia III?
  2. I’ve tried Kuri in the past but it doesn’t seem available for my 64bit device and overall I found OSM Scout to be the best for tracking. You can import and export gpx and download offline maps at country level.
1 Like

You may try OSM Scout :slight_smile: It is standalone app, don’t mix with OSM Scout server that provides maps to other apps over local http.

1 Like

Its possible to load GPX data into Pure Maps!

1 Like

Everything is possible, just depends on whether you are prepared to work for it :slight_smile: .

  1. One simple option would be to download tiles into some folder and serve them using python -m http.server 8000. Then you would need a client app that would be able to display it. Pure Maps can easily be extended by custom map providers, including a local ones. See docs and config files in that directory for example. OpenSlopeMap is one of the examples of raster tiles. To import it to Kuri, you would probably need to check its source and replace URL that it is using to load maps. It may require writing some simple Mapbox map style to go with it and serve that from the folder with tiles. While sounds complicated, it is not. See for style generation example. Mapbox docs are also great source for info: Add a raster tile source | Mapbox GL JS | Mapbox and Sources | Style Specification | Mapbox GL JS | Mapbox

Note that I haven’t added ability to serve some extra map tiles using OSM Scout Server. In principle, it would require additional code but, if there is a lot of interest, we can work on it. Ideally, interested users would have to open an issue and try to implement it. I’ll be happy to give pointers on where the changes are needed.

If you want to compromise on being offline and if / have their tiles available, it is trivial to add those providers directly to Pure Maps. That would involve some caching for occasional offline use, but you would require online access mostly during hiking.

  1. Why Kuri doesn’t load your GPX files I don’t know. Is there some kind of error during import? My experience with Kuri is limited and I don’t know how it loads the data.

Side note: Pure Maps, while can load GPX files for routing, is not designed for tracking and handling GPX tracks. I believe that Pure Maps has already a lot of functionality and a dedicated sports / tracking app makes way more sense than to try to squeeze it in there. In this respect, Kuri make more sense to use for it. OSM Scout by @karry maybe good as well for it, I just don’t know how well it is supported.


Thank you all for replies. In meantime I did more tests with tracking apps (Kuri / Laufhelden / OSM Scout).

Lets start from GPX files:

  • Indeed OSM Scout can import GPX files from my old Nokia Sports Tracker (and from Kuri/Laufhelden also, so I suppose from most of the tracking apps) without any errors, that is good, but… the bad thing is that during import application removes heart rate statistics (pulse bpm)…

  • I don’t know why, but all files (imported and created directly by OSM Scout) doesn’t show the route on map - when I click “show” in track details - map center on the area of saved track, but shows nothing (no color of the track - even if I try change this color) - it is a bug or I missed something? @karry - this is a question for you when you have a moment if you can check this “bug” and check this point about Heart Rate import from GPX files…

  • Import GPX to Kuri/Laufhelden also solved… I checked this thread, and funny thing that one additional line in GPX broke the import in the app, after deleting it, import was successful (import to Kuri/Laufhelden = copy/paste GPX file to application directory, there is no import option in application like in OSM Scout).

Now about the maps… This topic is harder than I thought…
Lets forget for a while about offline maps (which I asked in first post).

  • If I understood correctly the easiest way to add additional custom (simple image tiles) maps is add them to Pure Maps. Unfortunately as mentioned Pure Maps application is not dedicated to hiking/cycling - so it will not help me - because I will not use this app as main tracking app. It is good app for example for car navigation.

  • So my another question is there easy way to add online maps (tiles server name) to any application that shows map in Sailfish OS? For example in MOBAC or GPXSee (which I mentioned in first post) I had to only create custom XML file and put it in the application directory, example from MOBAC:

<?xml version="1.0" encoding="UTF-8"?>
   <serverParts>m1 m2 m3</serverParts>

or in GPXSee (I created this based on another official examples):

<?xml version="1.0" encoding="UTF-8"?>
<map xmlns="">
  • Point about adding extra maps to OSM Scout Server it is also interesting @rinigus. I can help of course with this topic if it is possible, because I saw your answer on github - you wrote: “I don’t plan to include tile caching into OSM Scout Server as it is written to work with the data that it has (search and routing) which is impossible when using just tiles.” - and these XML files are only tiles (?)…

BTW. OSM Scout has built in Open Cycle Map (offline), and I can use this as substitute of for example If the application has also Heart Rate Monitor option implemented like Kuri/Laufhelden - then I could use only OSM Scout :slight_smile:


Hi, regarding OSM Scout

Can you link here schema of gpx extension for pulse monitor please? I will create ticket on Github and implement it in future possibly.

Gpx tracks are rendered by offline map renderer. It needs to be initialized. Did you have downloaded at least some offline database? Did you have offline rendering enabled in map settings?

Of course, I had this usecase in mind. I just don’t include multiple providers by default, because its licenses don’t allow it usually. But you can add any (raster) tile server manually to /usr/share/harbour-osmscout/resources/online-tile-providers.json and restart OSM Scout then. Just add another json object to the list:

    "id": "mapycz",
    "name": "",
    "servers": [
    "maximumZoomLevel": 19, 
    "copyright": "©, OpenStreetMap contributors and others"

If OSM Scout looks good functionality wise, then go with it. For Kuri, you would have to start adjusting its code in settings and maybe something else. I am not familiar with the internals of Kuri - just assuming it is not too complicated to point towards some other online server.

Re OSM Scout Server and caching: This type of request comes once in a while. Its surely not a priority, as I have hands full with many other aspects of the server.

Note that the vector tile import will be changed soon and maybe there will be more data shown or available in tiles. Let’s see whether someone will want to work on map styles targeting hiking requirements better.

1 Like

Thank you very much @karry!

You were right, I downloaded offline maps, and now everything works as expected (route is visible on the map).
The great thing (thank you for hint about file where I can add maps) is that I can see this route on added maps ( and - this is great, and I can use your app without additional android applications!

So the last thing is this pulse in GPX (imported), because I think that adding pulse monitor via bluetooth device to your app is not in your “to do list” :slight_smile:

What I see in the created files:

GPX from Kuri/Laufhelden uses “TrackPointExtension” if I see correctly:

<gpx xmlns="" xsi:schemaLocation="" version="1.1" Creator="Laufhelden" xmlns:xsi="" xmlns:gpxtpx="">
            <trkpt lat="50.4237992" lon="19.27443156">

GPX from Sports Tracker (I see that also TrackPointExtension is used, but the XML is in general more “dirty”):

<gpx xmlns="" version="1.1" creator="Sports Tracker" xmlns:xsi=""  xsi:schemaLocation=""  xmlns:gpxtpx=""  xmlns:gpxx="">
<trkpt lat="50.070905" lon="18.420838">
<desc>Speed 13.2 km/h Distance 0.01 km</desc>

If you need more data (or help) let me know.

@rinigus thank you for answer and for all your suggestions, for now your applications (offline maps + Pure Maps) are very helpful when I want to do quick search something on the map (without Internet access) :slight_smile: