【发布时间】:2010-10-15 08:52:01
【问题描述】:
如何使用 Google Maps API v3 获取客户端位置?我尝试了以下代码,但不断收到“google.loader.ClientLocation 为空或不是对象”错误。任何想法为什么??
if (google.loader.ClientLocation) {
alert(google.loader.ClientLocation.latitude+" "+google.loader.ClientLocation.longitude);
}
谢谢
【问题讨论】: