【发布时间】:2016-02-18 21:59:32
【问题描述】:
我正在使用 Google 地图,但在使用此代码向我的地图添加新标记时:
var image = new google.maps.MarkerImage('../images/icon.png');
var markertemp = new google.maps.Marker({
position: {
lat: 41.786254,
lng: -85.428930
},
map: map,
icon: image
});
总是向我显示错误消息::
TypeError: 无法读取 undefined(...) 的属性“堆栈”
在 Google 于 2 月 15 日进行升级之前,一切正常。
有人知道为什么会这样吗?
谢谢
【问题讨论】:
-
无论我加载哪个 API 版本,我在使用您的代码时都没有收到任何错误
-
这里也一样。请提供一个 Minimal, Complete, Tested and Readable example 来证明该问题。
标签: javascript google-maps google-maps-api-3