javascript - Google maps componentRestrictions not working -


i'm using google maps javascript api places searchbox componentrestrictions settings country cz.

but getting autocomplete countries.

const autocomplete_options = {  types: ['address'],  componentrestrictions: {     country: 'cz'  } }; new google.maps.places.searchbox(inputplaceelement, autocomplete_options); 

if dump created object console componentrestrictions set want in request url there nothing restriction there should getpredictions not getquerypredictions:

https://maps.googleapis.com/maps/api/js/autocompletionservice.getquerypredictions?1sb&4scs&15e3 

i'm not sure problem here, if set other country code it's not working either.

the componentrestrictions not supported searchbox, option applies autocomplete


Comments

Popular posts from this blog

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

Python website log in: BIG-IP can not find session information in the request -