我知道這個問題被問了多次,但其他所有線程都沒有解決我的問題。 我的問題是:我有基於角度的應用程序和一些頁面使用谷歌地圖在地圖上顯示項目。一切工作正常,我沒有改變任何一行代碼,並注意到谷歌地圖現在不工作。谷歌地圖:ReferenceError - 谷歌沒有定義
我有谷歌腳本索引文件導入,在主要頁面,甚至不使用它:
<script src="http://maps.google.com/maps/api/js?sensor=true&libraries=places&language=ru-RU"></script>
請打開這個網址http://yuppi.com.ua去安慰,等待3秒,將顯示這些錯誤。
ReferenceError: google is not defined stat.js
ReferenceError: google is not defined util.js
ReferenceError: google is not defined common.js
您是否參考過Maps JS Library? Maps for JS的[入門](https://developers.google.com/maps/documentation/javascript/tutorial)對此進行了進一步討論。您也可能正在使用[Places JS API](https://developers.google.com/maps/documentation/javascript/places)。請注意,他們爲地圖提供不同的用途。 – adjuremods