Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Map drawn before all locations geocoded #2

rviscomi opened this Issue · 0 comments

1 participant


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 rviscomi was assigned
@rviscomi rviscomi referenced this issue from a commit
@rviscomi issue #2 draw map after all geocodes
- geocode all locations before drawing map
- update to 1.0.2
@rviscomi rviscomi closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.