相关疑难解决方法(0)

Angular 5 / Google Map - “ReferenceError: google is not defined”

我使用一种类型的 Angular 5:“@types/markerclustererplus”:“2.1.28”。这种类型安装@types/google-maps。

我在“index.html”文件中添加了脚本部分来加载地图。在我的组件中,我可以使用 google 命名空间。这工作正常。

但是,当我运行测试时......它失败了!我收到“ReferenceError: google is not defined”

我尝试了很多东西......如果你有任何想法,我接受!

谢谢你。

google-maps undefined markerclusterer angular

2
推荐指数
1
解决办法
3497
查看次数

标签 统计

angular ×1

google-maps ×1

markerclusterer ×1

undefined ×1