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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -