0

I have a Fragment containing a MapView object and would like to equip it with a searchbar. I found Google Maps documentation on PlaceAutoCompleteFragment, however this only seems to work with a MapFragment, not a MapView.

Anyone know if it is possible to use this on a MapView object as well? Thanks!

Vr33ni
  • 101
  • 16
  • you can use Place Picker by google and when clicking on place in list you will get lat-long. now you can use this lat-long to show place in MapView. – Hitesh Sarsava Apr 14 '18 at 11:25
  • is there a way to combine the place picker with the markers of my app and also to use it within my current fragment and not as a new activity? Cant really find much documentation – Vr33ni Apr 14 '18 at 13:53
  • you need to remove Map fragment from your xml layout and put MapView and placepicker in that xml layout. so here you can get the both place picker and mapview both in same xml layout – Hitesh Sarsava Apr 16 '18 at 04:08

0 Answers0