Open GoogleCodeExporter opened 8 years ago
The gemf stuff has no name chacking in it so if you have multiple overlapping
files then you just get tiles from the first one. It's a similar sort of
problem to the MBTilesFileArchive. I have code for the gemf stuff that has the
nessasary name checking added in but if I remember there were minor changes
needed in the interface to the rest of the system.
Original comment by iforpow...@gmail.com
on 4 Jan 2013 at 10:56
For offline formats that don't have in them the name of tile source and the
code does not search for it, an idea in order to pick the right one would be to
have their file name same as the tile source name. And then the code searches
for offline formats with file name same with tile source name?
Original comment by devemu...@gmail.com
on 5 Jan 2013 at 8:28
I had the same requirement and I have fixed it by adding some metadata to the
archives and tweaking MBTilesFileArchive.
Specifically I have added an entry 'tilesource' with the tile source name into
the metadata table, as well as 'minzoom' and 'maxzoom'.
The changed MBTilesFileArchive will only deliver tiles if the tilesource
matches and the zoom level falls within minzoom and maxzoom (this enhances the
performance drstically if you provide large archives or mulitple archives for
the same tile source - you could do the same using bounds).
Apparently this only works if you have some control over the archives used,
i.e. you are able to add the metadata.
See attahced patch.
Original comment by osei...@gmail.com
on 11 Jul 2013 at 2:35
Attachments:
Original issue reported on code.google.com by
devemu...@gmail.com
on 4 Jan 2013 at 10:00