templates/backOffice/appParts/_addressAutocompleteGoogleJs.html.twig line 1

Open in your IDE?
  1. <script>
  2.     let autocomplete;
  3.     function initializeAutoComplete() {
  4.         let input = document.getElementById('{{ inputId }}');
  5.         autocomplete = new google.maps.places.Autocomplete(input,{ types: ['address'] });
  6.     }
  7. </script>
  8. <script async defer
  9.         src="https://maps.googleapis.com/maps/api/js?key={{ GOOGLE_API_KEY }}&libraries=places&callback=initializeAutoComplete&language=en">
  10. </script>