我正在使用谷歌地图api v3,
我将坐标存储到一个数组中,并将整个数组提供给航点,如下所示:
var request{
origin:start,
destination:end,
waypoints:arrayOfCoordinates,
}
当我运行我的代码时,它会给我以下错误:
Uncaught Error: Error in property <waypoints>: (Invalid value: [object Object],[object Object],[object Object],[object Object],[object Object] (Error in element at position 4: (Unknown property <x>)))
gen_204:-1Resource interpreted as Image but transferred with MIME type text/html.
有什么想法吗?
答案 0 :(得分:0)
缺少其中一个论点,第四个论点。