Map drawn before all locations geocoded #2

rviscomi opened this Issue Oct 1, 2012 · 0 comments


None yet
1 participant

rviscomi commented Oct 1, 2012

The timedChunk utility function invokes a callback method when all items have been iterated over. The problem is that the process function that operates on each iteration may make its own asynchronous requests. So the async result may come back after the callback function is invoked.

In this case, the map is drawn before all locations are geocoded.

Do not rely on the callback function to draw the map. Keep track of the number of locations geocoded so far and invoke the map-drawing function when all locations have been processed.

rviscomi was assigned Oct 1, 2012

@rviscomi rviscomi added a commit that referenced this issue Oct 1, 2012

@rviscomi rviscomi issue #2 draw map after all geocodes
- geocode all locations before drawing map
- update to 1.0.2

rviscomi closed this Oct 1, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment