gluonhq / maps

https://gluonhq.com/labs/maps/
GNU General Public License v3.0
140 stars 36 forks source link

flyTo may require too many tiles #22

Open jperedadnr opened 6 years ago

jperedadnr commented 6 years ago

The current implementation requires too many tiles if current zoom level is too high (15+) and the travel distance is too long, as it travels all the way at that zoom level, forcing the download of many tiles along the way.

On desktop, without previous cache, this means maybe more than 1000+ tiles. And it causes a long blank screen until all the tiles are processed and downloaded.

It seems that this high number of tiles is from the origin.

A new method that sets a minimum zoom level for the travel can be set.

abauske commented 6 years ago

I noticed this same effect even when scrolling in and out or dragging the map around. It loads many unnecessary tiles and thus delays loading of "important" tiles