nextgis / quickmapservices

QGIS plugin to find and add map services to a project in one click
http://plugins.qgis.org/plugins/quick_map_services/
GNU General Public License v2.0
170 stars 49 forks source link

Local tiles support #165

Open chantrychantry opened 6 years ago

chantrychantry commented 6 years ago

On previous installations of QMS, metadata.ini files could be modified to load local map tiles. The newer updates since QGIS 3.0 has been released have broken this functionality. While this solution was a workaround (local tiles support SHOULD be a part of QMS), it is now broken.

simgislab commented 6 years ago

local tiles? we didn't even know it worked at all, never tried this.

Adding examples here of what did work and and not anymore would help. But we won't garantee quick solution.

chantrychantry commented 6 years ago

The tiles were named in a fashion similar to Bing tiles, as seen here.

So, I have a directory full of tiles with names like 010203010.png (as an exmaple).

To make these tiles work with QMS, I would duplicate the Bing service to create a user service. I would then modify the metadata.ini file, changing the url from bing to the local address where my tiles were stored, (e.g. C:\Tiles{q}.png)

After the recent updates to QMS, this no longer works. The tiles do not load, nor do they show an error message indicating that the tiles failed to load.

simgislab commented 6 years ago

this is some easter egg kind of use we had no idea existed :)

first try switching from native provider to QMS one, under QMS Settings/Tiles etc. and try again

simgislab commented 6 years ago

... though it won't work in QGIS 3

chantrychantry commented 6 years ago

Switching off the native renderer did the trick! Any insight as to why the native renderer doesn't allow the tiles to show up? And are there any plans to incorporate the ability to load local tiles in future QMS releases?

simgislab commented 6 years ago

Did you end up trying in 2.x?

Native renderer is faster (somewhat), but limited, needs work to cover such rare cases too.

Local tiles support would be a nice feature.