This seems to be a limitation of polylines in general and shows up in a big way on the original iPhone and the iPhone 3G as they have slower processors. As far as I can determine, the delay is in the browser drawing the lines as the javascript processing seems to be complete. So far I haven't found a good way to react to this. The more polylines you draw at a time, the bigger the delay.
Chad Killingsworth On May 11, 11:44 am, Nick Smith <[email protected]> wrote: > Hi, > > I'm using v3 on an iPhone, so map loading can be pretty slow, and I'd > like to give a visual indication of busy/working to the user until > everything has finished. > > Is there a way to determine when the directions polyline has finished > rendering (and associated map zoom, re-centering, etc)? i.e., > directionsService.route() callback is called, I call > directionsDisplay.setDirections() and then things can chug along for > up to 10 seconds before the rendering is complete. > > I tried using the 'idle' event, but it is fired soon after > setDirections() is called, but well before the polyline appears and > the map is re-positioned. I thought about using the tilesloaded event, > but that might not fire if no new map tiles were needed? > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" 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 > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
