Search results for

Apple Maps Guides

151,865 results found

Post

Replies

Boosts

Views

Activity

Reply to MapView remove polyline overlay, memory leak on IOS 14.2
After a bit more digging, I believe this only affects the simulator. It seems to occur anytime an overlay on a map is rendered. When the map position changes for any reason, e.g. scrolling the map, the leak gets bigger. Obviously this becomes a more significant issue if the map position changes automatically as in Henrivb's case and mine. You can see the leak grow just by rendering one overlay on a map, then moving the map around. I've filed feedback to Apple on this as well.
Apr ’21
IOHIDPostEvent key mapping issue on 10.11.3
We use IOHIDPostEvent to simulate key strokes in our app.There's a key mapping issue on JP 106 keyboard.For SHIFT+2, it should output the character , but on 10.11.3 it outputs @, which is the result of standard 101 keyboard.It looks like a key mapping issue on system api, is there any method to correct it?
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
353
Mar ’16
XCode MapKit. MKPolyline is not displayed on the map when there is no mobile connection and the map data is not available
I am developing applications for recording routes using MapKit. I use the following code to display the saved route on the map: let polyline = MKPolyline(coordinates: coordinates, count: coordinates.count) polyline.title = title polyline.subtitle = subtitle mapView.addOverlays([polyline]) Everything works fine when the device has an Internet connection and the map data is available and downloaded. However, when there is no connection, only the current position and annotations are displayed on the map. MKPolyline is displayed only on the part of the map for which the data has been loaded (see screenshot). How can this be fixed?
0
0
445
Jul ’21
Implementing Map Span in iOS 17
I have a map (iOS 17) that displays the three Apple maps types (standard, hybrid, and imagery). When the hybrid or imagery map is displayed for the first time it is zoomed in to the max and out-of-focus. It appears to be a problem with the span. I would like to set the span to fix this, but I'm not sure if span has a new name or is no longer used. In previous versions of iOS I had a region that defined the span and coordinate center, It appears that this has now been deprecated: let span = MKCoordinateSpan(latitudeDelta: 0.005, longitudeDelta: 0.005) let region = MKCoordinateRegion(center: coordinate, span: span) MapView(region: region, mapType: mapType, coordinate: coordinate) Here is my actual code for display a map (iOS 17): struct DetailView: View { var item: TravelEntries // <-- coordinates arrive from CoreData Transaction @Binding var mapType: Int var coordinate: CLLocationCoordinate2D { CLLocationCoordinate2D( latitude: item.entryLat, longitude: item.entr
2
0
2.1k
Oct ’23
Findersync not working on mapped devices.
I want to add context menu items on right click of any folder.I am able to add them using Findersync extension for path /Users/username/anyFolder, but the same is not working for path of mapped devices like /Volumes/path_of_mapped_device.It is working for local user home path but not for any mapped devices/shares connected using go->connect to server.How should I resolve it and get my context menu on mapped shares also.
0
0
124
Nov ’16
What are the alternatives to allow users to use maps offline?
Hi all,After some research I'm a bit confused with the subject question. Is there a way nowadays to download Apple maps tiles to display the map when user is offline (without data connection)? We are working in an app for backpackers and they are ussualy offline or with some data usage restrictions in your smartphones. Seems to be that the best option is to use http://www.mapbox.com that also provides assistance to reach places through their directions API. Before proceed with this paid solution I really need to discard the change of use MapKit or some alternative to display offline maps. This is my first post on the Apple devs forum so I've been clear. All the information is really welcome. Regards,Hernán
1
0
1.2k
Sep ’15
SwiftUI - Adjust Map() scale/zoom
Hi, I'm looking through SwiftUI Map for SwiftUI documentation (including IOS17 Beta) for way to adjust Map() scale, or zoom level, while simultaneously showing user's location and heading, for which I'm doing this @State var position = MapCameraPosition = .userLocation(followsHeading: true, fallback: .automatic) Map(position: $position) It does not appear to be possible so am looking for confirmation. Thanks everyone.
3
0
3.8k
Jul ’23
Can I use RWorld map together with roomCaptureView?
Does anybody know if I can use the ARWorld map together with roomCaptureView? So that I can scan and save one Room, then save the data from scan, save the ARWorldmap and then make a new roomCaptureView.captureSession to scan the new room? Right know I am first calling: roomCaptureView?.captureSession.run(configuration: roomCaptureSessionConfig) and then roomCaptureView.captureSession.arSession.run(roomCaptureViewARconfigurationFunc) with the saved ARWorldMap. @IBAction func saveWorldMapAction(_ sender: Any) { roomCaptureView.captureSession.arSession.getCurrentWorldMap { worldMap, error in guard let map = worldMap else { self.worldMapLabel.text = error (error!.localizedDescription) ; return } do { let data = try NSKeyedArchiver.archivedData(withRootObject: map, requiringSecureCoding: true) try data.write(to: self.mapSaveURL, options: [.atomic]) DispatchQueue.main.async { self.loadWordMapButton.isHidden = false self.loadWordMapButton.isEnabled = true self.worldMapLabel.text = Map
0
0
774
Nov ’22
How to make large "mapped" games? Where user explores a map size larger than screen?
Hello,I am interested in making a game where the user would need to explore a map that would be WAY bigger than the size of the iPhone screen. I'm not exactly sure what this is called or how I would go about googling/researching how to make this work. Could someone please point me in the right direction?Also, I would have many monsters randomly spawned on this large map. I was thinking instead of loading them all the sprites at once it would be best to have variables for their positions and only load the sprites once they have come into the user's view. Am I correct with thinking this?**EDIT** Please note I would like to do this in Sprite Kit if possible!! Or I could change platform if needed, but spritekit is what I have been learning to use as of lately.Thanks,Peter
3
0
745
Jul ’15
Long press gesture on SwiftUI's Map View (watchOS)
Hi there, I’m developing a watchOS app using SwiftUI, and I want to allow users to interact with the map using the panning gesture and also drop waypoints by long pressing anywhere on the map—just like in the built-in Apple Maps app on watchOS, where a long press drops a pin and panning still works seamlessly. However, with SwiftUI’s Map, any attempt to attach a gesture other than .onTapGesture (such as LongPressGesture or DragGesture) seems to block the built-in map interactions, making panning impossible. Is there a supported approach to detect long press gestures anywhere on the map while still allowing all standard map interactions (as seen in Apple Maps on watchOS)? Or is this something only possible with private APIs or internal access? Any guidance or best practices would be greatly appreciated! Thank you!
1
0
134
Jun ’25