angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

autocomplete missing

Open pbrain19 opened this issue 12 years ago • 8 comments

You do not have an auto complete directive.

pbrain19 avatar Mar 13 '14 19:03 pbrain19

You can use this directive: http://plnkr.co/edit/GF3nM3XfYX9El2w11pGo?p=preview

Just need to integrate it with your map afterwards. You'd need to get the autocomplete directive to send the lat and long points and update your map center.

Also make sure to add '&libraries=places&language=en-US' to your google map api url in your index.

dvzrd avatar May 21 '14 19:05 dvzrd

bastard.. your amazing

nmccready avatar May 27 '14 13:05 nmccready

I'm hoping I don't need to use ngAutocomplete to add autocomplete options to my ui-gmap-search-box. My searchbox directive is working great but I have a scenario where I'm wanting to send the types option to autocomplete to limit to '(regions)' or '(cities)'. Is there an easy way to pass in the the types option without having to use the ngAutocomplete directive?

Natas0007 avatar Dec 21 '14 06:12 Natas0007

hi @Natas0007 The search-box directive implements google.maps.places.SearchBox.

It does support text-based geographic search. The SearchBox allows users to perform a text-based geographic search, such as 'pizza in New York' or 'shoe stores near robson street'. And you can also restrict the area of the search results by using the bounds property.

SearchBox does not support the types property of TextSearchRequest or Autocomplete. Others have asked for types property support so I could add a new directive.

@nmccready Should I hold on adding new features until the next version- or should I work on this in master?

kandizzy avatar Dec 21 '14 18:12 kandizzy

Ok. I would much rather use your version of the directive instead of mixing in another directive such as ngAutocomplete. I will continue my current development without implementing a 'types' restriction in hopes the option will be available soon. I will without a doubt require it for production. Thanks for your time and you guys have done a fabulous job on this set of directives!!!

Natas0007 avatar Dec 21 '14 19:12 Natas0007

@kandizzy this is fine for master and roll into develop

nmccready avatar Dec 22 '14 02:12 nmccready

Should have this ready within the next couple days

kandizzy avatar Jan 02 '15 21:01 kandizzy

Schweet! Fab news! On Jan 2, 2015 3:32 PM, "Carrie Kengle" [email protected] wrote:

Should have this ready within the next couple days

— Reply to this email directly or view it on GitHub https://github.com/angular-ui/angular-google-maps/issues/304#issuecomment-68564320 .

Natas0007 avatar Jan 02 '15 21:01 Natas0007