how to filter markers in google maps.

Database & APIs

I have collections Routes and Places of Interests (POIs). The collection Places of Interests hold the LatLng information and are separate documents. In Routes collections, I have this linked as a List<Doc References (PlacesofInterest)>. The Routes list appear on Home page in list view. It leads to the Map page after couple of bottom sheet are displayed. On map, I currently have all the Places of Interest visible. What I want is when a user clicks on a particular route on home and triggers the bottomsheet, and leads to the Map page, the Map page needs to display only the markers based on the List<Doc References (PlacesofInterest)>. How can I implement this?

What have you tried so far?

I have been trying to implement filter, on the query for the Map widget, but when I test it, it fails to create the app build. I have reverted back to displaying the list of all Places of Interests (POIs) on the Map.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
3 replies