谷歌地图未定义错误
我有这个错误: 未捕获的类型错误:无法读取未定义的属性“Geocoder”
从此页面: http://comehike.com/draggable_marker.php
从这行代码: var geocoder = new google.maps.Geocoder();
知道为什么会发生这种情况吗?
I have this error:
Uncaught TypeError: Cannot read property 'Geocoder' of undefined
From this page:
http://comehike.com/draggable_marker.php
from this line of code:
var geocoder = new google.maps.Geocoder();
Any idea why this is happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我加载页面时,我在 Chrome 或 Firefox 中都没有收到地理编码器错误。相反,我收到一条错误,指出在 Draggable_marker.php 的第 108 行中未定义初始化。看起来你在第 108 行初始化后缺少大括号。
也许
应该是
When I loaded the page I did not get the Geocoder error in either Chrome or Firefox. Instead I got an error stating that in line 108 of draggable_marker.php that initialize was not defined. It looks like you are missing the braces after initialize in line 108.
Perhaps
should be