Search results for

“Apple Maps Guides”

155,834 results found

Post

Replies

Boosts

Views

Activity

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.1k
Jul ’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
714
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
447
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
748
Mar ’23
Where is the living auto-layout guide now located?
The Auto Layout Guide has been archived and is no longer being updated. This is the old link https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/AutolayoutPG/index.htmlBut the webpage says IMPORTANTThis document is no longer being updated. For the latest information about Apple SDKs, visit the documentation website.However, where is the auto-layout information? I don't see the auto-layout documentation in https://developer.apple.com/documentation.
3
0
1.1k
Jul ’18
Putting buttons over SwiftUI map view
Has anyone gotten custom buttons to work on top of tvOS Map()? I've tried many variations of FocusState focusSection .defaultFocus() and as soon as the map appears at startup the buttons never get focus again. They are on a ZStack over the map. I could post code but truthfully nothing works for me. I'm wondering if anyone has successfully put focusable buttons on top of the map view.
0
0
253
Mar ’25
how do I make scrollable map in game?
HiI would like to make a game similar to Clash of Clans in which the user can use thier fingers to scroll around a world map, zoom in, and zoom out. Yes, this is a beginner question, but I don't know where to start learning how to write Swift code for this idea.Please let me know if there are any good online video tutorials that teach how to build this concept.Thank you in advance!-David
2
0
2.6k
Jun ’17
Hiding the map layer in MKMapView
I want to use an MKMapView only for its capabilities to render geometries such as polylines and polygons. I want to hide all map features completely. Unfortunately there doesn't seem to be an easy way to do this. I tried using a custom tile renderer that just renders a gray tile, but I get a lot of artifacts when panning and zooming (see screenshot at https://ibb.co/VJZwbsN).Is there any better way to achieve this?
0
0
690
Jun ’20
Using Maps in App Intents
I want to use MapKit with App Intents, but the map does not show up.(See attached image) Can anyone help me solve this? import SwiftUI import MapKit struct ContentView: View { @State private var region = MKCoordinateRegion( center: CLLocationCoordinate2D(latitude: 37.334_900, longitude: -122.009_020), latitudinalMeters: 750, longitudinalMeters: 750 ) var body: some View { VStack { Map(coordinateRegion: $region).frame(width:300, height:300) .disabled(true) } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } } import AppIntents import SwiftUI import MapKit struct test20220727bAppIntentsExtension: AppIntent { static var title: LocalizedStringResource = test20220727bAppIntentsExtension func perform() async throws -> some IntentResult { return .result(value: aaa, view: ContentView()) } } struct testShortcuts:AppShortcutsProvider{ @available(iOS 16.0, *) static var appShortcuts: [AppShortcut]{ AppShortcut( intent: test20220727bAppIntentsExtensio
2
0
1.3k
Jul ’22
How can I zoom a map to fit a polyline
HiI have a mapview on which I'm drawing a polyline representing the users journey using location services. After the journey has been saved, and the user reopens it, I'm displaying the route that was taken. I would very much like to zoom the map to fit the entire polyline when the view is loaded. I've had no luck searching Google or the forums.Does anyone know how I can achive this?Thanks in advance...
3
0
4.8k
Feb ’18
How to get the nearest point on a depth map?
I achieved streaming depth map using ARKit by taking reference to this GitHub code: https://github.com/TokyoYoshida/ExampleOfiOSLiDAR/blob/main/ExampleOfiOSLiDAR/Samples/Depth/DepthMapViewController.swift Now I would like to find the point which is closest to the rear camera and show the point on the depth map. It is like the codes can automatically detect the closest point and label it when the app is running. How can I get the closest pixel point with ARKit and CVPixelBuffer?
0
0
576
Oct ’21
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
Reply to MapKit JS Select Annotation Programmatically
I read that. The description `A Boolean value indicating whether the annotation is selected` also lead me to think it was read only. I have really enjoyed Apple Maps though after switching from Google Maps.
Replies
Boosts
Views
Activity
Apr ’19
Indoor Maps client is wanting to know a timeline
We developed an IMDF indoor map for a client (paid work) which we submitted to Apple a few months ago. Our client is wondering how many months the approval process will take. Also, we would like to get paid for the work. Any estimate from that team would be appreciated. Thank you
Replies
4
Boosts
0
Views
331
Activity
Sep ’25
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.1k
Activity
Jul ’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
Replies
0
Boosts
0
Views
714
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
447
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
748
Activity
Mar ’23
Where is the living auto-layout guide now located?
The Auto Layout Guide has been archived and is no longer being updated. This is the old link https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/AutolayoutPG/index.htmlBut the webpage says IMPORTANTThis document is no longer being updated. For the latest information about Apple SDKs, visit the documentation website.However, where is the auto-layout information? I don't see the auto-layout documentation in https://developer.apple.com/documentation.
Replies
3
Boosts
0
Views
1.1k
Activity
Jul ’18
Putting buttons over SwiftUI map view
Has anyone gotten custom buttons to work on top of tvOS Map()? I've tried many variations of FocusState focusSection .defaultFocus() and as soon as the map appears at startup the buttons never get focus again. They are on a ZStack over the map. I could post code but truthfully nothing works for me. I'm wondering if anyone has successfully put focusable buttons on top of the map view.
Replies
0
Boosts
0
Views
253
Activity
Mar ’25
how do I make scrollable map in game?
HiI would like to make a game similar to Clash of Clans in which the user can use thier fingers to scroll around a world map, zoom in, and zoom out. Yes, this is a beginner question, but I don't know where to start learning how to write Swift code for this idea.Please let me know if there are any good online video tutorials that teach how to build this concept.Thank you in advance!-David
Replies
2
Boosts
0
Views
2.6k
Activity
Jun ’17
Hiding the map layer in MKMapView
I want to use an MKMapView only for its capabilities to render geometries such as polylines and polygons. I want to hide all map features completely. Unfortunately there doesn't seem to be an easy way to do this. I tried using a custom tile renderer that just renders a gray tile, but I get a lot of artifacts when panning and zooming (see screenshot at https://ibb.co/VJZwbsN).Is there any better way to achieve this?
Replies
0
Boosts
0
Views
690
Activity
Jun ’20
Using Maps in App Intents
I want to use MapKit with App Intents, but the map does not show up.(See attached image) Can anyone help me solve this? import SwiftUI import MapKit struct ContentView: View { @State private var region = MKCoordinateRegion( center: CLLocationCoordinate2D(latitude: 37.334_900, longitude: -122.009_020), latitudinalMeters: 750, longitudinalMeters: 750 ) var body: some View { VStack { Map(coordinateRegion: $region).frame(width:300, height:300) .disabled(true) } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } } import AppIntents import SwiftUI import MapKit struct test20220727bAppIntentsExtension: AppIntent { static var title: LocalizedStringResource = test20220727bAppIntentsExtension func perform() async throws -> some IntentResult { return .result(value: aaa, view: ContentView()) } } struct testShortcuts:AppShortcutsProvider{ @available(iOS 16.0, *) static var appShortcuts: [AppShortcut]{ AppShortcut( intent: test20220727bAppIntentsExtensio
Replies
2
Boosts
0
Views
1.3k
Activity
Jul ’22
Loading a tiled map with "collision" bodies? Possible to do?
Is it possible to load a map from Tiled map editor that has certain physics attributes based on each tile? I can't figure out how to do it (in Swift)
Replies
2
Boosts
0
Views
356
Activity
Oct ’15
How can I zoom a map to fit a polyline
HiI have a mapview on which I'm drawing a polyline representing the users journey using location services. After the journey has been saved, and the user reopens it, I'm displaying the route that was taken. I would very much like to zoom the map to fit the entire polyline when the view is loaded. I've had no luck searching Google or the forums.Does anyone know how I can achive this?Thanks in advance...
Replies
3
Boosts
0
Views
4.8k
Activity
Feb ’18
How to get the nearest point on a depth map?
I achieved streaming depth map using ARKit by taking reference to this GitHub code: https://github.com/TokyoYoshida/ExampleOfiOSLiDAR/blob/main/ExampleOfiOSLiDAR/Samples/Depth/DepthMapViewController.swift Now I would like to find the point which is closest to the rear camera and show the point on the depth map. It is like the codes can automatically detect the closest point and label it when the app is running. How can I get the closest pixel point with ARKit and CVPixelBuffer?
Replies
0
Boosts
0
Views
576
Activity
Oct ’21