Making Google Maps overlay draggable
Posted
by Rene Saarsoo
on Stack Overflow
See other posts from Stack Overflow
or by Rene Saarsoo
Published on 2010-04-20T10:25:31Z
Indexed on
2010/04/20
10:33 UTC
Read the original article
Hit count: 217
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?
© Stack Overflow or respective owner