早上, 因此,目前在我的项目中,我在我的blazor项目中使用了嵌入式google地图API和JS。地图在页面和功能上。我使用了下面这篇关于堆栈溢出(Launch GoogleMaps On Blazor)的文章中的技巧 在我的_Hosts文件中使用以下JS,我需要在JS中移除地图的某些特性 <script>function initialize() {
var latlng = new
/maps/api/js?key=<api-key>&callback=ng_jsonp_callback_0:70:182)
at Nj (https://maps.googleapis.com/maps/api/jskey=<api-key>&callback=ng_jsonp_callback_0:14
0x0018c> in :0 blazor.webassembly.js:1:36074 at Google.Api.Gax.Grpc.ChannelPool.CreateChannelCredentialsUncached() <0x24e22f0 + 0x0020e> in :0 blazor.webassembly.js:1:36074 at Google.Api.Gax.Grpc.ChannelPool.CreateChann
问题在于Google ,我必须在每个页面中都包含它,因为否则它就不能工作,但是因为它显示了一个控制台错误,它被加载了多次You have included the GoogleMapsAPI multiple我已经知道如何检查它是否已加载,但我不知道如何防止它再次加载: //Code to prevent loading the addon again}
如何防止加载、<e