Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Map drawn before all locations geocoded #2

Closed
rviscomi opened this Issue · 0 comments

1 participant

Rick Viscomi
Rick Viscomi
Owner

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.

Rick Viscomi rviscomi was assigned
Rick Viscomi rviscomi referenced this issue from a commit
Rick Viscomi issue #2 draw map after all geocodes
- geocode all locations before drawing map
- update to 1.0.2
7f155ba
Rick Viscomi 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.