Google Maps API: markerwithlabel.js - Uncaught ReferenceError: google is not defined

前端 未结 1 823
悲&欢浪女
悲&欢浪女 2020-12-17 19:01

I have read the docs and examples, but I it seems I cannot solve the initialization error (\"Uncaught ReferenceError: google is not defined\" + Uncaught ReferenceError: home

1条回答
  •  Happy的楠姐
    2020-12-17 19:19

    markerwithlabel.js requires a already loaded maps-API.

    When you load the maps-API asynchronously(as you do in your code), there is no guarantee that the maps-API is loaded when markerwithlabel.js will be loaded.

    solution: load the maps-API synchronously

    
    
    
    

    0 讨论(0)
提交回复
热议问题