Google Maps v3 API - Auto Complete (address)

后端 未结 8 593
难免孤独
难免孤独 2021-02-01 01:21

Attempting to get auto complete working for my google maps application.

Here is the current code:

HTML



        
8条回答
  •  旧巷少年郎
    2021-02-01 02:07

    Thanks Matt for the answer! Somehow it seems to be important not to omit type="text/javascript" attribute on

    Works:

    
    

    Callback variant also works (with initMap function defined):

    
    

    This seems to be consistent with another SO answer and inconsistent with the official documentation (unless providing the key in the url makes the difference).

提交回复
热议问题