This seems to be possible because the MKUserLocation annotation is placed at the user's current altitude. However, the protocol for MKAnnotation only includes a coordinate. Is there a way to adjust its altitude as well? Thanks!
Creating annotations in MKMapView with an altitude component
266 Views Asked by noizybrain At
1
There are 1 best solutions below
Related Questions in MKMAPVIEW
- Dropping Pin into Map view when table view cell is selected
- Adding moving circle overly on MKMapView on iOS 16 and above
- MKMapKit. MKMapViewDelegate doesn't respond. SwiftUI
- Dynamic Plane Annotation Display Based on MKMapView Zoom Level in Swift
- FetchReqeust of many items with predicate causing stuttering swiftui animations
- how can we decide map region for our if we have multiple annotations throughout the map
- Display day / night overlay on MKMapView
- Using MKMapView, how can I center and zoom in on a coordinate as much as possible?
- Pin annotation is not showing in MKMapView when both longitude and latitude are 0
- Swift MapView display points of interest without the little icon (circle with image)
- Access underlying base imagery with MkTileOverlay or MKTileOverlayRenderer?
- Placing a marker in the center of an MKPolyLine
- Performance issues when resizing MapView
- "Property 'setRegion' not found on object of type MKMapView*" or problem connecting storyboard to the code?
- Determine MapKit tiles for visibleMapRect
Related Questions in MKANNOTATION
- SwiftUI MapKit Annotation Optimisation
- Using MKMapView, how can I center and zoom in on a coordinate as much as possible?
- Placing a marker in the center of an MKPolyLine
- How to change the size of a mapView annotation swift
- Changing the color of a custom annotation
- How do I get the name of the currently selected annotation?
- Why is the map automatically zooming in after I manually moved it?
- What methods are called after DidSelectAnnotationView/DidDeSelectAnnotationView in MapView in Xamarin iOS?
- Remove MKPointAnnotation 3D effect (make flat colour)
- Remove white background on MKAnnotationView
- MapKit iOS 16: MKMarkerAnnotationView maker hides image; .markerTintColor = UIColor.clear doesn't work
- Swift MapKit annotations slow annotation loading
- How to detect MKAnnotationView / MKMarkerAnnotationView first and second click?
- MKMapView refresh map after removing annotation
- Detect when all the annotations have been successfully been drawn or added to MKMapView
Related Questions in ALTITUDE
- OsgEarth model clamped to terrain
- Altitude Accuracy missing in PWA via Mock Location (GNSS Master)
- Finding nearest altitude point in a DEM in R
- Cannot retrieve the altitude using leaflet map and JavaScript
- How can you detect a number decreasing but only when it decreases by 10?
- Work with coordinates with altitude and accuracy in PostgreSQL + Postgis
- Custom input and output of altitude of the GeoPoint in OSMdroid
- How to find altitude by coordinates?
- Is there a way to get elevation in leaflet
- Android Convert WGS84 altitude to MSL offline
- Android GPS is not updating location at high altitude inside aircraft
- get elevation of coordinate from srtm dem file in kotlin or java
- What can be done if "altitude" reading is negative in sensor_msgs/NavSatFix.msg?
- How to measure change in altitude at high frequency with Apple Watch
- Mapbox Javascript markers with elevation/altitude in Javascript
Related Questions in MKUSERLOCATION
- How to get rid of the MKBalloonCalloutView in iOS 14
- Wrong initial user location in MapView gps
- Get the MKAnnotationView of user location
- In iOS, using Swift, I want to show the user's location, but the blue dot does not appear on the MapView
- Location Marker Not Displaying Swift 4
- MKUserTrackingButton turns into a spinner when no permission is given for locations services
- How to disable click on MKUserLocation?
- In iOS UI Testing, how do I identify the MKUserLocation annotation?
- How to set Mapkit user tracking button state
- Stop centralizing the user location when zoom out/in or move to other location in ios
- iOS 10 heading arrow for MKUserLocation dot
- viewForAnnotation didn't moves the userLocation
- Default User Location Annotation with Heading
- CLLocationManagerDelegate Method Not Being Called
- Creating annotations in MKMapView with an altitude component
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Here is method :-
You can pull from an array stored in the map view:
and quickly adjust the altitude :-
try multipling the cameras altitude by a fraction of one, like mapView.camera.altitude *= .85; for a closer viewport