admin管理员组

文章数量:1023109

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

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

本文标签: aspnetHow to get latitude and longitude of center of google mapStack Overflow