You would use MVCObject bindings to accomplish this. The documentation
is a little bit loose, but:

1. Create your polylines from MVCArrays.
2. You'll need your own object which extends MVCObject and binds to
the Marker position.
2. When a position change occurs from the Marker, you'll update the
applicable point in each of the MVCArrays.

If you have never worked with MVCObjects directly, I recommend reading
the article: http://code.google.com/apis/maps/articles/mvcfun.html

Also, there are a few good examples in this group.

Chad Killingsworth

On Aug 23, 4:38 am, Gary Filkins <[email protected]> wrote:
> Hello ...
>
> I've got the crude beginnings of a map that places markers at 5
> different cities and then a 6th marker on a position based on the
> simple average of the other 5 geolocations.  The 6th marker is
> draggable and connects to the 5 other markers with polylines.  I'd
> like to have all 5 polylines act as 'rubber bands' when the 6th marker
> is moved so as to show the relationship and let users see how it
> impacts relative distances as the lines shrink and stretch to follow
> the moving marker.
>
> Essentially, I want to share the vertex that is the 6th marker among
> the city markers.  What has me stumped so far is how to address each
> polyline as a distinct entity for the purpose of updating that shared
> vertex and redrawing the lines dynamically.
>
> The map is here:  http://dl.dropbox.com/u/6625672/maps/MapCenter.htm
>
> I suspect I'm just not understanding how to place polylines themselves
> in an array that's addressable in a fashion similar to how I'm cycling
> through the locations.  Whichever is the case, any help or links to
> actual implementations would be great.  Thank you.

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