mapbox-search-android icon indicating copy to clipboard operation
mapbox-search-android copied to clipboard

Updating the sample application for better click on map support

Open mikeringrose opened this issue 5 months ago • 0 comments

Description

Updating the sample application to better handle Map onClick events. When a user clicks on a map, the following events will happen:

  1. call queryRenderedFeatures
  2. filter for all features that have an ID 3a. select the first feature that has an ID and do a retrieve and show the places card 3b. if no features have id or not features were returned, do a reverse search call and display all POIs on the map

Screenshots or Gifs

Screen_recording_20240906_084745.webm

Checklist

  • [ ] My code follows the style guidelines of this project
  • [ ] I have performed a self-review of my own code
  • [ ] I have updated the CHANGELOG including this PR (where applicable)
  • [ ] I have run tests and automatic checks locally
  • [ ] I have run pitest check locally and checked that the coverage increased (or didn't change) or decreased insignificantly
  • [ ] I have made corresponding changes to the documentation (where applicable)
  • [ ] I have grouped commits logically or I promise to squash my commits before merge

mikeringrose avatar Sep 06 '24 12:09 mikeringrose