Thanks William,

That is quite perceptive.

Albert

On Jul 23, 8:55 pm, William <[email protected]> wrote:
> On Jul 24, 3:10 am, Albert Sun <[email protected]> wrote:
>
> > Looking at the San Francisco map, zoom in once towards the Golden Gate
> > bridge. The path north of a certain point on the bridge disappears.
>
> your map has 3 versions of the marathon path:
> 1. the full points version,
> 2. the simplified version
> 3. the version derived from elevation locations
>
> on loading the path, the map first tries the full points version, and
> if less than 320 points, switches to the simplified version.
>
> Then it animates the path using the version derived from elevations.
>
> After animation the path remains the one derived from elevation
> locations, and it's this path that has the crossover.
>
> So as a workaround, I'd suggest retaining the original polyline path
> after animation:
>
> function animateLine(line, path) {
>   function animateStep() {
>     if (curr+stepsize >= path.length) {
>       line.setPath(originalPath);
>     }
>   }
>   var originalPath = line.getPath();
>
> }
>
> ...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to