Search results for

Apple Maps Guides

151,863 results found

Post

Replies

Boosts

Views

Activity

CarPlay Map Displays White Screen
Hello, I'm somewhat new to CarPlay integration and am having an issue. I have ready through Apple's CarPlay Programming Guide, reviewed their code samples and have exhausted my searches online to help find a solution to my problem. I have been unable to get a basic map to display on my CarPlay map utilizing the following: import CarPlay class CarPlaySceneDelegate: UIResponder, CPTemplateApplicationSceneDelegate { var interfaceController: CPInterfaceController? var window: CPWindow? func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didConnect interfaceController: CPInterfaceController) { self.interfaceController = interfaceController let mapTemplate = CPMapTemplate() mapTemplate.mapDelegate = self interfaceController.setRootTemplate(mapTemplate, animated: true, completion: { success, error in if let error = error { debugPrint(Error: (error)) } else { print(CarPlay Map Should Be Displayed) } }) let trip = CPTrip(origin: MKMapItem(p
1
0
863
Aug ’24
Where are the "Guides" and "Sample Code" sections in the documentation?
Hi all.In the iBook Apple Education course App Development with Swift, there is this statement: “For example, reopen the documentation window (if it's not still open) and search for UIViewController again. Near the bottom of the search results, you'll see two sections called Guides and Sample Code.”Excerpt From: Apple Education. “App Development with Swift.” Apple Inc. - Education, 2017. iBooks. https://itunes.apple.com/ca/book/app-development-with-swift/id1219117996?mt=11Well... in my version of Xcode (9.2) under Os X (10.12.6), those sections are NOT there! And judging from the example provided in the book, I would think they would be VERY helpful!Where are they now???Thanks!
1
0
3.5k
Aug ’18
SwiftUI Map() delegate access.
Greetings, I'm attempting to refactor a SwiftUI application. From: IUViewRepresentable of MapView To: SwiftUI's native Map() view. However my application has to be able to react to the user's panning and zooming. In my UIViewRepresentable version, I added MKMapViewDelagate protocol to the Coordinator class, and create mapView(_ mapView:regionDidChangeAnimated) How can assign a delegate class to the SwiftUI native version to accomplish this? I've seen some posts use an init() method to adjust the appearance of the map with MKMapView.appearance(). Turns out this has a delegate property, but assigning a delegate here does not result in the mapView:regionDidChangeAnimated method being called...
6
0
4.1k
Oct ’20
Reply to How to provide directions with app in iOS
There are a lot of condtions for app appearing as providing a service to the user to help guide him from A -> BNotably :To register your app as a directions provider:Configure your app to accept directions requests and declare a document type to handle incoming routing requests.Declare the map regions that your app supports using a geographic coverage file (specified using a GeoJSON file).Process direction request URLs when they are sent to your app.Did you check you did everything described in the document ?
Nov ’18
Reply to CoreML - Label presented as random string
The labels are stored in your mlmodel file. If you open the mlmodel in Xcode 12, it will display what those labels are. My guess is that instead of actual labels, your mlmodel contains CICAgICAwPmveRIJQWdsYWlzX2lv and so on. If that is the case, you can make a dictionary in the app that maps CICAgICAwPmveRIJQWdsYWlzX2lv and so on to the real labels, or you can replace these labels inside the mlmodel file by editing it using coremltools. (My e-book Core ML Survival Guide has a chapter on how to replace the labels in the model.)
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Sep ’20
Center Map in SwiftUI to specific latitude and longitude.
I have a Map in SwiftUI using MapKit and the map has several annotations and MapCircles added to it. I need to have the ability to center the map on a specific latitude and longitude. The issue is that the map instead is centering so that all annotations and MapCircles etc. are visible. How can I have it disregard items added to the map and center the map at a specific latitude and longitude and ideally, control the zoom level of the map also?
1
0
522
Nov ’24
ios10 beta map controls
In iOS10 beta 2, the Map app uses a view controller that has three sizes (I'll refer to them as minmized, compact, and expanded) and supports a handle. Pull up on the handle when in compact mode and the view expands over the mapView and dims it. Pull down and the background view is slowly undimmed until you get to the compact size. Keep pulling down and the view is then minimized with just the search bar. A great look for the app I am working on.I am looking to use the system framework that does this or replicate it. Does anyone know if this is offered to developers to use? I cannot figure out what Apple used to support this. Any pointers would be appreciated.
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
227
Jul ’16
UserLocation stops updating when map is touched
My issue is essentially the same described in MKUserLocation stops updating when map is touched, except for Mapkit JS. That question has been left without answer and the chat has been removed so I'm left wondering what the outcome was. In short, I create a Mapkit JS map, I set: map.tracksUserLocation = true; map.showsUserLocation = true; This shows and tracks the user's position on the map. Once I pan/zoom the map map.tracksUserLocation is set to false (as it should). However the user's dot stops updating entirely as well. I have ran some testing and it looks that if I initially only set map.showsUserLocation to true but don't specify wether the map should track the user's location, the user's dot will simply not show up at all. I can override this behaviour by constantly setting both variables to true, but as you can imagine the experience is awful. My code is essentially the bare basics. const map = new mapkit.Map('map'); map.tracksUserLocation
0
0
527
Feb ’22