拖放一个标注点后,怎样得到当前标注点的坐标?

0 views
Skip to first unread message

miya tang

unread,
Dec 16, 2009, 8:06:50 AM12/16/09
to Google-Map...@googlegroups.com
http://code.google.com/intl/zh-CN/apis/maps/documentation/examples/marker-drag.html

在此示例中,我要怎样获得拖放后点的坐标?

        GEvent.addListener(marker, "dragend", function() {
         
          marker.openInfoWindowHtml("当前坐标:"+marker.latlng.lat);
        });

上面代码中,它并不认 marker.latlng.



秦志坚

unread,
Dec 20, 2009, 8:51:19 AM12/20/09
to google-map...@googlegroups.com
marker.getLatLng()

2009/12/16 miya tang <miya...@gmail.com>



--
您收到此信息是由于您订阅了 Google 论坛“谷歌地图 API 中文论坛”论坛。
要在此论坛发帖,请发电子邮件到 Google-Map...@googlegroups.com
要退订此论坛,请发邮件至 Google-Maps-API-...@googlegroups.com
更多选项,请通过 http://groups.google.com/group/Google-Maps-API-China?hl=zh-CN 访问该论坛
什么是Google地图API? 请通过 http://code.google.com/intl/zh-CN/apis/maps/index.html 免费将 Google 地图嵌入自己的网页中



--
Best Regards
Daniel Qin 
Reply all
Reply to author
Forward
0 new messages