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

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

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -