On Thu, Jul 22, 2010 at 3:35 PM, William <william.g...@gmail.com> wrote: > On Jul 22, 12:39 am, Nianwei Liu <nian...@gmail.com> wrote: >> This one is a bindTo Solution. >> >> http://gmaps-utility-gis.googlecode.com/svn/trunk/v3test/mvc/poly_bin... >> > > one small clarification, I guess you don't need to set the position of > the marker on construction because position is bound to the MVCArray: > > var marker = new google.maps.Marker({ > // position: event.latLng, <--- can we remove this line??
Yes, that line has no effect. The subsequent marker.bindTo(...) clobbers it. > title: '#' + len, > map: map, > draggable : true > }); > marker.bindTo('position', poly.binder, (len-1).toString()); > > ... > > -- > 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 google-maps-js-api...@googlegroups.com. > To unsubscribe from this group, send email to > google-maps-js-api-v3+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- 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 google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.