CloudMade/Leaflet — Issue #443: Tiles are not loaded when I draw a line node to node.
Author: abusquets
Created: 2012-01-19 09:44:13+00:00
State: open

I have created a function that draws a line node by node. Each second it adds a new node.
After adding a new node, the function panTo is called so the map is centered on the last added node.

The issue appears when the pan is big enough and new tiles of the map are required.
Tiles aren't loaded until all nodes are added and the line is completely drawn.

Is there a way to load the tiles while the line is been drawn?

This [1] is a sample code.
This [2] is a sample image.

[1] http://jsfiddle.net/abusquets/uXwB3/1/
[2] http://img9.imageshack.us/img9/1706/leaflettiles.jpg