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

Please tell me how can i raise event just after user change his position in google map using dragging m

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745499912a4630366.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信