Map with offline tiles doens't work without internet



  • Map {
            id: map
    
            anchors.fill: parent
            activeMapType: map.supportedMapTypes[1]
            minimumZoomLevel: 13
            maximumZoomLevel: 19
            zoomLevel: 17
            center: QtPositioning.coordinate(-0.007, 0.007)
            plugin: Plugin {
                name: "osm"
                PluginParameter {
                    name: "osm.mapping.offline.directory"
                    value: "tiles" //offline tiles folder
                }
            }
        }
    

    That gives me a nice working rectangular map(i made my tiles that way). But without network on my PC, after launching the app, my window goes fully grey and doens't show any tiles.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.