View Single Post
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#244
Originally Posted by dwaradzyn View Post
If server responds with 404 not found (or any other error) for non existing tiles CloudGPS handles it correctly.

But server can also serve a map filled with junk ('this tile does not exist, try zooming out') and CloudGPS will politely present it as a map to user. CloudGPS just does not care what the tile contents is as long as it is a valid image.

Well it would be quite tough to detect if an image is a valid part of one of many kind of maps available or satellite imagery or traffic or weather or whatever else. The problem is not really solvable in general case.

But for specific servers it is solvable - maybe some support for that will come in future. As a workaround for now you can try lowering maxZoom value in /opt/cloudgps/providers.ini to prevent going to some zoom level for given provider.
You are right, it is not reasonable to expect cloudgps to detect if a tile from the server is a 'no more zoom levels' tile.

However it is feasible to allow cloudgps to zoom +1 step more than the maximum zoom (as set in providers.ini) and to simply stretch the current tile.

This would allow us to 'zoom in' on the last tile, this would make thinks slightly easier when using maps with limited zoom features (stoppng at level 16 for example) in the car while driving.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.