In Google Maps V3, how can I get a draggable marker to pan the map?

后端 未结 4 1162
情歌与酒
情歌与酒 2021-02-04 06:20

I have found several V2 examples of how to pan the map while a marker is being dragged. For example: http://www.putyourlightson.net/projects/coordinates

    //         


        
4条回答
  •  情书的邮戳
    2021-02-04 06:38

    Google has fixed this: http://code.google.com/p/gmaps-api-issues/issues/detail?id=2404

    You can see the fix in action at http://www.publicgloucester.com/test2.html. Ignore the comment that says "it doesn't do what I want"; that comment is obsolete.

提交回复
热议问题