show just the street address in google.maps.event.addListener()

后端 未结 2 1599
眼角桃花
眼角桃花 2021-01-17 01:34

I have written a small function that will get the user address using the google.maps.event.addListener(). Here is the jsFiddle.

Everything is exactly w

2条回答
  •  借酒劲吻你
    2021-01-17 02:23

    Use a short delay to apply streetAddress

    setTimeout(function(){$('#address').val(streetAddress);},50);
    

提交回复
热议问题