Uncaught ge {message: 'not a LatLng or LatLngLiteral: in property lat: not a number', name: 'InvalidValueError', stack: 'Error\n at new ge (https://maps.googleapis.com/m…tp://localhost:3001/static/js/bundle.js:82399:27)
緯度和經度只是數字,仍然出現此錯誤。
uj5u.com熱心網友回復:
最新版本在幾個位置添加了驗證,可捕獲 LatLng 的一些無效鴨子型別。
您可能正在傳遞一個物件,該物件具有.lat()但.lng()不是 LatLng 或 LatLng 的子類。這是無效的。
相反,您應該傳遞帶有物件的 LatLngLiterallat以及lng屬性和數字值。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/429741.html
上一篇:顫動||谷歌地圖的替代包
