Events other than 'place_changed' for Google Maps Autocomplete

前端 未结 5 679
庸人自扰
庸人自扰 2020-12-25 09:57

I have an app that currently fires correctly on place_changed.

However, I want to branch search to behave differently when a user has selected an autocomplete entry,

5条回答
  •  太阳男子
    2020-12-25 10:35

    There is only one documented event in the Google Maps Javascript API v3 for the google.maps.places.Autocomplete class, place_changed

    You can add standard HTML event listeners to it (not sure if that will affect the Autocomplete functionality).

提交回复
热议问题