Can't initiate the google.maps.Geocoder

后端 未结 4 1892
粉色の甜心
粉色の甜心 2020-12-15 23:25

I don\'t understand why but i\'m getting this error when I try to initialize the google.maps.Geocoder.

Here is the error:

Uncaught TypeError: undefi         


        
4条回答
  •  攒了一身酷
    2020-12-16 00:04

    Looks to me like Geocoder isn't defined, hence the error that Undefined is not a function. However, google.maps is defined or you would have gotten an error that it wasn't defined before Geocoder was resolved.

    You'll need to check how you're loading the Map API because it doesn't seem to have been loaded correctly.

提交回复
热议问题