【发布时间】:2012-09-04 08:19:47
【问题描述】:
我在一个数组中有一个 GeoPoints 列表,如下所示:
var coordinates = [[50.7, 6.7], [49.5, 7.0], ...]
当我尝试使用encodePath 将代码缩小为explained here 时,我收到以下错误:
TypeError: a.lat 不是函数
我的代码如下所示:
google.maps.geometry.encoding.encodePath(coordinates)
有什么想法吗?
【问题讨论】:
标签: encoding google-maps-api-3 typeerror geopoints