Hi Guys

I'm struggling with a Map problem and wondering if I could get some
help or advice.
I'm building a site in PHP for a client which tracks member steps
recorded by pedometer, and then places a marker for that member along
a path on a google map, representing how far they've "run".

What I've done is taken the map, and used GDirections to create a
route along which the member is supposed to be running. Now the
GDirections limit is 25 waypoints, so I'm using multiple GDirections
objects to hold the roughly 100 points in the route, as well as other
GDirections objects to make "baby" routes to connect the bigger routes
together.
I'm hiding all the resulting markers, and just have two PNG files for
"Start" and "End" of the route. I'm using Mike's epoly2 library at
http://econym.org.uk/gmap/epoly2.htm to calculate distances along the
route at which point I want a marker for the selected member to pop up
once the map has loaded.
Now, I have this all working fine in Firefox, and there are no jave
script errors I can find in IE, Chrome or Firefox. But the markers
only appear in FF. In Chrome or IE they only pop up rarely when the
page loads.
There are a lot of markers, a lot of javascript, all generated by PHP.
I"m sure it's probably inefficient but of course time is against me. I
suspect the problem with Chrome/IE is something to do with timing -
because all of the GDirection event triggers fire asynchronously,
there's lots of code in there to work out which order they are
supposed to appear on the route and so on, and I suspect IE/Chrome are
tripping over themselves and when the time comes to show the marker
they cant.
Interestingly when I run Fiddler2 (the web debugging proxy from
http://fiddler2.com/fiddler2/) at the same time as browsing the map
page in IE, the marker pops up every time. I suspect the slow loading
of the page as a result of the debugger has something to do with it.
I was hoping someone out there would know something about the vagaries
of IE using complex or heavy maps and be able to offer some
suggestions? Is there a way to ask the maps api why it cant show a
marker when asked? I've put a cut-down HTML version of the map showing
issue at
http://www.10000stepschallenge.co.nz/problem.html
You'll see it works in FF but not IE/Chrome
There's a lot of PHP generated code in there but maybe someone will
spot an obvious problem?
Many thanks in advance :D

-- 
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.

Reply via email to