我使用一种类型的 Angular 5:“@types/markerclustererplus”:“2.1.28”。这种类型安装@types/google-maps。
我在“index.html”文件中添加了脚本部分来加载地图。在我的组件中,我可以使用 google 命名空间。这工作正常。
但是,当我运行测试时......它失败了!我收到“ReferenceError: google is not defined”
我尝试了很多东西......如果你有任何想法,我接受!
谢谢你。
google-maps undefined markerclusterer angular
angular ×1
google-maps ×1
markerclusterer ×1
undefined ×1