views:

135

answers:

0

I have extended GOverlay so that it draws small rectangular div at a specified location. But how to make it draggable using Maps API V2?

First I tried to just listen the mousedown/up/move DOM events of the div itself. While I got this mostly working, I thought that there has to be a simpler way of doing that.

I tried listening the "drag" event of the map itself, which didn't work as I expected.

I also found GDraggableObject, which seemed like something to use exactly for that, but I didn't understand how to really use it.

Any suggestions?