Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [mapkit]

MapKit is Apple's framework for presenting and annotating scrollable and zoom-enabled maps on iOS, IPadOS, tvOS, watchOS, and macOS.

mapkit
0 votes
0 answers
18 views

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 ...
Zach042's user avatar
  • 21
-1 votes
0 answers
19 views

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: ...
Paya's user avatar
  • 5,184
0 votes
0 answers
20 views

MKMapview overlay renderding performance issue on iOS16

I have following scenario where I feel performance issue. Use-case: I have multiple Overlays(MKOverlay) rendered on MapView, and overlay needs to refresh on point Drag(MKPinAnnotation). I have custom ...
Santosh Singh's user avatar
-3 votes
1 answer
52 views

Convert adress to coordinates

I got a little problem with changing the value of an object. I have got the following code and want to change the value of the object. import SwiftUI import MapKit import CoreLocation struct ...
Libiph's user avatar
  • 537
1 vote
1 answer
51 views

Animate Map Annotation Swift UI

I am trying to animate map annotations when they appear with an interactive spring. But currently no animation takes place. The actual annotation label does not accept any view modifiers like ....
Ahmed Zaidan's user avatar
-1 votes
1 answer
40 views

Get location on tap mapkit ios 18

In my app I use a MapReader and onTapGesture to get the coordinates of user tap in order to create markers or detect a click on a MKPolygon. // // CreatingBuildingView.swift // Project_m // // ...
Jean Gabriel Greco's user avatar
0 votes
0 answers
19 views

MKLocalSearchCompleter empty queryFragment error

Question is basically the title. When passing in to queryFragment, i get a call to func completer(_ completer: MKLocalSearchCompleter, didFailWithError error: Error) with the following error: Error ...
daredevil1234's user avatar
-1 votes
1 answer
91 views

Get location information MapKit Swift

I have some code that can query nearby locations based on some query string. Searching for a specific restaurant or place will yield results in the format below. If I am searching for a restaurant for ...
Ahmed Zaidan's user avatar
0 votes
0 answers
47 views

SwiftUI MapKit cannot display annotate with image and text properly

I rewrote the whole mapview based on suggestion in this thread. I am able to display a popup text annotation. I want to display a image (frame size 75x75) and some text side by side in frame size (275 ...
vrao's user avatar
  • 571
1 vote
1 answer
171 views

How to convert long press gesture to coordinate in a SwiftUI Map view?

I am trying to get the coordinates for a long press gesture on a map. When I add the long press gesture the user can no longer move the map around. I tried using a simultaneous gesture and it did not ...
Ahmed Zaidan's user avatar
-1 votes
0 answers
25 views

"Return type is MKAnnotationView?, which is not a subtype of overridden" kmm platform.MapKit.*

I get Return type is 'MKAnnotationView', which is not a subtype of overridden public open expect fun mapView(mapView: MKMapView, didSelectAnnotation: MKAnnotationProtocol): Unit defined in platform....
Роман Маринов's user avatar
1 vote
2 answers
80 views

Get Map Annotations in center of screen Swift UI

I have custom map annotations that will display a label when they are positioned near the center of the screen. I am not sure how to calculate the physical position of the map annotations on the map. ...
Ahmed Zaidan's user avatar
0 votes
1 answer
41 views

SwiftUI MapKit MapPolygons remove strokes

I have a number of MapPolygons (hexagons) overlaid on a SwiftUI MapKit map. ForEach(row.polygons, id:\.self) {poly in MapPolygon(coordinates:...
hcb's user avatar
  • 39
1 vote
1 answer
76 views

How to fix map annotation selection issues in iOS 17?

I'm working on MapKit for SwiftUI using iOS 17, where I have a custom annotation. When an annotation is selected, a DetailsView should be shown, but it does not work as expected. Selecting an ...
Roland Lariotte's user avatar
1 vote
1 answer
66 views

Unexpected top margin in scroll view when a Map is present in the content

I have a problem understanding why, when I add a Map to my ScrollView, the element (in this case, Color.red) does not overlap with the navigation as shown in the picture. Does anyone know why this is ...
miltenkot's user avatar
  • 187

15 30 50 per page
1
2 3 4 5
399