最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

asp.net - How to get latitude and longitude of center of google map - Stack Overflow

programmeradmin0浏览0评论

Please tell me how can i raise event just after user change his position in google map using dragging map and get the latitude and longitude of center of google map and the miles its showing from center. i have got lots of pages on google related to it.. but not able to solve this.. please give me solution (i am using asp and javascript)

Please tell me how can i raise event just after user change his position in google map using dragging map and get the latitude and longitude of center of google map and the miles its showing from center. i have got lots of pages on google related to it.. but not able to solve this.. please give me solution (i am using asp and javascript)

Share Improve this question asked Feb 8, 2010 at 11:59 Dr. Rajesh RolenDr. Rajesh Rolen 14.3k42 gold badges110 silver badges180 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 4

GEvent.addListener(map, "moveend", function() {
  var center = map.getCenter();
});

You can add moveend() or dragend() event (reference) and call getCenter() method to get the new map center Further resources to search for the links and code related to google map api is : http://groups.google./group/google-maps-api

发布评论

评论列表(0)

  1. 暂无评论