I've been looking at the differences between Polygons and Circle
overlays and how/when to use them.

One thing that came up in my experiments is that it is very easy to
bind a Circle overlay to a marker and then drag the marker to move the
circle, but I can't see a similar way to drag and move a Polygon.

Circle centre bound to marker position:
myCircle.bindTo('center', myMarker, 'position');

Does anyone know if there is a way to bind a property on the polygon
to the marker position that I'm overlooking?

I can see another way to make a Polygon draggable would be to set
click and drag-end events on the Polygon, work out the distance moved,
then use MVCArray getEach to add this distance to each point in the
Polygon, but wondering if there is a simpler/more elegant way.

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