One problem is here: var intermediateIndex = Math.round(tmpThis.direction.getPolyline().getVertexCount() / 100); for (var n = 0 ; n < tmpThis.direction.getPolyline().getVertexCount()-intermediateIndex ; n+= intermediateIndex )
In situations where there are less than 50 vertices on the route polygon, you round intermediateIndex down to zero. So you're effectively doing: for (var n=0; n<32; n+=0) and it takes an infinite number of iterations before that loop completes. There may well be other things going on, but I think you might be doing something weird with the error handling that my debugger doesn't like. -- http://econym.org.uk/gmap The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
