如何获取谷歌地图中心的经纬度 [英] How to get latitude and longitude of center of google map

查看:87
本文介绍了如何获取谷歌地图中心的经纬度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告诉我,如何在用户在Google地图上使用拖动地图更改自己的位置后立即举办活动,并获取Google地图中心的经度和纬度以及从中心显示的里程。我有很多关于谷歌相关的网页..但是不能解决这个问题..请给我解决方案(我使用的是asp.net和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.net and javascript)

推荐答案



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

这篇关于如何获取谷歌地图中心的经纬度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆