-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Build Location Picker Example In TestApp #5282
Comments
When getting ready to hook up the Geocoder I noticed that the TestApp is still running the old school (and deprecated) Mapbox Directions and Mapbox Geocoding libraries and not Mapbox Android Services as it should be these days. Before I can build the Location Picker I need to do a little house cleaning and get things ported to MAS. |
I've got the basic UI of Location Picker built, namely pan map using a marker, select location, geocode location, display address with Marker and opened InfoWindow. To finish this part of the requirements off I need to:
Once these are done the next steps are to add the User Dot, User Dot animation, and Zoom events to be centered on Results Pin location. /cc @zugaldia |
Shortening the displayed geocoded data in the InfoWindow from the full address to simply the Street Number and Street Name makes the InfoWindow more manageable as well as better fit the use case. However, it also showed that fixing the empty snippet line is going to be a priority as well. This is documented in --> #4959 |
The code to make this happen is being picked up as a a part of focal point configuration in #4924 and PR'ed in #5332. After that lands you can rebase this branch on
I will create some example code so you can copy paste it into this one. |
From this morning's team discussion here's the game plan for finishing this ticket:
|
Example added via #5391. |
A common use case for apps is to have a Location Picker over a map and while the TestApp has the basics of this already in the
GeocoderActivity
it can be enhanced to mirror the functionality that traditionally is part of this use case as well as made more discoverable. Specifically, this example should have:The text was updated successfully, but these errors were encountered: