Search results for

“Apple Maps Guides”

159,876 results found

Post

Replies

Boosts

Views

Activity

Map links/multiple points
I have a web page that I need to display multiple points on a map, and want to use the native app on the device if possible. I've read through:https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.htmlHowever, I don't see anyway to add multiple points, is there a way to do this? Just making sure I didn't miss something.Thanks
0
0
146
May ’16
Map size for MapKit JS on mobile
Hello, This code works fine for desktop, but it's very difficult to display user location, map type controls for mobile. The map's existence depends on the height property only. The controls depend on the width one. Although the algorithm is not clear. I see that the width must be more or equal to display width. It works for portrait, but not for landscape. How to get stable appearance of the controls for any cases? I used iPhone SE 1.
1
0
715
Jul ’21
Adding a map to my project crashes
When adding a map anywhere in our project whether it be through a xib, storyboard or programmatically will crash the app. This crash occurs on a physical device. Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[VKMapView layer]: unrecognized selector sent to instance 0x109695d60' I'm using xcode 14.1 OS Ventura 13.0.1 MacBook Pro 16in 2019
1
0
640
Dec ’22
Attaching custom depth map to an image
Hi,I am trying to attach a custom depth map as explained in this post:https://developer.apple.com/documentation/avfoundation/avdepthdata/creating_auxiliary_depth_data_manually?language=objcI converted the grayscale image to an NSData object and set in the kCGImageAuxiliaryDataInfoData Dictionary and i can save it successfully. But when i try to read it back its returns an invalid depth map.Note: the image is a single channel grayscale image which i extracted from a dual camera device. I now want to apply it to any image, just like DepthCam app on ios does. It allows the user to attach a depth map to any image from the roll and saves it as portrait mode supported image.Has any one been able to add a custom depth map successfully to an image?
1
0
1.3k
Apr ’19
Step-by-step guide for SecKeyCreateWithData from OpenSSL PEM?
A quick search for SecKeyCreateWithData reveals that it isn't the most straight-forward API to use for many Developers' use-cases ...https://forums.developer.apple.com/thread/102621https://forums.developer.apple.com/thread/72445It seems reasonable that Developers who wish to use ECDSA for any sort of server <==> iOS communication discrete data exchange should be able to simply:1. Fire up Terminal2. Create Private + Public ECDSA keys:# Generate an ECDSA Private key. openssl ecparam -genkey -name prime256v1 -out ec256-private.pem # Generate an ECDSA Public key. openssl ec -in ec256-private.pem -pubout -out ec256-public.pem3. <-- Follow some steps to use the Base64 .pem to create keys in iOS -->4. Use SecKeyCreateWithData, ex:let publicKey = SecKeyCreateWithData(pemData as CFData ...)@eskimo -- might you consider creating a step-by-step tutorial as to your / Apple's best recommendation on how to accomplish this?Your responsiveness on the forums is excellent, so thank you. It just seems that
4
0
5.2k
May ’18
Safari App Extension Programming Guide missing
The document Safari App Extension Programming Guide appears to be missing. The URL https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/SafariAppExtension_PG/ redirects to the SafariServices framework reference. The document was there a few weeks ago, and it was essential for creating my Safari app extension. Is this just a web site bug? Can the document be restored?
2
0
1.2k
May ’18
iOS 17 Map sits over TabView
I'm putting together a really simple demo/learning app to try out some of the new features of iOS 17, and I've found when adding a Map to an existing TabView, the map is extending itself over the tab, which is actually still visible and can be interacted with, but is basically hidden. There may be a modifier or something I'm missing to tell the map to stay in its frame, but I haven't found it. I have tried ones like safeAreaInsets, but that didn't seem to be right. Here's my super-simple view: TabView { Text(Not the map) .tabItem { Label(Not Map, systemImage: person) } Map() .tabItem { Label(Map, systemImage: map) } } And here's how it looks in the Simulator: I will file a feedback for this, but didn't want to too quickly assume it's a bug when it's just as likely I'm not doing something right (if not more so).
1
0
1.2k
Jul ’23
How to detect MapKit Map panning/scrolling ended
Hello, I'm trying to figure out how to detect when user stops scrolling (panning) the map. The problem: I have a MapAnnotation that I want to always keep in the centre, even is user is panning/scrolling the map. When map is open first time, the original annotation location is user's current location. I request the name of the location to display it on top of the annotation. when user moves the map around, I want to track when he stop this action and select a location in the centre of map's new region and display the a location's name on top of the annotation I can't use .onChange() because region centre changes constantly as user moves the map, because it causes to many requests for location's name DragGesture .onEnded() is never called, so I have no idea when customer stops moving the map So my question is - how to detect in this case when customer stopped moving the map? Have anyone faced the same problem? Any ideas how to solve it?
3
0
2.4k
Apr ’23
SceneKit crashes on displacement map titling
The issue happens when using XCode 9.4 or XCode 10beta for developing iOS SceneKit appI try to apply displacement map on an object surface. The app works fine without texture titling.However, it doesn't work after I add a line to scale the mapping for texture titling purpose:material.displacement.contentsTransform = SCNMatrix4MakeScale(scale, scale, 0)In this case, the app crashes with error log:validateFunctionArguments:3341: failed assertion `Vertex Function(commonprofile_vert): argument scn_commonprofile[0] from buffer(3) with offset(0) and length(480) has space for 480 bytes, but argument has a length(544).'How can I use displacement map titling correctly?Thanks
0
0
718
Aug ’18
ForEach loop in a Map doesn't work
Hi all, here's a tiny litte demo app import SwiftUI import MapKit struct MarkerData: Identifiable { var id = UUID() var coordinate: CLLocationCoordinate2D } struct MapView2: View { @State private var markers: [MarkerData] = [] var body: some View { ForEach(markers) { marker in Text((marker.coordinate)) } Map { ForEach(markers) { marker in MapMarker(coordinate: marker.coordinate) } } } } The ForEach loop inside the Map gives the error: Generic parameter 'V' could not be inferred The one above seems to be fine. What is wrong with the loop inside the map? (I'm working with XCode Version 16.2) Best!
4
0
466
Mar ’25
MapKit JS - Center Map Around Coordinates
I'm working with MapKit JS for the first time. I'm using the 'Annotations With a Custom Callout' sample code as my starting point as my map will need to work in a similar way to this one. I've got the basics working but I would now like to specify the center coordinates for the map but can't get this to work and not sure of the correct syntax. For example if I wanted that map to centre around these coordinates: (37.8184493, -122.478409) I'm not sure where/how to specify these. I've tried adding: var center = new mapkit.Coordinate(37.8184493, -122.478409); after: const map = new mapkit.Map(map); but this doesn't change how the map is displayed. Appreciate if someone can show me where/how to specify the center coordinates for this type of map.
0
0
779
Mar ’23
Reply to Will this app's plan pass the review?
What makes your app any different to, say, just using a Maps app that has those locations listed? When I search Apple Maps for restaurants, it shows restaurants near me. Would it do the same thing your app wants to do? If your concept cafés don't show up in Apple Maps, it's likely that Apple objects to that sort of content, and they wouldn't allow an app. Any app has to have some functional use to its users. If you're just surfacing a list of cafés, then it offers nothing new.
Jul ’24
My Country Pakistan is not available in list. Anyone can guide please.?
Cant sign up as my Country Pakistan is not available in list. Anyone can guide please.?
Replies
4
Boosts
0
Views
1.6k
Activity
Nov ’16
Map links/multiple points
I have a web page that I need to display multiple points on a map, and want to use the native app on the device if possible. I've read through:https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.htmlHowever, I don't see anyway to add multiple points, is there a way to do this? Just making sure I didn't miss something.Thanks
Replies
0
Boosts
0
Views
146
Activity
May ’16
Map size for MapKit JS on mobile
Hello, This code works fine for desktop, but it's very difficult to display user location, map type controls for mobile. The map's existence depends on the height property only. The controls depend on the width one. Although the algorithm is not clear. I see that the width must be more or equal to display width. It works for portrait, but not for landscape. How to get stable appearance of the controls for any cases? I used iPhone SE 1.
Replies
1
Boosts
0
Views
715
Activity
Jul ’21
Adding a map to my project crashes
When adding a map anywhere in our project whether it be through a xib, storyboard or programmatically will crash the app. This crash occurs on a physical device. Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[VKMapView layer]: unrecognized selector sent to instance 0x109695d60' I'm using xcode 14.1 OS Ventura 13.0.1 MacBook Pro 16in 2019
Replies
1
Boosts
0
Views
640
Activity
Dec ’22
Attaching custom depth map to an image
Hi,I am trying to attach a custom depth map as explained in this post:https://developer.apple.com/documentation/avfoundation/avdepthdata/creating_auxiliary_depth_data_manually?language=objcI converted the grayscale image to an NSData object and set in the kCGImageAuxiliaryDataInfoData Dictionary and i can save it successfully. But when i try to read it back its returns an invalid depth map.Note: the image is a single channel grayscale image which i extracted from a dual camera device. I now want to apply it to any image, just like DepthCam app on ios does. It allows the user to attach a depth map to any image from the roll and saves it as portrait mode supported image.Has any one been able to add a custom depth map successfully to an image?
Replies
1
Boosts
0
Views
1.3k
Activity
Apr ’19
Step-by-step guide for SecKeyCreateWithData from OpenSSL PEM?
A quick search for SecKeyCreateWithData reveals that it isn't the most straight-forward API to use for many Developers' use-cases ...https://forums.developer.apple.com/thread/102621https://forums.developer.apple.com/thread/72445It seems reasonable that Developers who wish to use ECDSA for any sort of server <==> iOS communication discrete data exchange should be able to simply:1. Fire up Terminal2. Create Private + Public ECDSA keys:# Generate an ECDSA Private key. openssl ecparam -genkey -name prime256v1 -out ec256-private.pem # Generate an ECDSA Public key. openssl ec -in ec256-private.pem -pubout -out ec256-public.pem3. <-- Follow some steps to use the Base64 .pem to create keys in iOS -->4. Use SecKeyCreateWithData, ex:let publicKey = SecKeyCreateWithData(pemData as CFData ...)@eskimo -- might you consider creating a step-by-step tutorial as to your / Apple's best recommendation on how to accomplish this?Your responsiveness on the forums is excellent, so thank you. It just seems that
Replies
4
Boosts
0
Views
5.2k
Activity
May ’18
App Clips: How are they associated with Maps places?
Hi there, I would like to understand the mechanism behind associating an App Clip to a Maps' Place. Is there documentation on it? Any other pointers or references? Thank you,
Replies
1
Boosts
0
Views
464
Activity
Jul ’20
Safari App Extension Programming Guide missing
The document Safari App Extension Programming Guide appears to be missing. The URL https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/SafariAppExtension_PG/ redirects to the SafariServices framework reference. The document was there a few weeks ago, and it was essential for creating my Safari app extension. Is this just a web site bug? Can the document be restored?
Replies
2
Boosts
0
Views
1.2k
Activity
May ’18
iOS 17 Map sits over TabView
I'm putting together a really simple demo/learning app to try out some of the new features of iOS 17, and I've found when adding a Map to an existing TabView, the map is extending itself over the tab, which is actually still visible and can be interacted with, but is basically hidden. There may be a modifier or something I'm missing to tell the map to stay in its frame, but I haven't found it. I have tried ones like safeAreaInsets, but that didn't seem to be right. Here's my super-simple view: TabView { Text(Not the map) .tabItem { Label(Not Map, systemImage: person) } Map() .tabItem { Label(Map, systemImage: map) } } And here's how it looks in the Simulator: I will file a feedback for this, but didn't want to too quickly assume it's a bug when it's just as likely I'm not doing something right (if not more so).
Replies
1
Boosts
0
Views
1.2k
Activity
Jul ’23
How to detect MapKit Map panning/scrolling ended
Hello, I'm trying to figure out how to detect when user stops scrolling (panning) the map. The problem: I have a MapAnnotation that I want to always keep in the centre, even is user is panning/scrolling the map. When map is open first time, the original annotation location is user's current location. I request the name of the location to display it on top of the annotation. when user moves the map around, I want to track when he stop this action and select a location in the centre of map's new region and display the a location's name on top of the annotation I can't use .onChange() because region centre changes constantly as user moves the map, because it causes to many requests for location's name DragGesture .onEnded() is never called, so I have no idea when customer stops moving the map So my question is - how to detect in this case when customer stopped moving the map? Have anyone faced the same problem? Any ideas how to solve it?
Replies
3
Boosts
0
Views
2.4k
Activity
Apr ’23
Reply to Links not clickable in iMessage app
I have the same problem with Apple Maps in message.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’21
SceneKit crashes on displacement map titling
The issue happens when using XCode 9.4 or XCode 10beta for developing iOS SceneKit appI try to apply displacement map on an object surface. The app works fine without texture titling.However, it doesn't work after I add a line to scale the mapping for texture titling purpose:material.displacement.contentsTransform = SCNMatrix4MakeScale(scale, scale, 0)In this case, the app crashes with error log:validateFunctionArguments:3341: failed assertion `Vertex Function(commonprofile_vert): argument scn_commonprofile[0] from buffer(3) with offset(0) and length(480) has space for 480 bytes, but argument has a length(544).'How can I use displacement map titling correctly?Thanks
Replies
0
Boosts
0
Views
718
Activity
Aug ’18
ForEach loop in a Map doesn't work
Hi all, here's a tiny litte demo app import SwiftUI import MapKit struct MarkerData: Identifiable { var id = UUID() var coordinate: CLLocationCoordinate2D } struct MapView2: View { @State private var markers: [MarkerData] = [] var body: some View { ForEach(markers) { marker in Text((marker.coordinate)) } Map { ForEach(markers) { marker in MapMarker(coordinate: marker.coordinate) } } } } The ForEach loop inside the Map gives the error: Generic parameter 'V' could not be inferred The one above seems to be fine. What is wrong with the loop inside the map? (I'm working with XCode Version 16.2) Best!
Replies
4
Boosts
0
Views
466
Activity
Mar ’25
MapKit JS - Center Map Around Coordinates
I'm working with MapKit JS for the first time. I'm using the 'Annotations With a Custom Callout' sample code as my starting point as my map will need to work in a similar way to this one. I've got the basics working but I would now like to specify the center coordinates for the map but can't get this to work and not sure of the correct syntax. For example if I wanted that map to centre around these coordinates: (37.8184493, -122.478409) I'm not sure where/how to specify these. I've tried adding: var center = new mapkit.Coordinate(37.8184493, -122.478409); after: const map = new mapkit.Map(map); but this doesn't change how the map is displayed. Appreciate if someone can show me where/how to specify the center coordinates for this type of map.
Replies
0
Boosts
0
Views
779
Activity
Mar ’23
Reply to Will this app's plan pass the review?
What makes your app any different to, say, just using a Maps app that has those locations listed? When I search Apple Maps for restaurants, it shows restaurants near me. Would it do the same thing your app wants to do? If your concept cafés don't show up in Apple Maps, it's likely that Apple objects to that sort of content, and they wouldn't allow an app. Any app has to have some functional use to its users. If you're just surfacing a list of cafés, then it offers nothing new.
Replies
Boosts
Views
Activity
Jul ’24