Search results for

Apple Maps Guides

151,845 results found

Post

Replies

Boosts

Views

Activity

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
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
455
Sep ’16
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.3k
Aug ’21
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
794
Jun ’15
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
241
Sep ’20
Maps App Extra Features Suck
Why does the Maps app have extra features that are completely irrelevant for what the map app is supposed to do. The Editors Picks is the dumbest thing I've ever seen, and on top of that it gets in the way of being able to use the the map app as a map. I don't care about what the best sandwich in LA for a hike is when using the map. I care about seeing directions and traffic. Not some random article from the LA times. Please get rid of this feature, it is truly an awful one.
0
0
560
Apr ’21
WatchOS Label Remove from SwiftUI Maps
Hello folks, I have been working on Maps and facing issues with map labels. I am working on WatchOS App SwiftUI, in there i have implemented Apple Maps. Since watch is small and there isn't much space to fit labels when user is fully zoomed in. i want to reduce some categories of unwanted labels. the solutions i have tried where leading me to results where there are All Labels or No Labels (except default labels like, street names and City Names) for this i have physical devices: Apple Watch Ultra with watchOS 10 beta (21R5320i), iPhone 14 pro max with iOS 17 beta 4 (21R5320i) for this i have tried following ways i have used PointOfInterestCategories in iPhone first and it is working as expected with all categories and filter out defined categories. code i have used it as below. Map(position: $position) .mapStyle(.standard(pointsOfInterest: [ .hospital, .hotel, ])) Then i have tried it in WatchOS Map like below code. For pointOfInterest i have to
0
0
556
Aug ’23
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
AppRejection for using 3rd party Google Map
We have an app-rejection due the use of the 3rd party Google Map. Following is the relevant message:“Regarding 4.0.0, your app limits users to a third-party maps app. To resolve this issue, it would be appropriate to give users the option to launch the native Apple Maps app.”As understood, this is due to the reason that our app is prompting the user to use Google Map-App upon clicking on the “Google logo-link” at the bottom left corner of the Google Map. But in Google SDK, we don’t have any control on the click event on “Google logo-link” to load the choices (Apple Map or Google Map) as suggested in the rejection.Therefore, the only solution that we can think of is to remove the GoogleMap-App launch and instead load the Safari to use its default map management feature.May I know whether this would be sufficient?Or, please suggest any alternatives.Highly appreciate any feedback!Thanks!
2
0
1.3k
Nov ’17