On Oct 16, 4:29 pm, Tane Piper <[EMAIL PROTECTED]>
wrote:
> I've tested this by doing:
>
> $('#map1').jmap('init', function(){
> ...When I said "Is the error because you attempt a GDirections call on map1 before it's properly initialized?" I meant that it hadn't been centred. You had two "init" events; the first did the directions call, the second centred the map. I don't know JQuery, but it seems reasonable that two identical event handlers will be triggered in the order they are defined. The timeout should fix that, I suppose, provided that JQuery doesn't do odd things handling the state of the map. Frankly I'd not use JQuery. Or, I'd definitely get a *simple* page working first before complicating it with other maps, Streetview and the like. What happens if you have *one* map and textual div, and *one* init handler? Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
