Relative Content

Tag Archive for iosswiftswiftuimapkit

Using MapKit to select places and extract info

I’m a bit lost on implementing a way to select a local business/place after a search and extract the phone number and name of the place. I want to do this using a sheet pop up but I’m not able to first get the map selection working. As it stands, searching does display locations on the map relevant to the original search.

iOS 17 MapKit .standard doesn’t allow for a globe view when zoomed out

I’m working on setting up a very basic mapview with MapKit for my iPhone on iOS 17. I noticed that the Apple maps app doesn’t have this issue but I really couldn’t find much about this topic other than a thread in August of 2023 where a poster said that there was a bug not allowing the .standard map style to appear as a globe when zoomed out.

How the get an appropriate icon for MKRoute.Step?

In the native Apple Maps app, every direction step has a nice icon showing the action to take. For roundabouts, the icon even correctly shows the roundabout shape, all the exits, and the exit to take: