View Single Post
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#244
Originally Posted by jdrescher View Post
Hello guys,

I am currently developing a sport tracker app for SFOS.
I would like to use OSM Scout Server for providing map informations but unfortunately it does not work.

This is what I tried:
Code:
Map {
        id: map       
        plugin: Plugin 
        {
            name: "osm"
            PluginParameter
            {
                name: "useragent"
                value: "Laufhelden/0.0.1 (Sailfish)"                
            }
            PluginParameter { name: "osm.mapping.host"; value: "http://localhost:8553/v1/tile/" }
        }
        }
...
The map from the server seems not to be found and instead is trying to use WIFI connection to download the map.

The server is running nicely and works with modRana and Poor Maps.
Nice to see it used in map-related applications and I can only hope that it would spread .

I presume that you have OSM Scout Server running on the background while using the tracker app, right?

From the look of it, you are using QML Map type. I don't have experience with it, unfortunately. Maybe @otsaloma can help, or reading his Poor Maps code which seems to be using the same plugin. From reading Poor Maps MapPlugin, it looks like @otsaloma is using own server that probably re-routes requests further. Notice that URL syntax seems to be different. But again, I never used it in QML myself, others are much more qualified to help you out.

On the server side, you could check out whether it is accessed. For that, in server settings, enable "Log info messages". Then, while accessing the map in your application, check whether requests arrive to the server (they should be shown in the main window under Events.

If it turns out that Map prefers some other URL scheme than the one used in the server currently, we can add some simplified URL scheme under

http://localhost:8553/v1/tile_simple/

or something similar. That's very easy.
 

The Following 3 Users Say Thank You to rinigus For This Useful Post: