Search results for

“Apple Maps Guides”

155,812 results found

Post

Replies

Boosts

Views

Activity

Attempt to map database failed
This looks like a refresh of an old question. I'm using iOS 15 beta 7 and have presented a UIActivityViewController from a SwiftUI app. I get a ton of these errors when trying to share a two-item list containing String and UISimpleTextPrintFormatter. [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} [default] Attempt to map database failed: permission was denied. This attempt will not be retried. [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} [default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO fr
4
0
7.6k
Aug ’21
Get coordinates in the onLongPressGesture on the Map
I've asked this question at SO, but there are no replies there, so I decided to give it a try here. Basically, I want to be able to capture the coordinates of a long press on the Map component (not the geo-coordinates - that's a separate task - just local to the app coordinates). The problem is that the .onLongPressGesture doesn't provide the coordinates of where the long press happened. .onTapGesture does - but I don't want to register taps, I want to register long presses. One of the work-arounds suggested at SO was to leverage the DragGesture, and it kinda works for other views, but when applied to a Map, it breaks the default dragging functionality of the Map component (so that it becomes impossible to scroll the map region). Also this work-around provides the coordinates only when the finger is released (at the end of the .onLongPressGesture), but I want to capture the long-press location before the finger was released (but after some time of holding, for example 1 sec
3
0
3.2k
Jun ’23
Google Map utility ios
I've added updated Google-Map-IOs-Utils library manually in project for marker clustering. In cluster manager array,cluster item is a object of Spot class having property marker.no error showing but custom marker and cluster both are showing and on tapping on cluster item it displays default map marker also.My code is on link-https://github.com/googlemaps/google-maps-ios-utils/issues/37 Any idea how do i solve this?
0
0
467
Sep ’16
iOS Maps App Route Sharing
Hello All! We are building an app and want to have the user's navigation status and route be shared with our app. Is there currently a way to do this on iOS? For Example, if a user starts navigation within Apple Maps, we want to observe the location, route, and end destination from our app. Very similar to share ETA, but sharing with another app instead of another person. For context, we want our app to know where a user is going and if they are currently using Apple Maps to navigate. Our app will (hopefully) be able to alert users of potential carpool riders they could pick up, once they have started navigation with Apple Maps. On Android there are system APIs that share navigation event details with other apps, but I can't find anything on iOS. Other than building some type of service that a user could share their ETA with, which would be clunky as it would need to be an SMS send to a contact in their phone, is there a system API, or iOS Maps Ap
0
0
547
Jan ’22
Fitness app map missing
Yesterday each workout — like a run — would have a route show up on the app after the workout. After loading IOS 14 it has disappeared. No other changes made by me. Today’s run map is missing and all previous maps are missing. Looked for suggestions and nothing has worked.
1
0
247
Sep ’20
Apple Maps Not responding to scrolling, zooming, or tap gestures on custom pins
Scrolling and zooming I have two apps that utilize the Apple Maps and since I updated my xcode to use IOS18, some of the functionalities have either been missing or glitching, and when I roll back to IOS17.5, everything seems to work fine. When I use MKMapView and use mapView.isZoomEnabled = true mapView.isScrollEnabled = true Scrolling and zooming is still not working on IOS18 but IOS17.5 works fine. Clicking on custom annotations When I press on a custom annotation I add to the MapView, the gesture is sometimes recognized and most of the times not recognized. If I have 20 annotations, there is a possibility only 2 of them respond to tap gestures. Below is how I define the annotation. Annotation(Pin, coordinate: CLLocationCoordinate2D(latitude: latitude, longitude: longitude), anchor: .bottom) { Button(action: {print (Pressed annotation){ CustomPin() } }
0
0
394
Oct ’24
Reply to Code iteration time out
(0 ..< numberOfQueries) .lazy .map { _ in Int(readLine()!)! } .map { array[(rotatedFirstIndex + $0) % endIndex] } .forEach { print($0) }0 ..< numberOfQueries is a CountableRange: a struct which you can think of as similar to an array of consecutive values, but for which there's no actual storage of these values. Its lazy property didn't need to be used, but I wanted to prevent an array being stored by each of the maps chained after it. You'll find information about lazy and forEach in the Swift Standard Library reference. The omission of parentheses around the closures provided to the map and forEach calls is known as trailing closure syntax, which is explained in The Swift Programming Language guide, and I strongly recommend you read that guide.The code could have been written as follows, but I wanted a little practice at writing in a more functional style.for _ in 0 ..< numberOfQueries { let queryIndex = Int(readLine()!)! let value = array[(rotatedFirstI
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’17
How to use SwiftUI to display a map and handle touch on the map?
I want to use SwiftUI to display a map and handle touch on the map. Here is my code so far. I have a problem integrating GestureRecognizer in Coordinator specifically accessing self.mapView inside it.Also adding addGestureRecognizer. How to do that?=======================================//// ContentView.swiftimport SwiftUIimport Gomobiletidbstruct ContentView: View { var body: some View { VStack { MapView() .edgesIgnoringSafeArea(.vertical) Text(Turtle Rock) .font(.title) .padding(.leading, 15) .padding(.top, 5) .textFieldStyle(RoundedBorderTextFieldStyle()) VStack { HStack { Text(Joshua Tree National Park) .font(.subheadline) Spacer() Text(California) .font(.subheadline) } .padding() } }}=======================================//// MapView.swiftimport SwiftUIimport MapKitstruct MapView: UIViewRepresentable { func makeCoordinator() -> Coordinator { Coordinator(self) } final class Coordinator: NSObject, MKMapViewDelegate { var control: MapView init(_ control: MapView) { self.control = contr
1
0
3.8k
Aug ’19
shadow mapping woes
I stripped the MetalDeferredLighting demo down to just the shadow map bits. I removed the light fairies, skybox and bump mapping. However, I couldn't remove the (model) structure group, material, and scaling dependencies in favour of loading a simple quad.It would be nice if sample code did 1 thing, and with a minimal amount of code. Ideally, separate (digestible) demo projects for each technique.I managed to port the stripped down bits over to my project. The 2 pass render pipeline is in place and all the color attachments look good (I guess), but the shadows are glitchy. I've been hammering on this thing for a long, long, long time and have noticeably less hair. It's super frustrating when it kinda works...but not quite.Does anyone happen to have a simple demo? Like a cube casting a shadow on a ground plane?
1
0
804
Jun ’15
Maps not working
As soon as I start directions to a location, my phone freezes. It happens every time. IPhone 6s. Anyone experiencing this problem? Seems to working fine on friends 5s and 6. It just sticks on the initial location and gps never tracks. I can use every other function in the maps app but gps never tracks.
5
0
707
Jun ’16
About Drawing Maps In CarpPlay
I want to draw directions to a specific location in CarPlay. I realized that there are two different options that can be made regarding this. First of all, drawing a direct route from current location to the desired location. The second is to draw the route after showing our current location and selecting the location which we want to go on the map. Which would make more sense for me to do? Which authorization is appropriate for the situations I have mentioned? com.developer.apple.carplay-parking or com.developer.apple.carplay-maps? Parking or Map? If you developing an CarPlay Application I would appreciate it if you would also write about the resources you used on the subject. If you have knowledge about this subject, I am waiting for your answers ASAP! Thanks :)
0
0
1.1k
Oct ’22
Attempt to map database failed
This looks like a refresh of an old question. I'm using iOS 15 beta 7 and have presented a UIActivityViewController from a SwiftUI app. I get a ton of these errors when trying to share a two-item list containing String and UISimpleTextPrintFormatter. [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} [default] Attempt to map database failed: permission was denied. This attempt will not be retried. [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} [default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO fr
Replies
4
Boosts
0
Views
7.6k
Activity
Aug ’21
Get coordinates in the onLongPressGesture on the Map
I've asked this question at SO, but there are no replies there, so I decided to give it a try here. Basically, I want to be able to capture the coordinates of a long press on the Map component (not the geo-coordinates - that's a separate task - just local to the app coordinates). The problem is that the .onLongPressGesture doesn't provide the coordinates of where the long press happened. .onTapGesture does - but I don't want to register taps, I want to register long presses. One of the work-arounds suggested at SO was to leverage the DragGesture, and it kinda works for other views, but when applied to a Map, it breaks the default dragging functionality of the Map component (so that it becomes impossible to scroll the map region). Also this work-around provides the coordinates only when the finger is released (at the end of the .onLongPressGesture), but I want to capture the long-press location before the finger was released (but after some time of holding, for example 1 sec
Replies
3
Boosts
0
Views
3.2k
Activity
Jun ’23
Google Map utility ios
I've added updated Google-Map-IOs-Utils library manually in project for marker clustering. In cluster manager array,cluster item is a object of Spot class having property marker.no error showing but custom marker and cluster both are showing and on tapping on cluster item it displays default map marker also.My code is on link-https://github.com/googlemaps/google-maps-ios-utils/issues/37 Any idea how do i solve this?
Replies
0
Boosts
0
Views
467
Activity
Sep ’16
iOS Maps App Route Sharing
Hello All! We are building an app and want to have the user's navigation status and route be shared with our app. Is there currently a way to do this on iOS? For Example, if a user starts navigation within Apple Maps, we want to observe the location, route, and end destination from our app. Very similar to share ETA, but sharing with another app instead of another person. For context, we want our app to know where a user is going and if they are currently using Apple Maps to navigate. Our app will (hopefully) be able to alert users of potential carpool riders they could pick up, once they have started navigation with Apple Maps. On Android there are system APIs that share navigation event details with other apps, but I can't find anything on iOS. Other than building some type of service that a user could share their ETA with, which would be clunky as it would need to be an SMS send to a contact in their phone, is there a system API, or iOS Maps Ap
Replies
0
Boosts
0
Views
547
Activity
Jan ’22
Fitness app map missing
Yesterday each workout — like a run — would have a route show up on the app after the workout. After loading IOS 14 it has disappeared. No other changes made by me. Today’s run map is missing and all previous maps are missing. Looked for suggestions and nothing has worked.
Replies
1
Boosts
0
Views
247
Activity
Sep ’20
Using Google maps for application
The question about using Google maps during development. During our development we found out that some our pop-up elements close it in some situations (not always). According to Google rules - logo should be always be on the maps in the left bottom corner. So can you recommend will be there any problems in that situation?
Replies
0
Boosts
0
Views
336
Activity
Oct ’20
Cloudkit Guides
The Cloudkit documentation that I found is mostly in Obj-C, also same as for the NSPredicates where can I find the Swift equivalents and the sample code
Replies
0
Boosts
0
Views
242
Activity
Jun ’16
Apple Maps Not responding to scrolling, zooming, or tap gestures on custom pins
Scrolling and zooming I have two apps that utilize the Apple Maps and since I updated my xcode to use IOS18, some of the functionalities have either been missing or glitching, and when I roll back to IOS17.5, everything seems to work fine. When I use MKMapView and use mapView.isZoomEnabled = true mapView.isScrollEnabled = true Scrolling and zooming is still not working on IOS18 but IOS17.5 works fine. Clicking on custom annotations When I press on a custom annotation I add to the MapView, the gesture is sometimes recognized and most of the times not recognized. If I have 20 annotations, there is a possibility only 2 of them respond to tap gestures. Below is how I define the annotation. Annotation(Pin, coordinate: CLLocationCoordinate2D(latitude: latitude, longitude: longitude), anchor: .bottom) { Button(action: {print (Pressed annotation){ CustomPin() } }
Replies
0
Boosts
0
Views
394
Activity
Oct ’24
Reply to Code iteration time out
(0 ..< numberOfQueries) .lazy .map { _ in Int(readLine()!)! } .map { array[(rotatedFirstIndex + $0) % endIndex] } .forEach { print($0) }0 ..< numberOfQueries is a CountableRange: a struct which you can think of as similar to an array of consecutive values, but for which there's no actual storage of these values. Its lazy property didn't need to be used, but I wanted to prevent an array being stored by each of the maps chained after it. You'll find information about lazy and forEach in the Swift Standard Library reference. The omission of parentheses around the closures provided to the map and forEach calls is known as trailing closure syntax, which is explained in The Swift Programming Language guide, and I strongly recommend you read that guide.The code could have been written as follows, but I wanted a little practice at writing in a more functional style.for _ in 0 ..< numberOfQueries { let queryIndex = Int(readLine()!)! let value = array[(rotatedFirstI
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’17
How to use SwiftUI to display a map and handle touch on the map?
I want to use SwiftUI to display a map and handle touch on the map. Here is my code so far. I have a problem integrating GestureRecognizer in Coordinator specifically accessing self.mapView inside it.Also adding addGestureRecognizer. How to do that?=======================================//// ContentView.swiftimport SwiftUIimport Gomobiletidbstruct ContentView: View { var body: some View { VStack { MapView() .edgesIgnoringSafeArea(.vertical) Text(Turtle Rock) .font(.title) .padding(.leading, 15) .padding(.top, 5) .textFieldStyle(RoundedBorderTextFieldStyle()) VStack { HStack { Text(Joshua Tree National Park) .font(.subheadline) Spacer() Text(California) .font(.subheadline) } .padding() } }}=======================================//// MapView.swiftimport SwiftUIimport MapKitstruct MapView: UIViewRepresentable { func makeCoordinator() -> Coordinator { Coordinator(self) } final class Coordinator: NSObject, MKMapViewDelegate { var control: MapView init(_ control: MapView) { self.control = contr
Replies
1
Boosts
0
Views
3.8k
Activity
Aug ’19
Augmented Reality in the indoor map program
Can you place an Augmented Reality Anchor in a private apple indoor map? https://register.apple.com/resources/indoor/program/indoor_maps https://developer.apple.com/augmented-reality/tools/
Replies
1
Boosts
0
Views
1.5k
Activity
May ’22
shadow mapping woes
I stripped the MetalDeferredLighting demo down to just the shadow map bits. I removed the light fairies, skybox and bump mapping. However, I couldn't remove the (model) structure group, material, and scaling dependencies in favour of loading a simple quad.It would be nice if sample code did 1 thing, and with a minimal amount of code. Ideally, separate (digestible) demo projects for each technique.I managed to port the stripped down bits over to my project. The 2 pass render pipeline is in place and all the color attachments look good (I guess), but the shadows are glitchy. I've been hammering on this thing for a long, long, long time and have noticeably less hair. It's super frustrating when it kinda works...but not quite.Does anyone happen to have a simple demo? Like a cube casting a shadow on a ground plane?
Replies
1
Boosts
0
Views
804
Activity
Jun ’15
Maps not working
As soon as I start directions to a location, my phone freezes. It happens every time. IPhone 6s. Anyone experiencing this problem? Seems to working fine on friends 5s and 6. It just sticks on the initial location and gps never tracks. I can use every other function in the maps app but gps never tracks.
Replies
5
Boosts
0
Views
707
Activity
Jun ’16
Mapping memory between DriverKit processes
Having read in the forums that it is possible for dext instances to find and invoke methods on one another, is there any way for one dext process to share a mapped buffer with another? The requirement would be for the buffer to be persistent, something like mappings created by IOConnectMapMemory, which persist until explicitly unmapped.
Replies
0
Boosts
0
Views
1k
Activity
Aug ’22
About Drawing Maps In CarpPlay
I want to draw directions to a specific location in CarPlay. I realized that there are two different options that can be made regarding this. First of all, drawing a direct route from current location to the desired location. The second is to draw the route after showing our current location and selecting the location which we want to go on the map. Which would make more sense for me to do? Which authorization is appropriate for the situations I have mentioned? com.developer.apple.carplay-parking or com.developer.apple.carplay-maps? Parking or Map? If you developing an CarPlay Application I would appreciate it if you would also write about the resources you used on the subject. If you have knowledge about this subject, I am waiting for your answers ASAP! Thanks :)
Replies
0
Boosts
0
Views
1.1k
Activity
Oct ’22