Wasn't it nicometro who wrote: > >Larry, if you see the source code you will see that there are a >constant increment to "lat" and "lng" variable. That defines a >imaginary line, right? That line is not represented on the map. > >But the gmarker never moves over that imaginary line. Gmarker moves >with shaking movements. Why???
Markers can only ever be plotted at locations that are integer numbers of pixels. Because your lat and lng increments are less than one pixel, the marker sometimes moves one pixel East and sometimes moves one pixel North, and sometimes doesn't move at all. This causes a slight jitter to the motion. If that's a problem for you, you might consider calculating the pixel location of your start and end points, performing your frame by frame movement calculations in integer pixels, then converting back to lat/lng to perform the marker.setLatLng(). -- Mike Williams http://econym.org.uk/gmap -- 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.
