10
我有GeoPoints列表中的陣列看起來像這樣:谷歌地圖API - 幾何圖形編碼 - 類型錯誤:a.lat不是一個函數
var coordinates = [[50.7, 6.7], [49.5, 7.0], ...]
當我嘗試使用encodePath
與縮小代碼爲explained here,我得到以下錯誤:
TypeError: a.lat is not a function
我的代碼如下所示:
google.maps.geometry.encoding.encodePath(coordinates)
任何想法?