Search results for

“Apple Maps Guides”

163,152 results found

Post

Replies

Boosts

Views

Activity

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
473
Jul ’21
Deleting memory mapped file
Does NSData dataWithContentsOfFile/initWithContentsOfFile with NSDataReadingMappedIfSafe always use mmap(2) which guards against the file being unlinked while it is mapped?I've created an NSData instance using - initWithContentsOfFile:options:error: with options = NSDataReadingMappedIfSafe, on a file in my sandbox Documents folder, deleted the file and continued to read from the NSData instance with no issues. But I can't tell for sure if this will always be the case. It seems that on iOS one should always be able to rely on mmap(2) behavior since the Documents folder is pretty much always there.Can someone from Apple comment? Thanks!
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
458
Jan ’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.3k
Sep ’15
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.2k
Oct ’23
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
773
Jul ’15
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
143
Nov ’16
MapKit/VectorKit Crash – NSMallocException During Map Rendering
Dear Apple Developer Support Team, We are experiencing a crash in our iOS application that appears to originate within Apple's MapKit/VectorKit framework. Based on the crash logs, the failure occurs during map rendering operations inside VectorKit. The crash stack contains only Apple framework calls and does not include any application business logic methods. Crash Summary: Exception Type: NSMallocException Framework: MapKit / VectorKit Crash Location: VectorKit map rendering pipeline Observed Behavior: Application crashes while rendering map-related data Our analysis indicates that the crash occurs within Apple's native map rendering engine. Since the stack trace does not contain any application-specific code, we are unable to determine whether the issue is caused by framework behavior, an OS/device-specific condition, or a framework-level defect. We would appreciate your assistance in reviewing this issue and advising whether there are
1
0
642
Jun ’26
Reply to Unreal Engine 4.27 VR Game on VisionOS
Hi there. Apple Vision Pro is now (recently!) a valid build target for Unreal Engine - but you're going to want to use 5.4 from source and there are a few gotchas you'll have to mind. This quickstart guide should get you most of the way there - just remember to build 5.4 from source (which isn't documented in the guide): https://dev.epicgames.com/community/learning/tutorials/1JWr/unreal-engine-apple-vision-pro-quick-start-guide
Apr ’24
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
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?
Replies
0
Boosts
0
Views
473
Activity
Jul ’21
Deleting memory mapped file
Does NSData dataWithContentsOfFile/initWithContentsOfFile with NSDataReadingMappedIfSafe always use mmap(2) which guards against the file being unlinked while it is mapped?I've created an NSData instance using - initWithContentsOfFile:options:error: with options = NSDataReadingMappedIfSafe, on a file in my sandbox Documents folder, deleted the file and continued to read from the NSData instance with no issues. But I can't tell for sure if this will always be the case. It seems that on iOS one should always be able to rely on mmap(2) behavior since the Documents folder is pretty much always there.Can someone from Apple comment? Thanks!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
458
Activity
Jan ’16
Reply to How so I enable Scroll zoom on MapKit JS?
This is frustrating. I started using google maps instead to avoid this issue with the apple mouse. It works as expected and scroll zooms on google maps.
Replies
Boosts
Views
Activity
Feb ’21
Control zoom level of map in CPPointOfInterestTemplate
Using iOS 14 and the Parking app category, is it possible to control the zoom level of the map in CPPointOfInterestTemplate? There are cases where certain coordinates don't have parking suggestions in which cases the map is usually zoomed out all the way by the system.
Replies
0
Boosts
0
Views
561
Activity
Oct ’20
When will more airports be available on indoor maps?
Several major airports are not part of Indoor Maps - Do you know when ATL, AUS, DFW, MCO, SLC, SAT, SFO, IAD, and DCA will have indoor maps available?
Replies
1
Boosts
0
Views
583
Activity
May ’18
Is there a way to search out a specific podcast by GUID?
Currently, I have to search by the user account ID via XMLHttpRequest, parse the JSON response for the RSS feed, make another XMLHttpRequest to parse that feed for the specific GUID of the podcast I'm looking for. Is there a way to target that podcast with one XMLHttpRequest call and have it returned as JSON?
Replies
0
Boosts
0
Views
237
Activity
Aug ’20
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
Replies
1
Boosts
0
Views
1.3k
Activity
Sep ’15
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
Replies
2
Boosts
0
Views
2.2k
Activity
Oct ’23
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
Replies
3
Boosts
0
Views
773
Activity
Jul ’15
Reply to Stickers App Store
Are external applications not suppose to work yet with maps such as yelp or zomato or is it a bug? The apps don't do what they say they can do with apple maps.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’16
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.
Replies
0
Boosts
0
Views
143
Activity
Nov ’16
MapKit/VectorKit Crash – NSMallocException During Map Rendering
Dear Apple Developer Support Team, We are experiencing a crash in our iOS application that appears to originate within Apple's MapKit/VectorKit framework. Based on the crash logs, the failure occurs during map rendering operations inside VectorKit. The crash stack contains only Apple framework calls and does not include any application business logic methods. Crash Summary: Exception Type: NSMallocException Framework: MapKit / VectorKit Crash Location: VectorKit map rendering pipeline Observed Behavior: Application crashes while rendering map-related data Our analysis indicates that the crash occurs within Apple's native map rendering engine. Since the stack trace does not contain any application-specific code, we are unable to determine whether the issue is caused by framework behavior, an OS/device-specific condition, or a framework-level defect. We would appreciate your assistance in reviewing this issue and advising whether there are
Replies
1
Boosts
0
Views
642
Activity
Jun ’26
Point out a translation problem in the Apple Human Interface Guide (Simplified Chinese)
辅助功能 | Apple Developer Documentation In the illustration on this page related to Prefer system-defined colors, Light is incorrectly translated as 细体. However, in the context of this article, translating it as 浅色 (light color) would be a more appropriate choice.
Replies
1
Boosts
0
Views
116
Activity
Apr ’25
Reply to Unreal Engine 4.27 VR Game on VisionOS
Hi there. Apple Vision Pro is now (recently!) a valid build target for Unreal Engine - but you're going to want to use 5.4 from source and there are a few gotchas you'll have to mind. This quickstart guide should get you most of the way there - just remember to build 5.4 from source (which isn't documented in the guide): https://dev.epicgames.com/community/learning/tutorials/1JWr/unreal-engine-apple-vision-pro-quick-start-guide
Replies
Boosts
Views
Activity
Apr ’24
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.
Replies
Boosts
Views
Activity
Apr ’21