Qt: Increase resolution of map

132 Views Asked by At

I have a map whose visibleRegion I set to a given georectangle, but the resulting render has a terrible resolution. As I understand it, the map loads the tiles from a lower zoomLevel and scales it up to fit the visibleRegion, instead of loading tiles from a higher zoomLevel and scaling it down. Is there a way of changing this behavior?

The plugin I use is

Plugin { name: "osm" }

Map with terrible resolution

1

There are 1 best solutions below

0
On

Probably you don't have internet connection; therefore, qt fails to download the area. So, what you are looking for is probably an offline map. The link has an example project, it basically uses this plugin.

plugin: Plugin {
    name: 'osm'
    PluginParameter {
        name: 'osm.mapping.offline.directory'
        value: "path/to/your/directory"
    }
}

What you needed to do is downloading the tiles beforehand and giving their directory path to the value parameter.