Search results for

Apple Maps Guides

149,618 results found

Post

Replies

Boosts

Views

Activity

500 Internal Errors for map "shield" resources
I've noticed a load of 500 errors in my web inspector when viewing maps - it's trying to load /md/v1/shield? from the CDN. Interestingly, it only seems to happen on UK and Ireland maps. Other countries don't even seem to try accessing these resources; but if you look at a map for UK or Ireland, then you will see dozens of failed requests for these shield resources. I don't think it's anything to do with my implementation, as I can replicate it when looking at one of Apple's example maps and repositioning to view the UK. Does anyone know why these shield resources are only used for the UK? And why they're not working?
1
0
846
Mar ’22
Stalling when panning/zooming map
I have an app that shows where busses are on their routes. Many times when panning around or trying to zoom in or out the app stalls. When location manager makes a call to didUpdateLocations, I reload the map with the possible change in the bus location. To get the change information I have to use NSURL to grab an xml file and parse it for bus route name, gps data, etc. Is this nsurl call blocking the app? Is there a way to put this call on a different thread so it is not blocking the pan/zoom actions on the map?Is there a better forum to ask this question?Thanks
3
0
388
Aug ’15
Vector displacement map - settings to bake VDMs from Zbrush
Goal: Bake Vector Displacement in Zbrush Render in Scenekit/MetalProcess:Im using this Zbrush diagnostic file, to know proper settings for baking: http://docs.pixologic.com/user-guide/3d-modeling/exporting-your-model/vector-displacement-maps/Result:When rendered in Scenekit, I found no “perfect sphere” and you can see on images attached.Does anyone know correct settings for VDM in Scenekit?
0
0
982
Mar ’19
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
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
435
Jan ’16
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
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
935
Dec ’17
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
432
Jul ’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
348
Mar ’16