Adding MapMarkers and adding Filters to Landmarks SwiftUI Tutorial

Hello Everyone,

I am looking for some guidance on how to add MapMarkers and Filters to the Landmarks swiftUI tutorial.

https://developer.apple.com/tutorials/swiftui/composing-complex-interfaces

Would i put the code for the MapMarker in the MapView or create a new file and then add it to MapView? Im confused on how i can get a marker on the map.

Also is there a way to create a map where i can just see the Landmarks closest to me? such as on the bottom click map then see the world with markers of all the landmarks? Im trying to search online but i can't seam to figure out what things are called and how to attempt to do them.

BOTTOM of App Example template of what i want to add

MAP View | Filter View | List View | Directions | Favorites

I also wanted to know how to add filters like a filter page that can filter to find a landmark with lets say "paid parking, water views, high traffic area and be able to check all these options and then one or others pop up that meet those filters that were specifically chosen. would i have to edit the JSON file? Does anyone know what that is called

Filter (What i want the filter page to look like)

parking

  • x --Paid

  • o--free

  • o--street

Views

  • o--forest

  • o--dunes

  • x--water

Traffic

  • o--low traffic

  • o--moderate traffic

  • x--high traffic

Experience

  • o--beginner

  • o--intermediate

  • o--expert

I was supposed to take a course that did this at the local school, but they are no longer offering the course. So Im looking for assistance from anyone who can assist.

Adding MapMarkers and adding Filters to Landmarks SwiftUI Tutorial
 
 
Q