Search results for

“Apple Maps Guides”

159,845 results found

Post

Replies

Boosts

Views

Activity

How to use Map initializers Xcode15
Hello, I'm trying to learn swift and making the Landmarks tutorial I found a problem with the map view. The error read as follow: 'init(coordinateRegion:interactionModes:showsUserLocation:userTrackingMode:)' was deprecated in iOS 17.0: Use Map initializers that take a MapContentBuilder instead. My code is: import MapKit struct MapView: View { @State private var region = MKCoordinateRegion( center: CLLocationCoordinate2D(latitude: 34.011_286, longitude: -116.166_868), span: MKCoordinateSpan(latitudeDelta: 0.2, longitudeDelta: 0.2) ) // The error happens here! var body: some View { Map(coordinateRegion: $region) } } #Preview { MapView() } Any suggestions about hot to solve this will be appreciate it. Thanks, BR Skalex
Topic: Safari & Web SubTopic: General Tags:
3
0
3k
Jul ’23
"Modern" NSWindow programming guide?
Does anyone know of any good guides or tutorials for NSWindow/NSDocument programming which cover modern API features like tabbing and accessory view controllers?I have an app I'm working on that needs some TLC to really shine with these new features and I'm somewhat at a loss, as the API docs don't really describe how to use these features in combination to achieve anything real.The relevant features of my app that I'm trying to make work:Operates primarily on a Project file which is an NSDocument subclass, and a package of (mostly) opaque internal NSDocument subclassesIndividual files within the Project package can be opened in separate tabs within the same project windowProject windows display a custom titlebar containing relevant controls/information (similar to Xcode or Safari)What I have sort of working is:Open a Project file... I can get the window title bar to show either: the standard proxy-icon/filename of the project filethe name of the current document (but no proxy-icon)Auto-tabbing for o
Topic: UI Frameworks SubTopic: AppKit Tags:
2
0
1.2k
Dec ’16
Google maps v3 crash
Hello,I've been developing a web app which utilizes the google maps javascript api and the markerwithlabel extension.After a bit of testing I found after having zoomed in on a marker, zooming out using a pinch gesture causes the entire Safari/Chrome tab to crash on an iPad 2 running iOS 8 and 9.Here is the code I used:HTML<div id=maptest/>Javascript$(function () { var map = new google.maps.Map(document.getElementById('maptest'), { zoom: 4, center: new google.maps.LatLng(0, 0), mapTypeId: google.maps.MapTypeId.ROADMAP }); for (var i = 0; i < 10; i++) { var marker = new MarkerWithLabel({ position: new google.maps.LatLng(i, i), map: map, labelContent: A, }); } });Css#maptest { width: 100vw; height: 100vh; }You can check it out in this fiddle:http://jsfiddle.net/mac89/h8w3v7v0/15/The crash seems to only occur when using a label, in this fiddle the crash does not happen:http://jsfiddle.net/mac89/h8w3v7v0/17/Decreasing the size of the map seems to lessen the cha
Topic: Safari & Web SubTopic: General Tags:
2
0
2.0k
Oct ’15
Does Apple have a Maps Geolocation API (look up location by IP address, Wi-Fi and cell tower)?
Hi all,Our project (which incorporates an iOS app) is currently using Google Maps Geolocation REST API to translate Wi-Fi and cell tower data coming from proprietary devices into GPS lat/long coordinates. https://developers.google.com/maps/documentation/geolocation/introFor example, you can look up the location of a Wi-Fi access point based on the following input:{ macAddress: 00:25:9c:cf:1c:ac, signalStrength: -43, age: 0, channel: 11, signalToNoiseRatio: 0}However, this service does not cover all of our customer's locations, particularly when the house has an iPhone only.Does Apple offer an equivalent REST API service, based on Apple Maps?Thanks,Henry
1
0
3k
Feb ’18
Map views without internet?
Is it possible to use a map view in a situation where there is no internet access?The app I'm developing is for use at an event, which means I know in advance where the user will be. I'd like to be able to preload the map data for that area so that it can be available without internet. It's a pretty small area (less than 1 square mile).Thanks,Frank
1
0
4k
Aug ’18
Maps not tracking movement
Can’t see this as a known issue in the release notes. When in driving / walking directions, Maps does not keep pace with the device’s position, causing Maps to lag behind with turn by turn directions. Sometimes up to 30 seconds passes between the location updating. Anyone else experiencing this issue? iPhone X, 64GB, Dev beta 2.
7
0
2.2k
Jun ’18
Rotate sprite with normal maps
I tried creating a sprite with a normal map; lighting works; however if I rotate the sprite, the lighting doesn't respond.After seeing this; I realize 'duh, my pixels saying +x values still say +x values no matter where I am'So while I understand why it happens, is there anything built into sprite kit to recompute normal maps or the lighting calculation based on sprite rotation, or am I into custom shaders?Thanks,-Michael
4
0
735
Oct ’15
SwiftUI MapKit map style inconsistency
I am switchingt to the new WWDC 2023 SwiftUI map with user location and a few map annotations. I find if I use .mapStyle(.imagery(elevation: .flat)) as the map style, the map will be loaded with a reasonably zoomed area. However, if I use .mapStyle(.imagery(elevation: .realistic)) on the same map, the simulator will give me a view of the entire planet. I have to manually zoom in everytime to find the user location and annotations, which is not very convenient. This is the only map style configuration that does this. I am not very sure if this is a feature or a inconsistency bug. If this is a feature, I cannot see the purpose of it.
0
0
867
Aug ’23
ARKit with map data?
Hi, I've been asked to estimate a project that would require ARKit, unfortunately I'm new to the technology and need some quick answers as to how it works. The app my customer wants to build would overlay simple graphics at street addresses, as the user pointed their camera at buildings or storefronts. For this to work, I'd need to be able to have the AR view tell me what map locations or street addresses are being seen in the camera view. Is this possible? Thanks, Frank
1
0
915
Oct ’21
Support for externally rendered light maps
Is it possible to utilize exr light maps rendered externally, for example in Blender, in Reality Composer Pro 3? I am thinking there might be a light map node in the material graph editor, that uses the same mixing modes as internally generated light maps, allowing workflows where light maps are rendered externally.
2
0
140
4w
Reply to MKMapView crash on LandscapeRight
OK, managed to locate the problem (based on some discussions on previous map rotation errors). It was related to a wrong UI constraintSuperview.bottomMargin = mapview.bottom - 6This caused the mapview to get wrong values when rotating to LandscapeRight, and being unable to recover.I fixed it by setting bottom layout guide = mapview bottomI would still call this a bug that should probably be fixed though. Certainly caused me som extra workRegards
Jan ’16
How to use Map initializers Xcode15
Hello, I'm trying to learn swift and making the Landmarks tutorial I found a problem with the map view. The error read as follow: 'init(coordinateRegion:interactionModes:showsUserLocation:userTrackingMode:)' was deprecated in iOS 17.0: Use Map initializers that take a MapContentBuilder instead. My code is: import MapKit struct MapView: View { @State private var region = MKCoordinateRegion( center: CLLocationCoordinate2D(latitude: 34.011_286, longitude: -116.166_868), span: MKCoordinateSpan(latitudeDelta: 0.2, longitudeDelta: 0.2) ) // The error happens here! var body: some View { Map(coordinateRegion: $region) } } #Preview { MapView() } Any suggestions about hot to solve this will be appreciate it. Thanks, BR Skalex
Topic: Safari & Web SubTopic: General Tags:
Replies
3
Boosts
0
Views
3k
Activity
Jul ’23
"Modern" NSWindow programming guide?
Does anyone know of any good guides or tutorials for NSWindow/NSDocument programming which cover modern API features like tabbing and accessory view controllers?I have an app I'm working on that needs some TLC to really shine with these new features and I'm somewhat at a loss, as the API docs don't really describe how to use these features in combination to achieve anything real.The relevant features of my app that I'm trying to make work:Operates primarily on a Project file which is an NSDocument subclass, and a package of (mostly) opaque internal NSDocument subclassesIndividual files within the Project package can be opened in separate tabs within the same project windowProject windows display a custom titlebar containing relevant controls/information (similar to Xcode or Safari)What I have sort of working is:Open a Project file... I can get the window title bar to show either: the standard proxy-icon/filename of the project filethe name of the current document (but no proxy-icon)Auto-tabbing for o
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
2
Boosts
0
Views
1.2k
Activity
Dec ’16
Google maps v3 crash
Hello,I've been developing a web app which utilizes the google maps javascript api and the markerwithlabel extension.After a bit of testing I found after having zoomed in on a marker, zooming out using a pinch gesture causes the entire Safari/Chrome tab to crash on an iPad 2 running iOS 8 and 9.Here is the code I used:HTML<div id=maptest/>Javascript$(function () { var map = new google.maps.Map(document.getElementById('maptest'), { zoom: 4, center: new google.maps.LatLng(0, 0), mapTypeId: google.maps.MapTypeId.ROADMAP }); for (var i = 0; i < 10; i++) { var marker = new MarkerWithLabel({ position: new google.maps.LatLng(i, i), map: map, labelContent: A, }); } });Css#maptest { width: 100vw; height: 100vh; }You can check it out in this fiddle:http://jsfiddle.net/mac89/h8w3v7v0/15/The crash seems to only occur when using a label, in this fiddle the crash does not happen:http://jsfiddle.net/mac89/h8w3v7v0/17/Decreasing the size of the map seems to lessen the cha
Topic: Safari & Web SubTopic: General Tags:
Replies
2
Boosts
0
Views
2.0k
Activity
Oct ’15
Does Apple have a Maps Geolocation API (look up location by IP address, Wi-Fi and cell tower)?
Hi all,Our project (which incorporates an iOS app) is currently using Google Maps Geolocation REST API to translate Wi-Fi and cell tower data coming from proprietary devices into GPS lat/long coordinates. https://developers.google.com/maps/documentation/geolocation/introFor example, you can look up the location of a Wi-Fi access point based on the following input:{ macAddress: 00:25:9c:cf:1c:ac, signalStrength: -43, age: 0, channel: 11, signalToNoiseRatio: 0}However, this service does not cover all of our customer's locations, particularly when the house has an iPhone only.Does Apple offer an equivalent REST API service, based on Apple Maps?Thanks,Henry
Replies
1
Boosts
0
Views
3k
Activity
Feb ’18
Map views without internet?
Is it possible to use a map view in a situation where there is no internet access?The app I'm developing is for use at an event, which means I know in advance where the user will be. I'd like to be able to preload the map data for that area so that it can be available without internet. It's a pretty small area (less than 1 square mile).Thanks,Frank
Replies
1
Boosts
0
Views
4k
Activity
Aug ’18
Clustering of map markers / annotations using SwiftUI
I love the new SwiftUI APIs for Apple Maps. However, I am missing (or haven't found) quite a number of features, particularly on visionOS. Besides an easy way to zoom maps, the most important feature for me is marker clustering. If you have a lot of markers on a map, this is an absolute must. Is there any way to accomplish this?
Replies
0
Boosts
0
Views
469
Activity
Jan ’24
Maps not tracking movement
Can’t see this as a known issue in the release notes. When in driving / walking directions, Maps does not keep pace with the device’s position, causing Maps to lag behind with turn by turn directions. Sometimes up to 30 seconds passes between the location updating. Anyone else experiencing this issue? iPhone X, 64GB, Dev beta 2.
Replies
7
Boosts
0
Views
2.2k
Activity
Jun ’18
Rotate sprite with normal maps
I tried creating a sprite with a normal map; lighting works; however if I rotate the sprite, the lighting doesn't respond.After seeing this; I realize 'duh, my pixels saying +x values still say +x values no matter where I am'So while I understand why it happens, is there anything built into sprite kit to recompute normal maps or the lighting calculation based on sprite rotation, or am I into custom shaders?Thanks,-Michael
Replies
4
Boosts
0
Views
735
Activity
Oct ’15
Floor humps/bumps mapping
Would ARKit be able to map/identify the depth/height of the humps/bumps in a given surface (E.g: the floor or the top of a table)?
Replies
1
Boosts
0
Views
595
Activity
Jun ’17
SwiftUI MapKit map style inconsistency
I am switchingt to the new WWDC 2023 SwiftUI map with user location and a few map annotations. I find if I use .mapStyle(.imagery(elevation: .flat)) as the map style, the map will be loaded with a reasonably zoomed area. However, if I use .mapStyle(.imagery(elevation: .realistic)) on the same map, the simulator will give me a view of the entire planet. I have to manually zoom in everytime to find the user location and annotations, which is not very convenient. This is the only map style configuration that does this. I am not very sure if this is a feature or a inconsistency bug. If this is a feature, I cannot see the purpose of it.
Replies
0
Boosts
0
Views
867
Activity
Aug ’23
ARKit with map data?
Hi, I've been asked to estimate a project that would require ARKit, unfortunately I'm new to the technology and need some quick answers as to how it works. The app my customer wants to build would overlay simple graphics at street addresses, as the user pointed their camera at buildings or storefronts. For this to work, I'd need to be able to have the AR view tell me what map locations or street addresses are being seen in the camera view. Is this possible? Thanks, Frank
Replies
1
Boosts
0
Views
915
Activity
Oct ’21
Support for externally rendered light maps
Is it possible to utilize exr light maps rendered externally, for example in Blender, in Reality Composer Pro 3? I am thinking there might be a light map node in the material graph editor, that uses the same mixing modes as internally generated light maps, allowing workflows where light maps are rendered externally.
Replies
2
Boosts
0
Views
140
Activity
4w
Customize location Map Prompt
Is there any possibility were I can remove Always Allow option from location Map Prompt that appear in screen in iOS 13
Replies
0
Boosts
0
Views
404
Activity
Nov ’20
Reply to MKMapView crash on LandscapeRight
OK, managed to locate the problem (based on some discussions on previous map rotation errors). It was related to a wrong UI constraintSuperview.bottomMargin = mapview.bottom - 6This caused the mapview to get wrong values when rotating to LandscapeRight, and being unable to recover.I fixed it by setting bottom layout guide = mapview bottomI would still call this a bug that should probably be fixed though. Certainly caused me som extra workRegards
Replies
Boosts
Views
Activity
Jan ’16
CarPlay : Show Map on carplay display
How can I show Map on carplay display in iOS 14.0 above. Is there any way to check map navigation on carplay display screen?
Replies
3
Boosts
0
Views
2.3k
Activity
Oct ’21