OK...  I figured out that is was a "setPath(myArray)" vs "set('path',
myArray)" BUG in google.maps.Polyline.


Even though Polyline is a MVCObject and it doesn't have a real 'path'
property... because "google.maps.Polyline.prototype.setPath ()"
doesn't call 'google.maps.MVCObject.set('path', myArray)'.   So my
"google.maps.event.addListener(poly, 'path_changed', function()
{ ...}" get triggered.

My kluge (poor fix)  is to add

   google.maps.event.addListener(poly, 'path_changed', function() {
      alert("FIX: set('path', value) and setPath(value) has
changed.");
      // poly.setPath(poly.get('path'));
   });
   poly.set('path',path1);

It is a poor fix because the polyline can get really big.... and two
copies makes it worst.
A better fix would be to manually trigger an event.

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