Closed conlont closed 5 months ago
sorry I don't have an example for the moment ...
Thanks @AnthonyNahas, no worries but it is supported?
It can be done through the autoCompleteOptions input like below:
component.ts `boundOptions: AutocompleteOptions;
this.Bounds = new google.maps.LatLngBounds();
this.boundOptions = {
bounds: this.Bounds,
strictBounds: true
} `
component.html <mat-google-maps-autocomplete ... [autoCompleteOptions]="boundOptions" ...
Thanks for the help
@conlont I can see that you are pointing [autoCompleteOptions] attribute to the boundsOptions. Do I need any manipulation with [autoCompleteOptions] in the component.ts file?
can't i change autoCompleteOptions
dynamically? let's say I want to change the bounds based on another field. Please help!
Bug Report or Feature Request (mark with an
x
)The usage docs mention strictBounds parameter without mentioning the bounds parameter. Should it not be both or none? If using bounds is supported can anyone provide an example of how to implement it? Thanks