On Mar 30, 2:24 am, Rossko <[email protected]> wrote:
>
> I left it ticking over in FF2, there were 4 'pilots'.
>
> Eventually Firebug flagged an error in javascript, the API complaining
> about Nan - not a number.
Yes, this could happen in rare cases and was not catched so far -
thanks for the pointer. fixed
>
> I haven't looked at your code in great detail, but I think it adds a
> new 'track' polyline everytime it updates. You might want to consider
> removing the old one to prevent ever increasing resource consumption.
>
My code does remove old tracks if there are any (since tracks are half-
transparent you would notice otherwise that the track becomes more
opaque with each redraw)
> cheers, Ross K
I tried to debug it some more and I'm still clueless. It seems to have
something to do with having zoomed out very far. But It happens
sometimes even with only one aircraft shown right after start. But
other times I can have many aircraft on screen and all painting tracks
for hours without trouble. It seems rather random :(
I guess I will start from scratch after reading a few more tutorials,
sigh
I read about and encoded polyline, would that help?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---