ksoto13

How to drag two seperate polygons at the same time?

Discussion created by ksoto13 on Mar 17, 2012
Latest reply on Mar 18, 2012 by stevel
If i have two square polygons drawn on a map as two separate graphics (non overlapping). I want to make it so that when a user holds down the mouse button on one of the squares and drags it around, the other square moves with the movement of the other square. When the user releases the mouse button, then the position of the two squares are essentially "translated" to wherever the user released the mouse button.

Ideally I would love some sample code as attaching handlers make sense to me, but to deal with updating the points to add which offset does not. I would love to see some sample code if possible.

Outcomes