Search results for

“Apple Maps Guides”

155,833 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
460
Jul ’21
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
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
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.9k
Jul ’23
How to set a MTLTexture as an environment map in SceneKit?
I want to set a MTLTexture object as the environment map of a scene, as it seems to be possible according to the documentation. I can set the environment map to be a UIImage with the following code:let roomImage = UIImage(named: room) scene.lightingEnvironment.contents = roomImageThis works and I see the reflection of the image on my metallic objects. I tried converting the image to a MTLTexture and setting it as the environment map with the following code:let roomImage = UIImage(named: room) let loader = MTKTextureLoader(device: MTLCreateSystemDefaultDevice()!) let envMap = try? loader.newTexture(cgImage: (roomImage?.cgImage)!, options: nil) scene.lightingEnvironment.contents = envMapHowever this does not work and I end up with a blank environment map with no reflection on my objects.Also, instead of setting the options as nil, I tried setting the MTKTextureLoader.Option.textureUsage key with every possible value it can get, but that didn't work either.
2
0
951
Dec ’17
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
135
Nov ’16
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
762
Jul ’15
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
361
Mar ’16
Offline vector map in IOS
Hi, how can i add offline vectormap in my IOS app? I need to open any of the following formats: .MAP .OSM or .PBF with using the following styles: CartoCSS, Mapnik or MapsforgeRenderTheme. I want to be able set annotation with some actions.
Replies
0
Boosts
0
Views
247
Activity
Dec ’15
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
542
Activity
Oct ’20
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
460
Activity
Jul ’21
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
85
Activity
Apr ’25
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
229
Activity
Aug ’20
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
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
574
Activity
May ’18
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
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.
Replies
3
Boosts
0
Views
3.9k
Activity
Jul ’23
How to set a MTLTexture as an environment map in SceneKit?
I want to set a MTLTexture object as the environment map of a scene, as it seems to be possible according to the documentation. I can set the environment map to be a UIImage with the following code:let roomImage = UIImage(named: room) scene.lightingEnvironment.contents = roomImageThis works and I see the reflection of the image on my metallic objects. I tried converting the image to a MTLTexture and setting it as the environment map with the following code:let roomImage = UIImage(named: room) let loader = MTKTextureLoader(device: MTLCreateSystemDefaultDevice()!) let envMap = try? loader.newTexture(cgImage: (roomImage?.cgImage)!, options: nil) scene.lightingEnvironment.contents = envMapHowever this does not work and I end up with a blank environment map with no reflection on my objects.Also, instead of setting the options as nil, I tried setting the MTKTextureLoader.Option.textureUsage key with every possible value it can get, but that didn't work either.
Replies
2
Boosts
0
Views
951
Activity
Dec ’17
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.1k
Activity
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.
Replies
0
Boosts
0
Views
135
Activity
Nov ’16
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
762
Activity
Jul ’15
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:
Replies
0
Boosts
0
Views
361
Activity
Mar ’16