Hey Andrew, THanks for your help till date! :)
I've fixed the timing issue, thanks to you :) However I'm unable to fix the empty info window issue. Regarding the additional marker, I've tried to locate and debug the issue, but may I know which line shows that it tries to load: http://fyp.no-ip.info/TrackingThruGoogleMaps/myAjax.jsp?townSelect="" ? Thanks! On Mar 13, 9:32 pm, Andrew Leach <[email protected]> wrote: > On Mar 13, 12:54 pm, bob <[email protected]> wrote: > > > The tooltip is supposed to show the text "I'm [name]", but it's not > > showing anything... > > I get a tooltip showing "Device: Owa22. Last speed: 0.6km/h" which is > what is added in function refreshMap(). > > I think it's not updated to an additional marker showing "I'm..." > because this > downloadhttp://fyp.no-ip.info/TrackingThruGoogleMaps/myAjax.jsp?townSelect="" > returns an empty result set. > > The problem with "map is null or not an object" is a timing issue. You > are using two google.setOnLoadCallbacks. You should only have one of > those: what currently *should* happen is that the second one > [refreshMap] is honoured, but when that happens, initialize isn't > executed and "map" is null. If the first one is honoured for some > reason, map is set but refreshMap isn't done. > > I don't know the internals of setOnLoadCallback. I'd suggest using > window.onload instead: > window.onload="initialize;refreshMap"; > > 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 -~----------~----~----~----~------~----~------~--~---
